Params Integer dont work

        params do
            requires :title, type: String
            requires :content, type: String
            requires :expiration, types: Integer
        end
        put '/pasta/' do
            {title: declared(params[:title]),
             content: declared(params[:content]),
             expiration: declared(params[:expiration])}
        end

curl -X PUT -H "Content-Type: application/json" localhost:4567/1.0/pasta/ -d '{"title": "Manifeste", "content": "Marx", "expiration":2}'

return me an error
TypeError: no implicit conversion of Symbol into Integer
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/dsl/inside_route.rb:53:in `[]'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/dsl/inside_route.rb:53:in `block (2 levels) in declared'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/dsl/inside_route.rb:44:in `each_pair'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/dsl/inside_route.rb:44:in `block in declared'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/dsl/inside_route.rb:41:in `each'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/dsl/inside_route.rb:41:in `each_with_object'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/dsl/inside_route.rb:41:in `declared'
	/home/ogromny/Code/RUBY/PastaBin/api/pastabin.rb:20:in `block in <class:API>'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/endpoint.rb:66:in `call'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/endpoint.rb:66:in `block (2 levels) in generate_api_method'
	/home/ogromny/.gem/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications.rb:166:in `instrument'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/endpoint.rb:65:in `block in generate_api_method'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/endpoint.rb:238:in `block in run'
	/home/ogromny/.gem/ruby/2.3.0/gems/activesupport-5.0.0/lib/active_support/notifications.rb:166:in `instrument'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/endpoint.rb:219:in `run'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/endpoint.rb:285:in `block in build_stack'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/middleware/base.rb:30:in `call!'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/middleware/base.rb:23:in `call'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/middleware/base.rb:30:in `call!'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/middleware/base.rb:23:in `call'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/middleware/error.rb:29:in `block in call!'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/middleware/error.rb:28:in `catch'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/middleware/error.rb:28:in `call!'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/middleware/base.rb:23:in `call'
	/usr/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/endpoint.rb:203:in `call!'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/endpoint.rb:197:in `call'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/router/route.rb:68:in `exec'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/router.rb:63:in `block in identity'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/router.rb:84:in `transaction'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/router.rb:59:in `identity'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/router.rb:44:in `block in call'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/router.rb:107:in `with_optimization'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/router.rb:43:in `call'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/api.rb:112:in `call'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/api.rb:45:in `call!'
	/home/ogromny/.gem/ruby/2.3.0/gems/grape-0.16.2/lib/grape/api.rb:40:in `call'
	/usr/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/tempfile_reaper.rb:15:in `call'
	/usr/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/lint.rb:49:in `_call'
	/usr/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/lint.rb:37:in `call'
	/usr/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/showexceptions.rb:24:in `call'
	/usr/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/commonlogger.rb:33:in `call'
	/usr/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/chunked.rb:54:in `call'
	/usr/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
	/home/ogromny/.gem/ruby/2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:86:in `block in pre_process'
	/home/ogromny/.gem/ruby/2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:84:in `catch'
	/home/ogromny/.gem/ruby/2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:84:in `pre_process'
	/home/ogromny/.gem/ruby/2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:53:in `process'
	/home/ogromny/.gem/ruby/2.3.0/gems/thin-1.7.0/lib/thin/connection.rb:39:in `receive_data'
	/home/ogromny/.gem/ruby/2.3.0/gems/eventmachine-<IP_ADDRESS>/lib/eventmachine.rb:194:in `run_machine'
	/home/ogromny/.gem/ruby/2.3.0/gems/eventmachine-<IP_ADDRESS>/lib/eventmachine.rb:194:in `run'
	/home/ogromny/.gem/ruby/2.3.0/gems/thin-1.7.0/lib/thin/backends/base.rb:73:in `start'
	/home/ogromny/.gem/ruby/2.3.0/gems/thin-1.7.0/lib/thin/server.rb:162:in `start'
	/usr/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/handler/thin.rb:19:in `run'
	/usr/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/server.rb:286:in `start'
	/usr/lib/ruby/gems/2.3.0/gems/rack-1.6.4/lib/rack/server.rb:147:in `start'
	/usr/lib/ruby/gems/2.3.0/gems/rack-1.6.4/bin/rackup:4:in `<top (required)>'
	/usr/bin/rackup:23:in `load'
	/usr/bin/rackup:23:in `<main>'
::1 - - [27/Jul/2016:15:55:30 +0200] "PUT /1.0/pasta/ HTTP/1.1" 500 257513 0.0820

I can't figure where the probleme sits...
Thanks in advance, I'm French so sorry for my english

Looks like your syntax for accessing declared isn't quite right.  Try this instead:
        put '/pasta/' do
            {title: declared(params).title,
             content: declared(params).content,
             expiration: declared(params).expiration}
        end

Thanks ! Now it's working :)


yum install from public repo fails

Followed the following instruction... (CentOS 7.4)
rpm -Uvh http://s3.amazonaws.com/geowave-rpms/release/noarch/geowave-repo-1.0-3.noarch.rpm
Then tried
yum --enablerepo=geowave search geowave-*
Yum returns errors unable to locate geowave/primary_db
[Errno 14] Https Error 404

Thanks for letting us know, we'll look into this ASAP and follow up with a resolution.

Hi gcgold,
We pushed a fix to the repo and everything should be working now. You should be able to search the geowave packages with out the wildcard in the search.
Let us know if have any issues going forward and we will take a look.
Thank you!

thanks @sam-radiant - I tested it and it looks resolved.


"-svtav1-params" equivalent for av1_qsv encoder (to pass HDR10 mastering metadata)?

Hello, I am working to understand how to take advantage of the av1_qsv encoder with my A770 DG2 dGPU. I am trying to encode 10-bit AV1 files with HDR10, but I am struggling to understand how to encode the HDR10 metadata.
With svt-av1, you can pass in the parameters in ffmpeg using the "-svtav1-params" command-line option, for example:
-c:v libsvtav1 -svtav1-params "preset=6:crf=13:tune=0:enable-hdr=1:color-primaries=9:transfer-characteristics=16:matrix-coefficients=9:mastering-display=G(0.265,0.69)B(0.15,0.06)R(0.68,0.32)WP(0.3127,0.329)L(4000.0,0.005):content-light=1000,755"
(svtav1 parameters are all documented here: https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/Parameters.md ). The x265 encoder has an equivalent option (x265-params) as well.
Is there a way to do the equivalent with the OneVPL / av1_qsv encoder in ffmpeg?
Thanks!

Transferred to https://github.com/intel/cartwheel-ffmpeg/issues/221

@mav-intel  FFmpeg QSV may accept HDR parameters from the input frame, however currently av1 encoder in oneVPL RT is not able to accept HDR parameters.  (hevc encoder has this feature).


fix: demo-store eslint script

The lint script in the demo-store never threw a warning.
This PR fixes the script and includes .js & .ts files.

Thank you very much for your contribution!
Unfortunately, we have a problem with repositories synchronisation.
This PR was merged in this commit: https://github.com/shopware/frontends/commit/b5d5c025e73f158c4b71550108bcc15a8870504d
You're not shown as a commit author, but we'll mention you in the changelog of this change. Sorry for that, I hope we can fix this soon!


Update to new pac

This updates this hal to use the stm32f3-staging pac. I am doing this in an attempt to get the HRTIM peripheral to work.

I had to enable the feature critical-section of the pac to gain access to the method Peripherals::take() which is used in the examples. Further, an implementation is needed or there was a linker error so I also had to enable critical-section-single-core for cortex-m. The last part, I believe, enabled some extra examples which I do not think the CI has been checking before. This is now the most if not all the errors I am getting in the CI now

Correct me if I am wrong, but I do not think I am guilty to this one
error[E0599]: no method named `split` found for struct `Serial` in the current scope
  --> examples/serial_dma.rs:44:27
   |
44 |     let (tx, rx) = serial.split();
   |                           ^^^^^ method not found in `Serial<USART1, (Pin<Gpioa, U<9>, Alternate<PushPull, 7>>, Pin<Gpioa, U<10>, Alternate<PushPull, 7>>)>`
   |
   = note: the full type name has been written to '/home/runner/work/stm32f3xx-hal/stm32f3xx-hal/target/thumbv7em-none-eabihf/debug/examples/serial_dma-091110dd37752b66.long-type-1484845090031692940.txt'
   = note: consider using `--verbose` to print the full type name to the console

@burrbull would you like to take a look at this?


Editing an item act the same as deleting it without warning

Indeed but it sets the content in the input to update it and save it.

I’ve changed the behavior to let the item in place while editing.


Change H1 to Title Case vs Upper Case

I have tried to change the h1 to a standard title case like Chapter 12 Mobile.  I tried the text-transform, but that did not work.  I turned off all Snippets in case, but that did to work either.  I found one reference to text-transform but changing it did not resolve the issue.
I find this font style hard to read. I would appreciate your assistance in pointing me in the right direction.
I appreciate any help you can provide.

Try this in a snippet:
.workspace .cm-header-1,
.workspace h1,
.print .cm-header-1,
.print h1 {
  font-variant: common-ligatures normal;
}

Thank you .
font-variant: none; worked


Sending Emails without setting MAIL_URL

I'm deploying to EC2. When I deploy wordpress, the emails work straight away.
When deploying meteor, the emails don't send because there is no MAIL_URL set. Is it possible to use the innate email capabilities of a server?

Servers don't automatically have the ability to send email. They need to have some kind of mail server running. It's possible to configure a mail server and add it to the docker image, but probably doesn't make sense. It's easier to use a service like Mandrill and then configure a MAIL_URL in the mup.json file.
Sidenote, I had huge headaches with mandrill because my ISP blocks port 587. Solution was to use 2525 instead.


libfft_sse.a fails to link on mpich-docker-image

Attn: @rouson
When trying to build the naiver-stokes integration test, the linker fails with the following output:
/usr/bin/gfortran   -Wl,-rpath  -Wl,/opt/mpich/3.1.4/gnu/6.2.1/lib  -Wl,--enable-new-dtags  -g CMakeFiles/coarray_navier_stokes.dir/coarray-shear_coll.F90.o  -o coarray_navier_stokes -Wl,-rpath,/opt/mpich/3.1.4/gnu/6.2.1/lib  ../../../../../../src/tests/integration/pde_solvers/navier-stokes/libfft_sse.a ../../../../mpi/libcaf_mpi.a /opt/mpich/3.1.4/gnu/6.2.1/lib/libmpi.so /opt/mpich/3.1.4/gnu/6.2.1/lib/libmpifort.so /opt/mpich/3.1.4/gnu/6.2.1/lib/libmpi.so /opt/mpich/3.1.4/gnu/6.2.1/lib/libmpifort.so
/usr/bin/ld: ../../../../../../src/tests/integration/pde_solvers/navier-stokes/libfft_sse.a(trig.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: ../../../../../../src/tests/integration/pde_solvers/navier-stokes/libfft_sse.a(plan.o): relocation R_X86_64_32 against `.rodata.str1.4' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status

I'm a bit perplexed as to why this happens... the linker is saying that -fPIC should be added, but, I thought that the FFT libraries were hand written in assembly... Perhaps this is just a "won't fix" and we should move on...

When looking into the archive, one sees that GCC 4.8.2 is referenced. That may indicate those libraries have at least been assembled by gcc. Would it be feasible to use system supplied fft-libraries? Getting updates...

According to email with @rouson, just remove the test NS test due to the headaches it causes here and elsewhere... I may keep the target but just exclude it from "all" and don't add a CTest test for it.


Add create_task function

This is part of Close.IO's API so should reasonably be included. Also, I need it for something else...

Yes, in all three cases, which, of course, I did first time and definitely did not hurriedly correct.

Coverage increased (+2.0%) to 73.611% when pulling c7042eaea61d40722c46080ca6002e33e6c86247 on create-task into d31b4c3612aed8508a063b184575d39d0e694780 on master.


Error while loading data - No handler found for uri

I followed the installation steps in readme but got error when connecting my local Elasticsearch as below:
{
"error": "No handler found for uri [//_cluster/state/master_node,routing_table,routing_nodes,blocks] and method [GET]"
}
Both cerebro and Elasticsearch are running on Windows 10.

you just need to remove the trailing / from your host. I will anyway add a fix to automatically remove these trailing /.


Fix level editor key uint->int compile error

I followed the build instruction in README for Linux and compilation failed with:
error: Cannot convert from 'uint' to 'int'
I fixed the compilation error and tested 01-physics sample with fps camera and it works.
Tested on Arch Linux.

I fixed the Map to get rid of casts altogether: https://github.com/dbartolini/crown/commit/380219bfb734b1f704a87fe3bed1c4dd1377145b
Thanks for your contribution.


Ubuntu PPA is missing packages for 24.04

Xmake Version
N/A
Operating System Version and Architecture
Ubuntu
Describe Bug
The Ubuntu PPA is missing a package for xmake on 24.04.  This version of Ubuntu does have the Debian package, but unfortunately this version imported during the narrow window when the Debian xmake package was not linked against the json library and falls back to the internal implementation, which is not able to parse hex numbers in JSON.
Expected Behavior
add-apt-repository ppa:xmake-io/xmake on Ubuntu 24.04 should add a package repository that can install xmake
Project Configuration
N/A
Additional Information and Error Logs
N/A

done, try it again.

falls back to the internal implementation, which is not able to parse hex numbers in JSON.

I have improve pure lua json parser to support hex numbers.
https://github.com/xmake-io/xmake/pull/5293


bump version to 1.4.0rc5

Nothing else is changed.

The build has already been uploaded to pypi so you can try it out if you want.


feat: add AddToLogEntry function

if le := accesslog.GetLogEntry(ctx); le != nil {
	le.Add(func(e *zerolog.Event) { e.Str("user_id", user.Id) })
}

"Get LogEntry and Add" is too verbose.
I think we can do same thing with AddToLogEntry function

How about AddFields instead of AddToLogEntry?

First of all, I think LogEntry.Add() is not a proper name. We can more things with zerolog.Event, ex e.Send().
we need to prevent to do other things except "Add Fields". Then, AddFields would be great.

That's good point. I think we should consider changing the Event to an interface to limit actions other than adding Fields.

Yes. Close this PR and I'll make an issue for adding interface to limit actions.


Adding escape character

Adds an escape character to allow escaping translation strings that contain the Laravel :link keyword.
This should fix #69 and allow to have strings in the translation that contains a colon but should not be treated in the typical Laravel way.
I chose "!" as a default character, because it does not have a special meaning in PHP and the combination of "!:" should be uncommon. But the escape character itself can the escaped. Furthermore, it can be changed in the config.
The impact for most users should be minimal, but since it adds the escape sequence and there is a possibility that someone has "!:foo" in the translations and now expects "!{foo}" I would consider that a breaking change.

Looks good, thanks for this!

Released as https://github.com/martinlindhe/laravel-vue-i18n-generator/releases/tag/0.1.41


fix: DBProvider return values and no token supplied error

Error and kill process if no token supplied
Return correct value in dbprovider methods

I think it would be better to remove it as well.

Type boolean?

I think it would be better to remove it as well.

Type boolean?

No I really mean just deleting the methods.
Any methods that exist in InMemoryProvider and not in ADBProvider is not used internally and shouldn't exist in inMemoryProvider.


Problem forking repo that uses git-fat under Windows

I'm trying to fork https://github.com/yagu0/vchess, which in its intructions suggests running git-fat pull ( which I did, after git-fat init succeeded ). I opened an issue there https://github.com/yagu0/vchess/issues/10, but I repeat it here as well, because I don't know if it is a Windows error, a git-fat error or some problem with the repo I'm trying to fork. I'm absolutely noob to git-fat, never tried it before.
Followed installation instructions in https://github.com/yagu0/vchess/tree/master/server/#vchess-server.
git-fat pull failed with:

tried under cygwin, received:

( also tried to run cygwin console as system administrator, no difference )

Was a repo acccess right problem.


fix Mtmv support set both immediate and starttime (#39573)

pick: https://github.com/apache/doris/pull/39573

run buildall

run buildall


Improve block/transaction check

[x] Move MerkleTreeRoot verify to block save function
[x] Move BlockValidation to blocksync（before attach logic）
[x] Remove transactionList from blackbody

Fixed


[PLACEHOLDER] Build for internal hard-fork testing (SOFT FORK FOR STOP SLOT)

!ci-nightly-me

!ci-nightly-me

!ci-nightly-me

!ci-nightly-me

Nightly- https://buildkite.com/o-1-labs-2/mina-end-to-end-nightlies/builds/1358

https://buildkite.com/o-1-labs-2/mina-end-to-end-nightlies/builds/1387

Internal testing has finished, closing.

!ci-nightly-me

!ci-nightly-me


Multi Search Support

Is it possible to do ElasticSearch multi-searches from Chewy? I couldn't find anything in the Chewy docs about this.
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html

Nope, not yet

Thanks for the quick reply. Are there any work arounds for parallelizing searches on mruby?

Nope as well

Multi Search planning to support? May be  plans?

Unfortunately, not yet, It is possible to use elasticsearch-ruby interfaces to do it

Thanks


Issue#204 shapefile handler does not accept cpg and cst files

Allows cpg-files when uploading shapefiles. If not present, tries to read encoding from cst file, or uses default encoding ISO-8859-1.
cpg file is handled by GDAL, while default and cst content is read and set on ENCODING parameter.
related issue #204

@mattiagiupponi one question:
When I run python manage.py test --keepdb importer.handlers.shapefile the tests fail with
Expected: Popen('/usr/bin/ogr2ogr --config PG_USE_COPY YES -f PostgreSQL PG:" dbname=\'geonode_data\' host=localhost port=5434 user=\'geonode\' password=\'geonode\' " "/usr/local/lib/python3.10/dist-packages/gisdata/data/good/vector/san_andres_y_providencia_highway.shp" -lco DIM=2 -nln alternate "dataset" -lco precision=no -lco GEOMETRY_NAME=geometry ', stdout=-1, stderr=-1, shell=True)
Actual: Popen('/usr/bin/ogr2ogr --config PG_USE_COPY YES -f PostgreSQL PG:" dbname=\'geonode_data\' host=db port=5432 user=\'geonode_data\' password=\'geonode_data\' " "/usr/local/lib/python3.10/dist-packages/gisdata/data/good/vector/san_andres_y_providencia_highway.shp" -nln alternate "dataset" -lco precision=no -lco DIM=2 -lco GEOMETRY_NAME=geometry(\' \', \' \')', stdout=-1, stderr=-1, shell=True)

Seems, that the test case expects localhost instead of db. However, .env_test defines GEODATABASE_URL=postgis://geonode_data:geonode_data@db:5432/geonode_data so in what environment do you run the tests? At least circleci config says .env_test is the right one.

hey @mattiagiupponi still a bit puzzled how to proceed here. I think the tests are not in sync with the current code base.
To allow non-spatial datasets to be imported, I had to comment out the -lco DIM=2 option in vector.py
https://github.com/GeoNode/geonode-importer/blob/27fb320ff46ca93d08a0ea42f3762eeda7dbb1bf/importer/handlers/common/vector.py#L162-L164
and set it in the shapefile handler directly after the base command:
https://github.com/GeoNode/geonode-importer/blob/27fb320ff46ca93d08a0ea42f3762eeda7dbb1bf/importer/handlers/shapefile/handler.py#L149-L163
But the shapefile test still expects it to be part of the base command:
https://github.com/GeoNode/geonode-importer/blob/27fb320ff46ca93d08a0ea42f3762eeda7dbb1bf/importer/handlers/shapefile/tests.py#L139-L143

any update on this @mattiagiupponi @ridoo?

any update on this @mattiagiupponi @ridoo?

@giohappy I'm still working on the test platform, is not ready yet
@ridoo if you want just make a test that verify that your part is available. I'll take care of fixing all the tests when it will be the time

I will be able to take care of this next week.

@mattiagiupponi would you please have another look? I added a test case checking if encoding is set in case cst-file is present. cpg files are handled by gdal by default (so they are preferred over cst).


How to use system MIDI-instruments?

There is no answer on stackoverflow, but question is very simple - how to use the system MIDI-instruments  (that we hear when MIDI-files are played) with this library?

This is a question, not an issue.


all dimensions of model output is None

System information.

Have I written custom code (as opposed to using a stock example script provided in Keras): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):  Linux Ubuntu 16.04
TensorFlow installed from (source or binary): pip
TensorFlow version (use command below): 2.0.1
Python version: 3.7.4
Bazel version (if compiling from source):
GPU model and memory:
Exact command to reproduce:

Describe the problem.
I have a model with two output and I use a generator, where feature is the input and gain, vad are labels

And I define a customer loss function

The the print results show that the dimensions of the model output is all None, which lead a Nan of loss

I have no idea what cause this, any suggestions?

I also check the output of generator, it's ok


Allow OpenAI::Client to receive an options hash on initialization and pass it to the HTTParty client

Getting:
Net::ReadTimeout - Net::ReadTimeout with #<TCPSocket:(closed)>:
Need to be able to pass an options hash the OpenAI::Client.new (which will end up in HTTParty options) for more granular control over the request handling.
Example:
# use a read_timeout of 100ms
HTTParty.get('http://www.example.com', { read_timeout: 0.1 })

+1, I'm getting Net::ReadTimeout errors and would like to extend the timeout.

+1

@alexrudall Would you accept a Pull Request that implements this?

Hi @richardonrails, thanks for the offer, I would!

Actually, @richardonrails, I think we're going to move away from HTTParty and probably switch to Typhoeus soon which has no timeout by default I think, so probably hang fire for now

+1

+1

Thanks!


Reboot terminal

Hi, we have a self-checkout app, and the ability to reboot the terminal would be of huge value to us.
Rebooting the terminal solve the most common problems that we encounter. We often have internet connection issues that require a APN reconfiguration that is performed when the terminal reboots. Or sometimes the service that we use for payment (which we don't control) stops responding, and rebooting the terminal fixes it. Every other problem that we've encoutered were also fixed by rebooting the terminal.
Because or app is used for self-checkout, there is no one present to manually reboot it. Rebooting via the PAXSTORE Administrator Center also won't help if the terminal is offline.
Is there any possibility of rebooting the terminal using the SDK?

Sorry, restarting the terminal is a high-privilege and high-risk operation, and this SDK has no support plan


Standardise terminology

Currently use contacts and participants interchangeably. Let's standardise.

Let's standardise contacts for contacts in the contacts list and group mates  for contacts in the project.


Codeowners for can and hwinfo

Taking responsibility for my work.

Codecov Report

Merging #13745 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #13745   +/-   ##
=======================================
  Coverage   52.24%   52.24%
=======================================
  Files         307      307
  Lines       45413    45413
  Branches    10508    10508
=======================================
  Hits        23726    23726
  Misses      16898    16898
  Partials     4789     4789

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bb6b191...595cb9e. Read the comment docs.


Okio deadline for HTTP and HTTP2 stream

#2191
Set a deadline timeout for each HTTP2 stream. DeadlineTimeout will start when the request header is written and will stop the moment Http2Stream#receiveFin() is triggered.
This should allow the entire process of the request to be kept within the allocated deadline time.
Edit:
A timeout using the expected deadline duration is created in Http1Codec which will ensure that the time duration at which a request is made to getting a response is within the allocated deadline time

@dave-r12 Hi! I have updated the commits based on your reviews.
Specifically for making state in Http1Codec thread safe, I am using volatile to keep the synchronisation cost low, while ensuring the visibility of its edits.
Since the state does not depend on its current value to edit or is involved in an invariant with other variables, I think this should be valid.

@swankjesse
To avoid confusion, I remove the keyword timeout from the request's deadline. Instead, I renamed it to requestDeadline. For example, OkHttpClient#requestDeadlineMillis()
In addition, I created an abstract class HttpRequestDeadline and have deadlines for both HTTP1 and HTTP2 extends from it to ensure that the separation is clear from StreamTimeout
Lastly, I have Http1RequestDeadline#timeOut() calls cancel() to close the socket, which at the same time will close both the sink and source. Any further attempt to read/write from them will throw an IOException. I am not entirely sure if this will be safe concurrency wise, hence I hope to get your thoughts on this.
Thanks!

I’m still not sure about how to expose this as an API. Here’s an alternative:
public interface Call {
  ...
  Timeout timeout();

This feels more like how Okio typically works, which I like. We could also offer the default timeout on OkHttpClient.Builder:
class OkHttpClient {
  ...
  class Builder {
    public Builder connectTimeout(long timeout, TimeUnit unit) { ... }
    public Builder readTimeout(long timeout, TimeUnit unit) { ... }
    public Builder writeTimeout(long timeout, TimeUnit unit) { ... }
    public Builder callTimeout(long timeout, TimeUnit unit) { ... }
  }
}

I’m curious – what’s your use case here? Just trying to fix a bug from our queue or do you actually need this fix?

FWIW I really like the exposure in Call and would mirror that in Retrofit
On Wed, Jul 20, 2016, 5:39 PM Jesse Wilson<EMAIL_ADDRESS>wrote:

I’m still not sure about how to expose this as an API. Here’s an
alternative:
public interface Call {
...
Timeout timeout();
This feels more like how Okio typically works, which I like. We could also
offer the default timeout on OkHttpClient.Builder:
class OkHttpClient {
...
class Builder {
public Builder connectTimeout(long timeout, TimeUnit unit) { ... }
public Builder readTimeout(long timeout, TimeUnit unit) { ... }
public Builder writeTimeout(long timeout, TimeUnit unit) { ... }
public Builder callTimeout(long timeout, TimeUnit unit) { ... }
}
}
I’m curious – what’s your use case here? Just trying to fix a bug from our
queue or do you actually need this fix?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/square/okhttp/pull/2729#issuecomment-234091811, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAEEERpsuxSoonkPMhtj5dzbkse3LYfcks5qXpWMgaJpZM4JOEfx
.

I’m curious – what’s your use case here? Just trying to fix a bug from our queue or do you actually need this fix?

A little bit of both. Was previously trying to set an absolute timeout for the entire call through the OkHttpClient#Builder. Also trying to fix stuff up from the queue to contribute to a library I use extensively at work.
I chose the latter, albeit with a different name  Builder#requestDeadline(). Reason being that this is currently where all the timeouts are being set.
Alternatively, as you have suggested, Call#timeout() will allow each specific call request to have their own deadline, which I like for its flexibility. If this is chosen, then I am thinking of having CallServerInterceptor to take in the timeout and then set it into HttpCodec.
What do you think?

I’m still not sure about how to expose this as an API. Here’s an alternative:

public interface Call {
  Timeout timeout();

This feels more like how Okio typically works, which I like. We could also offer the default timeout on OkHttpClient.Builder:
class OkHttpClient {
  class Builder {
    public Builder connectTimeout(long timeout, TimeUnit unit) { ... }
    public Builder readTimeout(long timeout, TimeUnit unit) { ... }
    public Builder writeTimeout(long timeout, TimeUnit unit) { ... }
    public Builder callTimeout(long timeout, TimeUnit unit) { ... }
  }
}

At the moment I’m not completely convinced that this is a real problem that needs to be fixed. If an application is seeing bytes make forward progress, but slowly, do they ever want the client to kill the request?

@swankjesse A quick check around me also shows that most ppl are not expecting the client to kill the request when the bytes are seen making forward progress. This is indeed a good to have and not must have.
Will go on to close this away. Thanks!

At the moment I’m not completely convinced that this is a real problem that needs to be fixed. If an application is seeing bytes make forward progress, but slowly, do they ever want the client to kill the request?


add event

Coverage increased (+0.4%) to 84.216% when pulling 5443802fc4027f9111252d1c0f3319f83939a35f on event into 2e3a4d4b4fbcc07be386cc8793009d65231dcb30 on master.


Improve fork experience

Our GitHub actions haven't been running correctly for forks. This should fix all of them:
CI
CI only on push means that PRs from forks aren't tested. Adding pull_request fixes forks, with the downside of triggering duplicated jobs for PRs coming from branches in this repo.
Labeler
Resolves https://github.com/ignition-tooling/pr-collection-labeler/issues/4.
Uses the new pull_request_target event.
Tested here: https://github.com/ignitionrobotics/testing/pull/14
Triage
Like above, uses the new pull_request_target event.
Tested here: https://github.com/ignitionrobotics/testing/pull/15

@osrf-jenkins run tests please

@osrf-jenkins run tests please

@osrf-jenkins run tests please


Updates ImagePullPolicy to IfNotPresent

I don't think we need Always, IfNotPresent should be sufficient

man i always forget changelogs

done mergin'


Assert failed:in file ../ccutil/unicharset.h, line 513

Environment

Tesseract Version: Tesseract Open Source OCR Engine v4.00.00dev-692-gad5ee184 with Leptonica
Platform: Linux 4.9.43-17.39.amzn1.x86_64 #1 SMP x86_64 GNU/Linux

Current Behavior:
Command '['tesseract', '/tmp/tr_tmp.jpg', '/tmp/tr_tmp', '--tessdata-dir', '/var/task/tessdata', '--psm', '12', '--oem', '2', '-l', u'eng', 'hocr']' returned non-zero exit status -11: CalledProcessError
Traceback (most recent call last):
File "/var/task/lambda_function.py", line 22, in lambda_handler
**event
File "/var/task/lib/ocr/common/procedures.py", line 105, in recognize
scanned = scanner.scan_jpg(swabbed, file_desc['pagenum'], **kwargs)
File "/var/task/lib/ocr/common/scanner.py", line 62, in scan_jpg
'hocr',
File "/usr/lib64/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['tesseract', '/tmp/tr_tmp.jpg', '/tmp/tr_tmp', '--tessdata-dir', '/var/task/tessdata', '--psm', '12', '--oem', '2', '-l', u'eng', 'hocr']' returned non-zero exit status -11
Expected Behavior:
no crash
Suggested Fix:

Please follow instruction of issue tracker - we do not support 3rd party sw (python)

Hi friend, did you find a solution?

'--oem', '2', '
Please use --oem 1 for the LSTM engine.

had a similar issue.
Got it solved by taking a new training set from https://github.com/tesseract-ocr/tesseract/wiki/Data-Files#updated-data-files-for-version-400-september-15-2017


BUG: Fix dual_annealing bounds test

Reference issue
Closes #15670
Only change is to increase tolerance for finding the global optimum at the boundary of the feasible space from 1e-8 to 1e-7.

This seems safe enough to me.


Logs - fix typo in log-group-name regex

Closes #4968
The regex-pattern for validating the log group name was wrong in three ways:

It didn't validate that the name should match the regex completely
The regexes were inconsistent
It matched against .-_ - which is interpreted as every character between . and _. Changing the order to -._ ensures that they are interpreted as three different characters

Codecov Report

Merging #4972 (c918f73) into master (d51a8a3) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #4972   +/-   ##
=======================================
  Coverage   95.64%   95.64%
=======================================
  Files         621      621
  Lines       65394    65395    +1
=======================================
+ Hits        62547    62548    +1
  Misses       2847     2847

Flag
Coverage Δ

servertests
36.11% <33.33%> (-0.01%)
:arrow_down:

unittests
95.58% <100.00%> (-0.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

moto/__init__.py
97.10% <100.00%> (ø)

moto/logs/responses.py
97.44% <100.00%> (+0.01%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1f9f4af...c918f73. Read the comment docs.


Fail non-Linux Hack jobs

Until we implement Homebrew-based installation, we should reject language: hack + os: mac.

We don't currently support PHP on Mac, either.

Filed https://github.com/hhvm/user-documentation/issues/683 as mac has similar changes to the linux builds -<EMAIL_ADDRESS>hhvm (latest stable) and hhvm-nightly are still available, but all releases since 4.1 are available as hhvm-4.x  ,whether LTS or not


Error when running swagger's petstore sample service

Ran RESTler on petstore3 (and petstore which is v2 of openapi)
https://github.com/swagger-api/swagger-petstore
Exception in thread Fuzzer:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/RESTler/engine/engine/core/fuzzer.py", line 36, in run
self._num_total_sequences = driver.generate_sequences(
File "/RESTler/engine/engine/core/driver.py", line 579, in generate_sequences
return generate_sequences_directed_smoketest(fuzzing_requests, checkers)
File "/RESTler/engine/engine/core/driver.py", line 495, in generate_sequences_directed_smoketest
renderings, response_body, rendering_information = render_request(req, new_seq)
File "/RESTler/engine/engine/core/driver.py", line 395, in render_request
apply_checkers(checkers, renderings, global_lock)
File "/RESTler/engine/engine/core/driver.py", line 143, in apply_checkers
checker.apply(renderings, global_lock)
File "/RESTler/engine/checkers/payload_body_checker.py", line 186, in apply
self._run_feedback_fuzzing(last_request, body_schema_list)
File "/RESTler/engine/checkers/payload_body_checker.py", line 634, in _run_feedback_fuzzing
self._run_invalid_json_task(
File "/RESTler/engine/checkers/payload_body_checker.py", line 736, in _run_invalid_json_task
self._run_body_value_fuzzing(
File "/RESTler/engine/checkers/payload_body_checker.py", line 842, in _run_body_value_fuzzing
self._exec_request_with_new_body(request, body_blocks, tracker)
File "/RESTler/engine/checkers/payload_body_checker.py", line 1115, in _exec_request_with_new_body
for rendered_data, parser in new_request.render_iter(
AttributeError: 'NoneType' object has no attribute 'render_iter'

The issue is that a request has a body and a valid schema in grammar.json, but the request body in grammar.py looks like this:
primitives.restler_static_string("\r\n"),
primitives.restler_fuzzable_string("fuzzstring", quoted=True),
primitives.restler_static_string("\r\n"),

Because there is no '{' the payload body checker fails to find the body start, correctly returns a failure, but then the failure is never handled properly and the invalid request tries to get used anyway (as None) and then crashes. A check for the failure and an abort must be fixed in the payload body checker, but why was the grammar compiled like this in the first place?

@rifiles Which endpoint?

@stishkin Could you please provide the full path to the yaml file you passed to RESTler?

@rifiles Found it:
Endpoint: /pet/{petId}/uploadImage, method: Post

@rifiles
This is currently by design because RESTler only supports bodies of type application/json.
The payload body checker should skip these, as you are already planning to do.
To support this use case, what changes need to be made to the engine?  We probably need the content type in the grammar - let's discuss.
Let's leave the issue open
requestBody:
content:
application/octet-stream:
schema:
type: string
format: binary

https://petstore3.swagger.io/api/v3/openapi.json

Has anyone exercised the petstore server (with openapi v3) with restler. Need some some details on how it has been run (compiled with restler and on basic run getting all 404/405 errors -- which seem reasonable so wanting to under what prework/config is required on petstore so that restler can be used

Has anyone exercised the petstore server (with openapi v3) with restler. Need some some details on how it has been run (compiled with restler and on basic run getting all 404/405 errors -- which seem reasonable so wanting to under what prework/config is required on petstore so that restler can be used


Make LINQ samples (under C# concepts) buildable; remove unnecessary noise (redux)

Summary
The changes outlined here:

Make the LINQ samples into a buildable project
Test project verifying the output
All samples should run when running the project
Each sample should have its own dedicated method
Use shared data classes and data source initialization (where possible)
Commit each page together with its sample code, so CI can validate the two together, and I can catch errors early
Fixes #28135

@BillWagner Should I resolve the open conversations?
Also, Git ignores the solution files (configured in the root .gitignore). Does it make sense here, where there are two projects?

@BillWagner Should I mark the open conversations as resolved?
Also, Git ignores the solution files (configured in the root .gitignore). Does it make sense here, where there are two projects?

I already resolved the conversations (I saw this comment at the bottom of the page after resolving the others).
Yes, adding the solution file makes sense here. It will trigger our CI build to build the solution once.
Thanks again for all your work!
You may have noticed that our CLA bot is down. That will delay merging this. I don't have an ETA, but I know the support team is aware of it and is working on it.


Problems with "BR3" and ARD webradio

This works with VLAN in my laptop:
http://br-br3-live.cast.addradio.de/br/br3/live/mp3/128/stream.mp3
but not with esp-radio.
Please help

See issue 154.

Thank you very much!
It works now.


unable to clear store

I am using lsm with react-router for a wizard on a client's site and I need to reset the store when a user returns to the wizard landing page. I found this solution in stack overflow (https://stackoverflow.com/questions/64822032/react-little-state-machine-clear-data) but I cant get it to work.  I cant show the full application, but from the below can you see anything wrong with what I have done.
Using
    "react-router-dom": "^6.2.1",
    "little-state-machine": "^4.2.0",
    "little-state-machine-devtools": "^2.0.1",

App.js
createStore({
  data
});

function App() {

    return (
      <StateMachineProvider>
        <DevTool />
        <div className="container">
          ...
          <Router>
            <Steps />
          </Router>
        </div>
      </StateMachineProvider>
    );
  }

  export default App;

Steps.js
....
import { useStateMachine } from "little-state-machine";
import clearAction from "./lsm/actions/clearAction";
...

export default () => {
    ....
   const location = useLocation();
   const { state, actions } = useStateMachine({ clearAction });
   ...

   useEffect(() => {

       let step = location.pathname.split("/")[2];
       // landing page location = http://site.co.uk/wizard
       // steps have url = http://site.co.uk/wizard/step[1-4]
       if(!step){

           actions.clearAction();

       }

   }, []);

return (...);
};

clearAction.js
export default function clearAction(state, payload) {
   return {};
 }

I even tried to use window.LSM_RESET(), sessionStorage.removeItem('LSM') and sessionStorage.clear(). None of these work.
Is there a simpler way to reset/clear the store from within a component?

should be able to do easily with a clearAction as above. can you share a codesandbox?

the wizard is part of the clients site, so it is a little difficult to extract but i'll give it a try.

I think I fixed the issue. Was peppering my code with state updaters that were conflicting with each other.


Added Tensor.dataToString()

Fixes https://github.com/tensorflow/java/issues/268

@googlebot I signed it!

@rnett Please review.
Apologies in advance. The implementation got hairy once I added maxWidth support. Please refactor this as you see fit to improve readability.

The build failure doesn't seem to be related to my changes. Please confirm.

The quick build failing in javadoc generation is a known issue we're working on in other PRs.

Looks good, I have a few documentation requests and a request for float formatting. Did you consider adding an Operand.dataToString() default method that calls asTensor().dataToString() (or similar)?

Yes, I could do that. Are you saying that you would leave the main implementation on Tensor and simply add a convenience method on Operand that redirects to it?

FYI, I decided to remove trailing commas after closing brackets. I think it looks better this way and I think that tf.print does the same. In order words:
[
  [1, 2],
  [3, 4],
  [5, 6]
]

Will now show up as:
[
  [1, 2]
  [3, 4]
  [5, 6]
]

Looks good, I have a few documentation requests and a request for float formatting. Did you consider adding an Operand.dataToString() default method that calls asTensor().dataToString() (or similar)?

Yes, I could do that. Are you saying that you would leave the main implementation on Tensor and simply add a convenience method on Operand that redirects to it?

Yeah, that's exactly what I ment.

Other than the small comments, I made a PR (cowwoc#1) against your branch with additional data type tests, and (because of said tests) wrapping string elements in quotes. Use the PR if you want, but regardless, both of those would be good to have.

Merged. Thank you.
Let me know if there is anything else. Otherwise, how do we fix the quick-build so I can merge this PR?

The test failure will be fixed in #276. The Javadoc failures we're still working on. Once #276 is merged in then I'll rerun the action and check that the tests complete.

@googlebot I consent.

@JimClarke5 Any chance you could pick up the torch (apply the changes that Karl asked for) on my behalf? I won't have time to pick this up for another week or two.

@cowwoc OK, one problem I have is I need to work with my latest version of the xxxSession classes that I am using for Models and Layers, I assume you could cherry pick the Tensor related changes.

@cowwoc OK, one problem I have is I need to work with my latest version of the xxxSession classes that I am using for Models and Layers, I assume you could cherry pick the Tensor related changes.

You should be able to fork my PR, merge in your changes and push a new PR. I will approve it which should merge the changes back into this initial PR.

I understand that, but I need to test with my latest code first.

Will Operand.dataToString() work in Graph mode with out first doing a try catch?
try (Tensor tensor = session.runner().fetch(input).run().get(0)) {
     tensor.dataToString()
}

Would we want the printed values enclosed in braces ( {} ) rather than square brackets( []}. Braces make it easier to copy and past into Java code.

I think we should pattern the output after java.util.Arrays.deepToString(), which takes us back to brackets with commas.
float[][][] f = new float[][][] {
            {{1,2}, {3,4}},
            {{5, 6}, {7, 8}},
            {{9, 10}, {11, 12}}
};
System.out.println(Arrays.deepToString(f));
// [[[1.0, 2.0], [3.0, 4.0]], [[5.0, 6.0], [7.0, 8.0]], [[9.0, 10.0], [11.0, 12.0]]]

Will Operand.dataToString() work in Graph mode with out first doing a try catch?
try (Tensor tensor = session.runner().fetch(input).run().get(0)) {
     tensor.dataToString()
}

Per https://github.com/tensorflow/java/issues/268#issuecomment-811663700 I was asked to only support eager mode. I suggest discussing this part with @rnett.

I think we should pattern the output after java.util.Arrays.deepToString(), which takes us back to brackets with commas.
float[][][] f = new float[][][] {
            {{1,2}, {3,4}},
            {{5, 6}, {7, 8}},
            {{9, 10}, {11, 12}}
};
System.out.println(Arrays.deepToString(f));
// [[[1.0, 2.0], [3.0, 4.0]], [[5.0, 6.0], [7.0, 8.0]], [[9.0, 10.0], [11.0, 12.0]]]

My 2 cents: Make the default output human-friendly (i.e. square brackets as TF.print() and others do) and provide a Builder option that will request Java-style output. I find the indentation I provided above easier to read (for humans) than Java code, but I agree that the latter is useful functionality.

Per #268 (comment) I was asked to only support eager mode. I suggest discussing this part with @rnett.

That's for Operands, Tensors should work fine regardless (which is what was in Jim's example).

My 2 cents: Make the default output human-friendly (i.e. square brackets as TF.print() and others do) and provide a Builder option that will request Java-style output. I find the indentation I provided above easier to read (for humans) than Java code, but I agree that the latter is useful functionality.

I'd agree with this: default to tf.print style but have options.  I don't find the default Java style to be very readable for large tensors.

@rnett @cowwoc FYI, in Graph mode, accessing Operand.asTensor() will fail without calling the session fetch first.

@rnett @cowwoc FYI, in Graph mode, accessing Operand.asTensor() will fail without calling the session fetch first.

Yeah, that's why we didn't have dataToString() do anything in Graph mode.  It just calls asTensor().dataToString(), so it will do the same thing as asTensor().

@cowwoc Your branch is behind master and that is causing me build issues.

@JimClarke5 One sec, I'll merge master into it.

@JimClarke5 Try now.

Actually the print code is keying on inheriting from NDArray. It has nothing to do specifically with TType.  That is why @karllessard ’s comment is throwing me off.

@JimClarke5 yeah maybe my comment wasn't clear. I was just pointing out that the dataToString() method could be added in TType instead of Tensor since only typed tensors are supported anyway. The dataToString() version for raw tensors is converting to a typed tensor before printing it, something the user could do directly if needed.
But I'm also fine leaving it there, in Tensor, if that makes things easier or if you think it make more sense.

Any updates on this? I am very new to Tensorflow and I have no idea how to visualize simple output. This seems perfect but it's been a year an a half since the last comment.

@ajs1998 you can print the value of any operand (Operand) using TF debug operations, such as tf.print(tf.strings.stringFormat(tensors...)) for example.
But if you want to print the values of a Tensor object itself without iterating through it, then that is still lacking afaik and should probably be added to the ndarray module instead. Could be an interesting and easy first PR for anyone interested to contribute to the project!

@karllessard Excellent! Didn't know I could print an operand like that, thank you.


pip install from azure dev asking for username & password for pkgs.dev.azure.com

I am trying to install package from azure repo with the index url https://pkgs.dev.azure.com//_packaging//pypi/simple/  but I am getting below issue:
Looking in indexes: https://pkgs.dev.azure.com//_packaging//pypi/simple/
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at NuGetCredentialProvider.Program.d__11.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
at NuGetCredentialProvider.Program.Main(String[] args)
at NuGetCredentialProvider.Program.(String[] args)
WARNING: Keyring is skipped due to an exception: Failed to get credentials: process with PID 17148 exited with code<PHONE_NUMBER>; additional error message:
User for pkgs.dev.azure.com:

@saideep2407 , how did you install the artifacts-keyring? Which OS platform you are running on? Can you share the command line you are calling?

Closing it since we haven't had a reply. Feel free to re-open it in case you can provide the information requested

Hitting the same issue on Arch linux (Manjaro), python 3.9.9, dotnet SDK/Runtime (6.0.100 [/usr/share/dotnet/sdk], Microsoft.NETCore.App 6.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]):
$ python39 -m venv .venv
$ source .venv/bin/activate
$ pip install artifacts-keyring
...
$ pip install <package> --extra-index-url=<azure_pypi_url>
Looking in indexes: https://pypi.org/simple, <azure_pypi_url>
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'System.Security.Cryptography.ProtectedData, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

File name: 'System.Security.Cryptography.ProtectedData, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at NuGetCredentialProvider.Util.EncryptedFile.ReadFileBytes(String filePath, Boolean readUnencrypted)
   at NuGetCredentialProvider.Util.SessionTokenCache.ReadFileBytes()
   at NuGetCredentialProvider.Util.SessionTokenCache.get_Cache()
   at NuGetCredentialProvider.Util.SessionTokenCache.TryGetValue(Uri key, String& value)
   at NuGetCredentialProvider.RequestHandlers.GetAuthenticationCredentialsRequestHandler.TryCache(GetAuthenticationCredentialsRequest request, String& cachedToken)
   at NuGetCredentialProvider.RequestHandlers.GetAuthenticationCredentialsRequestHandler.HandleRequestAsync(GetAuthenticationCredentialsRequest request)
   at NuGetCredentialProvider.Program.Main(String[] args)
   at NuGetCredentialProvider.Program.<Main>(String[] args)
WARNING: Keyring is skipped due to an exception: Failed to get credentials: process with PID 2151029 exited with code -6; additional error message:
User for pkgs.dev.azure.com: ^CERROR: Operation cancelled by user
$

NOTE: Digging into the above sources I only have: /usr/share/dotnet/sdk/6.0.100/System.Security.Cryptography.ProtectedData.dll
The community supported dotnet-sdk options are:
$ yay -Ss dotnet-sdk
aur/dotnet-sdk-3.0 3.0.3.sdk103-4 (+0 0.00)
    The .NET Core SDK (binary) - End-of-life
aur/dotnet-sdk-lts-bin 3.1.201-1 (+0 0.00)
    Provides the .NET core software development kit (sdk).
aur/dotnet-sdk-2.2-vs2017 2.2.8.sdk110-1 (+0 0.00)
    The .NET Core SDK binary version 2.2 - latest (End of Life) Visual Studio 2017 compatible
aur/dotnet-sdk-2.2 2.2.8.sdk207-1 (+1 0.00)
    The .NET Core SDK binary version 2.2 - latest (End of Life)
aur/dotnet-sdk-1.1 1.0.4-1 (+1 0.00) (Orphaned) (Out-of-date: 2018-06-11)
    Provides the .NET core software development kit (sdk).
aur/dotnet-sdk-5.0-bin 5.0.13.sdk404-1 (+3 1.24)
    The .NET Core SDK version 5.0 (binary)
aur/dotnet-sdk-2.1 2.1.30.sdk818-1 (+4 0.00)
    The .NET Core SDK version 2.1
aur/dotnet-sdk-preview-bin 6.0.0.sdk100+rc.2.21505.57-2 (+11 0.21)
    The .NET Core SDK (preview, binary)
aur/dotnet-sdk-bin 6.0.1.sdk101-4 (+33 2.37)
    The .NET Core SDK (binary)
community/dotnet-sdk-3.1 3.1.20.sdk120-1 (39.8 MiB 143.1 MiB)
    The .NET Core SDK
community/dotnet-sdk 6.0.0.sdk100-2 (70.1 MiB 268.4 MiB) (Installed)
    The .NET Core SDK
$

@edgarrs I'm also seeing the same issue after following the instructions verbatim from Azure DevOps for connecting to a pip artifacts feed.
> pip install -i *** pkg_a pkg_b
Looking in indexes: ***

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
   at NuGetCredentialProvider.Program.<Main>d__11.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)
   at NuGetCredentialProvider.Program.Main(String[] args)
   at NuGetCredentialProvider.Program.<Main>(String[] args)
WARNING: Keyring is skipped due to an exception: Failed to get credentials: process with PID 1800 exited with code<PHONE_NUMBER>; additional error message:

> python --version
Python 3.9.13

I'm on Windows 11 (22000.795), using PowerShell 7 inside of the VS command prompt.

The root cause may likely be related to a long filesystem path. The Python distribution I'm using comes from the Windows store, and the path is long enough that I can't directly extract a zip folder to the same path that artifacts-keyring is installed to.


Qwen2___5-72B-Instruct-GPTQ-Int8 用vllm启动失败

System Info / 系統信息
ubuntu 22.04
cuda 12.4
Running Xinference with Docker? / 是否使用 Docker 运行 Xinfernece？

[X] docker / docker
[X] pip install / 通过 pip install 安装
[ ] installation from source / 从源码安装

Version info / 版本信息
vllm  0.6.1
vllm-flash-attn  2.6.1
xinference  1.0.0
The command used to start Xinference / 用以启动 xinference 的命令
xinference-local --host <IP_ADDRESS> --port 10860
xinference launch -e http://<IP_ADDRESS>:10860
--model_path /data/Qwen2___5-72B-Instruct-GPTQ-Int8
--model-engine vllm --gpu-idx 2,3,4,5 -r 1 -n Qwen2___5-72B-Instruct-GPTQ-Int8
docker启动和python环境启动都试了，报同样的错误
Reproduction / 复现过程
File "/usr/local/lib/python3.10/dist-packages/vllm/engine/llm_engine.py", line 586, in _init_tokenizer
return init tokenizer from configs(
File "/usr/local/lib/python3.10/dist-packages/vllm/transformenrs_utils/tokenizer_group/init.py", line 28, in init_tokenizer_from_con
return get_tokenizer group(parallel config.tokenizerpool config
File "/usr/local/lib/python3.10/dist-packages/vllm/transforimers_utils/tokenizer_group/init.py", line 49, in get_tokkenizer_group
return tokenizer cls.from config(tokenizer pool config, **init kwargs
File ""/usr/local/lib/python3.10/dist-packages/vllm/transformers_utils/tokenizer_group/tokenizer_group.py", line 30, in from_config
return cls(**init_kwargs
File "/usr/local/lib/python3.10/dist-packages/vllm/transformeers_utils/tokenizer_group/tokenizer_group.py", line 23, in in it
self.tokenizer = get_tokenizer(self.tokenizer_id, **tokenizer_config)
File "/usr/local/lib/python3.10/dist-packages/vllm/transfoormers_utils/tokenizer.py", line 120, in get_tokenizer
tokenizer = AutoTokenizer.from_pretrained(
File "/usr/local/lib/python3.10/dist-packages/transformers/models/auto/tokenization_auto.py", line 916, in from_pretrained
return tokenizer class fast.from pretrained(pretrained model name or path, *inputs, **kwargs
File "/usr/local/lib/python3.10/dist-packages/transformerss/tokenization utils_base.py", line 2271, in from pretrained
return cls. from pretrained(
File "/usr/local/lib/python3.10/dist-packages/transformers/tokeenization_utils_base.py", line 2309, in _from_pretrained
slow tokenizer = (cls.slow tokenizer class). from pretrained(
File "/usr/local/lib/python3.10/dist-packages/transformerss/tokenization_utils_base.py", line 2505, in from_pretrained
tokenizer = cls(*init_inputs, **init_kwargs)
File "/usr/local/lib/python3.10/dist-packages/transformers/models/qwen2/tokenization_qwen2.py", line 172, in _ init
with open(vocab file, encoding="utf-8") as voocab handle:
TypeError: [address=<IP_ADDRESS>:34075, pid=4429]expected str, bytes or os.PathLike object, not NoneType
Expected behavior / 期待表现
有没有临时解决方案？谢谢

你的模型权重确定没问题吗？

你的模型权重确定没问题吗？

谢谢，我检查了一遍权重文件，它漏掉了一个文件，但启动时依然报错：
File "/usr/Tocal/Tib/python3.10/dist-packages/vllm/executor/executor/exedcutor_base.py", line 47, in _ init_
self._init_executor()
File "/usr/local/lib/python3.10/dist-packages/vllm/executor/multiproc_gpu_executor.py", line 124, in _init_executor
self. run workers("init device"
File "/usr/local/lib/python3.10/dist-packages/vllm/executor/multipproc_gpu_executor.py", line 199, in run_workers
driver worker output = driver worker method(*args,**kwargs
File "/usr/local/lib/python3.10/dist-packages/vllm/worker/worker.ру";
line 175, in init_device
init_worker_distributed_environment(self.parallel_config, self.rank,
File "/usr/local/lib/pythoิn3.10/dist-packages/vllm/worker/ั้งorker.py", line 450, in init_worker_distributed_environment
ensure model parallel initialized(parallel config.tensor parallel size,
File "/usิr/local/lib/python3.10/dist-packages/vllm/distriburted/parallel_state.py", line 965, in ensure_model_parallel_iitialized
initialize_model_parallel(tensor_model_parallel_size,
File "/usr/local/lib/python3.10/dist-packages/vllm/distributted/parallel_state.py", line 931, in initialize_model_parallel
TP = init_model_parallel_group(group_ranks,
File "/usr/local/lib/python3.10/dist-packages/vllm/distributed/parallel_state.py", line 773, in init_model_parallel_group
return GroupCoordinator(
File "/usr/local/lib/python3.10/dist-packages/vllm/distributed/parallel_state.py", line 154, in _ init
self.pynccl_comm = PyNcclCommunicator(
File "/usr/local/lib/python3.10/dist-packages/vllm/distributed//device_communicators/pynccl.py", line 89, in _ init
self.comm: ncclComm t = self.nccl.ncclCommInitRaank
File "/usr/local/lib/python3.10/dist-packages/vllm/distributed/device_communicators/pynccl_wrapper.py", line 244, in ncclCommInitRank
self.NCCL CHECK(self. funcs["ncclCommInitRank"]((ctypes.byref(comm),
File "/usr/local/lib/python3.10/dist-packages/vllm/distributted/device_communicators/pynccl_wrapper.py", line 223, in NOCL_CHECK
raise RuntimeError(f"NCCL error: {error_str}")
RuntimeError: [address=0.0.0:40991, pid=859] NCCL error:: unhandled system error (run with NCCL_DEBUG=INFO for details
如何解决呢？谢谢

OK，那先 close。


Add favicon to root

Supersedes and closes #25.

- ./faq.html
  *  External link https://cdn.mhsengineering.club/favicon.png failed: response code 0 means something's wrong
htmlproofer 3.0.4 | Error:  HTML-Proofer found 1 failure!

How about we just check html and disabled everything else?

I'm giving up for now and going to sleep.  Let's talk tomorrow about this.


Allow make vertical

allow make vertical also can be a great improvement

duplicate of #1 and/or #3
closing here.


RS-485 Errors and Timeouts

Can I get a little help troubleshooting my setup?
I have a Carrier Infinity furnace and AC unit that were installed in 2005.  When I moved in about 3 years ago it was connected to a generic 2-stage thermostat, which I replaced with a systxccuid01 thermostat (the one with buttons) from eBay along with a new run of 18/5 thermostat wire from the furnace in the attic to the AC unit outside (about 50 feet).  The thermostat is directly below the furnace, connected by about 10 feet of wire.  Over the weekend, I ran about 20 feet of new 18/2 thermostat wire from the furnace to an RPi in my structured media center, which has the following RS-485 to USB adapter: https://www.amazon.com/gp/product/B005CPI0JQ
The Infinity A and B wires are connected to the RS-485 (A+) and (B-) terminals, respectively, which I believe is correct, although I'm new to RS-485 and it feels weird to not have a signal ground wire like with RS-232.
When I fire up Infinitive, I see lots of errors in the log output (see below), and the Infinitive UI is not populated with any values.  (note that the AC was not on at the time, so RPM and CFM readings of 0 are correct)
Any ideas where I should direct my troubleshooting efforts?  Does this look like a wiring issue, or possibly something wrong on the Carrier side?  I'd rather not put the RPi at the furnace permanently, as I have a very hot attic, but maybe I can try it temporarily to rule out wiring issues due to staples, running near AC circuits, etc.
INFO[0028] read frame: 2001 -> e01: READ     003e04
INFO[0028] read frame: e01 -> 2001: RESPONSE 003e0400
INFO[0028] read frame: 2001 -> e01: READ     003e07
INFO[0028] read frame: e01 -> 2001: RESPONSE 003e070000
INFO[0028] read frame: 2001 -> 9201: ERROR    04
DEBU[0028] timeout waiting for response, retransmitting frame
DEBU[0028] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0028] read frame: 2001 -> 9201: ERROR    04
DEBU[0028] timeout waiting for response, retransmitting frame
DEBU[0028] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0028] read frame: 2001 -> 9201: ERROR    04
DEBU[0028] timeout waiting for response, retransmitting frame
DEBU[0028] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0028] read frame: 2001 -> 9201: ERROR    04
DEBU[0028] timeout waiting for response, retransmitting frame
DEBU[0028] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0028] read frame: 2001 -> 9201: ERROR    04
DEBU[0029] timeout waiting for response, retransmitting frame
DEBU[0029] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0029] action timed out
INFO[0029] read frame: 2001 -> 9201: ERROR    04
INFO[0030] encoded frame: 9201 -> 2001: READ     003b03
DEBU[0030] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0030] read frame: 2001 -> 9201: ERROR    04
INFO[0030] read frame: 2001 -> 4001: READ     00030a
INFO[0030] read frame: 4001 -> 2001: RESPONSE 00030a010a0a02001f004b000010080414
INFO[0030] read frame: 2001 -> 4001: READ     000104
DEBU[0030] timeout waiting for response, retransmitting frame
DEBU[0030] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0030] read frame: 4001 -> 2001: RESPONSE<PHONE_NUMBER>524941424c45205350454544204655524e4143452020000000000000000000000000000000000000000000000000434553523133313331322d303620202035384d56503038302d462d31383131340000002d343330344e3030313935302034353034413130333634000000000000000000000000002d
INFO[0030] read frame: 2001 -> 9201: ERROR    04
INFO[0030] read frame: 2001 -> 4001: READ     000306
INFO[0030] read frame: 4001 -> 2001: RESPONSE<PHONE_NUMBER>00000001e505aa00
DEBU[0030] blower RPM is: 0
INFO[0030] read frame: 2001 -> 4001: READ     000302
INFO[0030] read frame: 4001 -> 2001: RESPONSE<PHONE_NUMBER>00000414000004020000
INFO[0030] read frame: 2001 -> 4001: READ     000316
DEBU[0030] timeout waiting for response, retransmitting frame
DEBU[0030] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
DEBU[0030] timeout waiting for response, retransmitting frame
DEBU[0030] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
DEBU[0030] timeout waiting for response, retransmitting frame
DEBU[0030] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
DEBU[0031] timeout waiting for response, retransmitting frame
DEBU[0031] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0031] action timed out
INFO[0031] read frame: 2001 -> 4001: READ     000316
INFO[0031] read frame: 4001 -> 2001: RESPONSE<PHONE_NUMBER>000000000000005a01000352
DEBU[0031] air flow CFM is: 0
INFO[0031] read frame: 2001 -> 9201: ERROR    04
INFO[0031] read frame: 2001 -> 9201: ERROR    04
INFO[0031] read frame: 2001 -> 9201: ERROR    04
INFO[0031] read frame: 2001 -> 4001: READ     000402
INFO[0031] read frame: 4001 -> 2001: RESPONSE 0004025a7896b45a1d358ec4741d34978da41db4eaad511d324813a602d005aa

Quick update... I was reading through one of the old [threads] (http://cocoontech.com/forums/topic/11372-carrier-infinity/page-8) that goes into more detail on the process folks have followed to reverse engineer the RS-485 protocol.  Based on that work, I believe my "ERROR 4" is a "no table" error, most likely due to my having an older single-zone thermostat, whereas infinitive may have been tested using newer software releases and/or multi-zone stats.  Next step will be to log some traffic and map out my stat's table structure.

It seems I'm in the same boat as madsensh. Anyone ever make progress on this issue from last year?
In my case my system is also from about 2005. It has three zones with a damper control module, a CESR131339-06 thermostat and two remote thermostats.
A log sample from mine is below. After letting infinitive run for a while it does pickup the blower speed but that's about it so far. No temp, API is blank or responded with 404s. I also see the e01 device from the looks of it.
INFO[0991] read frame: 2001 -> 6001: WRITE    00340400
INFO[0991] read frame: 6001 -> 2001: RESPONSE 00
INFO[0991] read frame: 2001 -> 6001: WRITE<PHONE_NUMBER>0f0000000000
INFO[0991] read frame: 6001 -> 2001: RESPONSE 00
INFO[0991] read frame: 2001 -> 6001: READ     003404
INFO[0991] read frame: 6001 -> 2001: RESPONSE 00340400
INFO[0991] read frame: 2001 -> 9201: ERROR    04
INFO[0991] read frame: 2001 -> 9201: ERROR    04
INFO[0991] read frame: 2001 -> 4001: READ     00030d
INFO[0991] read frame: 4001 -> 2001: RESPONSE 00030d00000000000000
INFO[0991] read frame: 4001 -> 4101: READ     00030a
INFO[0991] read frame: 2001 -> 9201: ERROR    04
INFO[0991] read frame: 4001 -> 4101: READ     00030a
INFO[0991] read frame: 4001 -> 4101: READ     00030a
INFO[0991] read frame: 4001 -> 4101: READ     00030a
INFO[0991] read frame: 4001 -> 4101: READ     00030a
DEBU[0991] timeout waiting for response, retransmitting frame
DEBU[0991] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0991] read frame: 4001 -> 4101: READ     00030a
DEBU[0991] timeout waiting for response, retransmitting frame
DEBU[0991] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0991] action timed out
INFO[0991] read frame: 2001 -> 9201: ERROR    04
INFO[0991] read frame: 2001 -> f1f1: WRITE    000420d00ac0000f0104e802012d3758003d4e00000000
INFO[0992] read frame: 2001 -> f1f1: WRITE    0002020c2a04
INFO[0992] read frame: 2001 -> f1f1: WRITE<PHONE_NUMBER>13
INFO[0992] encoded frame: 9201 -> 2001: READ     003b03
DEBU[0992] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0992] read frame: 2001 -> 9201: ERROR    04
DEBU[0992] timeout waiting for response, retransmitting frame
DEBU[0992] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0992] read frame: 2001 -> 9201: ERROR    04
DEBU[0993] timeout waiting for response, retransmitting frame
DEBU[0993] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0993] read frame: 2001 -> 9201: ERROR    04
INFO[0993] read frame: 2001 -> e01: READ     003e07
INFO[0993] read frame: e01 -> 2001: RESPONSE 003e070000
DEBU[0993] timeout waiting for response, retransmitting frame
DEBU[0993] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0993] read frame: 2001 -> 9201: ERROR    04
INFO[0993] read frame: 2001 -> 4001: READ     00030a
INFO[0993] read frame: 4001 -> 2001: RESPONSE 00030a010c0c02001f005d000010100414
INFO[0993] read frame: 2001 -> 4001: READ     000104
INFO[0993] read frame: 4001 -> 2001: RESPONSE<PHONE_NUMBER>524941424c45205350454544204655524e4143452020000000000000000000000000000000000000000000000000434553523133313331322d303620202035384d56503130302d462d31383132300000002d333430344e3030323132332033373034413131353130000000000000000000000000002d
INFO[0993] read frame: 2001 -> 4001: READ     000306
DEBU[0993] timeout waiting for response, retransmitting frame
DEBU[0993] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
DEBU[0993] timeout waiting for response, retransmitting frame
DEBU[0993] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0993] action timed out
INFO[0994] encoded frame: 9201 -> 2001: READ     003b03
DEBU[0994] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0994] read frame: 2001 -> 4001: READ     000306
INFO[0994] read frame: 4001 -> 2001: RESPONSE<PHONE_NUMBER>ca057802a807da08
DEBU[0994] blower RPM is: 970
INFO[0994] read frame: 2001 -> 4001: READ     000302
INFO[0994] read frame: 4001 -> 2001: RESPONSE<PHONE_NUMBER>00000414000004020000
INFO[0994] read frame: 2001 -> 4001: READ     000316
INFO[0994] read frame: 4001 -> 2001: RESPONSE<PHONE_NUMBER>0200057800000078010002d0
DEBU[0994] air flow CFM is: 1400
INFO[0994] read frame: 2001 -> 9201: ERROR    04
INFO[0994] read frame: 2001 -> 4001: READ     000402
INFO[0994] read frame: 4001 -> 2001: RESPONSE 0004025a7896b4781d35fde6511db5c028d61d35503fe21db48bfa7503a205f0
INFO[0994] read frame: 2001 -> 4001: WRITE<PHONE_NUMBER>0100
INFO[0994] read frame: 4001 -> 2001: RESPONSE 00
INFO[0994] read frame: 2001 -> 4101: WRITE<PHONE_NUMBER>0100
INFO[0994] read frame: 2001 -> 4101: WRITE<PHONE_NUMBER>0100
INFO[0994] read frame: 2001 -> 4101: WRITE<PHONE_NUMBER>0100
INFO[0994] read frame: 2001 -> 9201: ERROR    04
INFO[0994] read frame: 2001 -> 4001: WRITE<PHONE_NUMBER>02000578000000000000
INFO[0994] read frame: 4001 -> 2001: RESPONSE 00
INFO[0994] read frame: 2001 -> 4001: WRITE<PHONE_NUMBER>00
INFO[0994] read frame: 4001 -> 2001: RESPONSE 00
DEBU[0994] timeout waiting for response, retransmitting frame
DEBU[0994] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0994] read frame: 2001 -> 9201: ERROR    04
DEBU[0995] timeout waiting for response, retransmitting frame
DEBU[0995] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0995] read frame: 2001 -> 9201: ERROR    04
INFO[0995] read frame: 2001 -> 6001: READ     00030d
INFO[0995] read frame: 6001 -> 2001: RESPONSE 00030d00000000000000
DEBU[0995] timeout waiting for response, retransmitting frame
DEBU[0995] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0995] read frame: 2001 -> 9201: ERROR    04
DEBU[0995] timeout waiting for response, retransmitting frame
DEBU[0995] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0995] read frame: 2001 -> 9201: ERROR    04
DEBU[0995] timeout waiting for response, retransmitting frame
DEBU[0995] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0995] action timed out
INFO[0995] read frame: e01 -> 2001: RESPONSE 003e0104e8054803ff03ff000001013c
INFO[0995] read frame: 2001 -> e01: READ     003e08
INFO[0995] read frame: e01 -> 2001: RESPONSE 003e0833385444423034383330312020202020
INFO[0995] read frame: 2001 -> e01: READ     003e0a
INFO[0995] read frame: e01 -> 2001: RESPONSE 003e0a301518
INFO[0995] read frame: 2001 -> e01: READ     003e09
INFO[0995] read frame: e01 -> 2001: RESPONSE 003e09343230344534333538342d2d2d2d2d2d
INFO[0996] encoded frame: 9201 -> 2001: READ     003b03
DEBU[0996] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0996] read frame: 2001 -> 9201: ERROR    04
DEBU[0996] timeout waiting for response, retransmitting frame
DEBU[0996] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
DEBU[0997] timeout waiting for response, retransmitting frame
DEBU[0997] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
DEBU[0997] timeout waiting for response, retransmitting frame
DEBU[0997] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
DEBU[0997] timeout waiting for response, retransmitting frame
DEBU[0997] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
DEBU[0997] timeout waiting for response, retransmitting frame
DEBU[0997] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0997] action timed out
INFO[0998] read frame: e01 -> 2001: RESPONSE 003e0204
INFO[0998] read frame: 2001 -> e01: WRITE    003e0204
INFO[0998] read frame: e01 -> 2001: RESPONSE 003e0204
INFO[0998] read frame: 2001 -> e01: READ     003e02
INFO[0998] read frame: e01 -> 2001: RESPONSE 003e0204
INFO[0998] read frame: 2001 -> e01: WRITE    003e0302
INFO[0998] read frame: e01 -> 2001: RESPONSE 003e0302
INFO[0998] read frame: 2001 -> e01: READ     003e04
INFO[0998] read frame: e01 -> 2001: RESPONSE 003e0400
INFO[0998] read frame: 2001 -> 9201: ERROR    04
INFO[0998] read frame: 2001 -> 9201: ERROR    04
INFO[0998] read frame: 2001 -> 9201: ERROR    04
INFO[0998] read frame: 2001 -> 9201: ERROR    04
INFO[0998] read frame: 2001 -> 6001: READ     000319
INFO[0998] read frame: 6001 -> 2001: RESPONSE<PHONE_NUMBER>0f00ffffffff
INFO[0998] read frame: 2001 -> 6001: READ     000302
INFO[0998] read frame: 6001 -> 2001: RESPONSE<PHONE_NUMBER>00000102042e010304980404000004140000041c0000
INFO[0998] read frame: 2001 -> 6001: READ     003405
INFO[0998] read frame: 6001 -> 2001: RESPONSE<PHONE_NUMBER>00
INFO[0998] read frame: 2001 -> 6001: READ     000104
INFO[0998] read frame: 6001 -> 2001: RESPONSE<PHONE_NUMBER>43414c494255522034205a4f4e452020202020202020000000000000000000000000000000000000000000000000434553523133313333312d303120200053595354584343345a4330310000000000000000323430344e30343536363800323430344e30343536363800000000000000000000000000
INFO[0998] read frame: 2001 -> 6001: WRITE    00340400
INFO[0998] read frame: 6001 -> 2001: RESPONSE 00
INFO[0998] read frame: 2001 -> 6001: WRITE<PHONE_NUMBER>0f0000000000
INFO[0998] read frame: 6001 -> 2001: RESPONSE 00
INFO[0998] read frame: 2001 -> 6001: READ     003404
INFO[0998] read frame: 6001 -> 2001: RESPONSE 00340400
INFO[0998] encoded frame: 9201 -> 2001: READ     003b03
DEBU[0998] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0998] read frame: 2001 -> 9201: ERROR    04
DEBU[0998] timeout waiting for response, retransmitting frame
DEBU[0998] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0998] read frame: 2001 -> 9201: ERROR    04
DEBU[0999] timeout waiting for response, retransmitting frame
DEBU[0999] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0999] read frame: 2001 -> 9201: ERROR    04
INFO[0999] read frame: 2001 -> 4001: READ     00030d
INFO[0999] read frame: 2001 -> 4001: READ     00030d
INFO[0999] read frame: 4001 -> 2001: RESPONSE 00030d00000000000000
DEBU[0999] timeout waiting for response, retransmitting frame
DEBU[0999] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0999] read frame: 2001 -> 9201: ERROR    04
INFO[0999] read frame: 2001 -> f1f1: WRITE    000420d00ac0000f0104e802012d3758003d4e00000000
DEBU[0999] timeout waiting for response, retransmitting frame
DEBU[0999] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0999] read frame: 2001 -> 9201: ERROR    04
DEBU[0999] timeout waiting for response, retransmitting frame
DEBU[0999] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[0999] action timed out
INFO[0999] read frame: 2001 -> 9201: ERROR    04
INFO[1000] encoded frame: 9201 -> 2001: READ     003b03
DEBU[1000] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1000] read frame: 2001 -> 9201: ERROR    04
INFO[1000] read frame: 2001 -> 4001: READ     00030a
INFO[1000] read frame: 4001 -> 2001: RESPONSE 00030a010c0c02001f005d000010100414
DEBU[1000] timeout waiting for response, retransmitting frame
DEBU[1000] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1001] read frame: 2001 -> 4001: READ     000104
INFO[1001] read frame: 4001 -> 2001: RESPONSE<PHONE_NUMBER>524941424c45205350454544204655524e4143452020000000000000000000000000000000000000000000000000434553523133313331322d303620202035384d56503130302d462d31383132300000002d333430344e3030323132332033373034413131353130000000000000000000000000002d
INFO[1001] read frame: 2001 -> 9201: ERROR    04
INFO[1001] read frame: 2001 -> 4001: READ     000306
INFO[1001] read frame: 4001 -> 2001: RESPONSE<PHONE_NUMBER>c8057802a807da08
DEBU[1001] blower RPM is: 968
DEBU[1001] timeout waiting for response, retransmitting frame
DEBU[1001] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1001] read frame: 2001 -> 4001: READ     000302
INFO[1001] read frame: 4001 -> 2001: RESPONSE<PHONE_NUMBER>00000414000004020000
INFO[1001] read frame: 2001 -> 4001: READ     000316
INFO[1001] read frame: 4001 -> 2001: RESPONSE<PHONE_NUMBER>0200057800000078010002d0
DEBU[1001] air flow CFM is: 1400
INFO[1001] read frame: 2001 -> e01: READ     003e07
INFO[1001] read frame: e01 -> 2001: RESPONSE 003e070000
DEBU[1001] timeout waiting for response, retransmitting frame
DEBU[1001] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1001] read frame: 2001 -> 9201: ERROR    04
DEBU[1001] timeout waiting for response, retransmitting frame
DEBU[1001] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1001] read frame: 2001 -> 9201: ERROR    04
DEBU[1001] timeout waiting for response, retransmitting frame
DEBU[1001] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1001] action timed out
INFO[1001] read frame: 2001 -> 9201: ERROR    04
INFO[1002] read frame: 2001 -> 4001: READ     000402
INFO[1002] read frame: 2001 -> 4001: READ     000402
INFO[1002] read frame: 2001 -> 4001: READ     000402
INFO[1002] read frame: 2001 -> 4001: READ     000402
INFO[1002] read frame: 2001 -> 4001: READ     000402
INFO[1002] read frame: 2001 -> 4001: WRITE<PHONE_NUMBER>0100
INFO[1002] read frame: 2001 -> 4001: WRITE<PHONE_NUMBER>0100
INFO[1002] read frame: 2001 -> 4001: WRITE<PHONE_NUMBER>0100
INFO[1002] read frame: 2001 -> 4001: WRITE<PHONE_NUMBER>0100
INFO[1002] read frame: 2001 -> 4001: WRITE<PHONE_NUMBER>0100
INFO[1002] read frame: 4001 -> 2001: RESPONSE 0004025a7896b4781d35fde6511db5c028d61d35503fe21db48bfa7503a205f0
INFO[1002] read frame: 4001 -> 2001: RESPONSE 00
INFO[1002] read frame: 4001 -> 4101: READ     00030a
INFO[1002] read frame: 2001 -> 4101: WRITE<PHONE_NUMBER>0100
INFO[1002] read frame: 4001 -> 4101: READ     00030a
INFO[1002] read frame: 2001 -> 4001: WRITE<PHONE_NUMBER>02000578000000000000
INFO[1002] read frame: 4001 -> 4101: READ     00030a
INFO[1002] read frame: 2001 -> 4001: WRITE<PHONE_NUMBER>02000578000000000000
INFO[1002] read frame: 4001 -> 4101: READ     00030a
INFO[1002] encoded frame: 9201 -> 2001: READ     003b03
DEBU[1002] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1002] read frame: 2001 -> 4001: WRITE<PHONE_NUMBER>02000578000000000000
INFO[1002] read frame: 2001 -> 4001: WRITE<PHONE_NUMBER>02000578000000000000
INFO[1002] read frame: 2001 -> 4001: WRITE<PHONE_NUMBER>02000578000000000000
INFO[1002] read frame: 4001 -> 2001: RESPONSE 00
INFO[1002] read frame: 2001 -> 9201: ERROR    04
INFO[1002] read frame: 2001 -> 4001: WRITE<PHONE_NUMBER>00
INFO[1002] read frame: 4001 -> 2001: RESPONSE 00
DEBU[1002] timeout waiting for response, retransmitting frame
DEBU[1002] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1003] read frame: 2001 -> 9201: ERROR    04
DEBU[1003] timeout waiting for response, retransmitting frame
DEBU[1003] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1003] read frame: 2001 -> 9201: ERROR    04
INFO[1003] read frame: 2001 -> e01: READ     003e01
INFO[1003] read frame: e01 -> 2001: RESPONSE 003e0104e8054803ff03ff000001013c
INFO[1003] read frame: 2001 -> 6001: READ     00030d
INFO[1003] read frame: 6001 -> 2001: RESPONSE 00030d00000000000000
DEBU[1003] timeout waiting for response, retransmitting frame
DEBU[1003] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
DEBU[1003] timeout waiting for response, retransmitting frame
DEBU[1003] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
DEBU[1003] timeout waiting for response, retransmitting frame
DEBU[1003] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1003] action timed out
INFO[1004] read frame: e01 -> 2001: RESPONSE 003e0833385444423034383330312020202020
INFO[1004] read frame: 2001 -> e01: READ     003e08
INFO[1004] read frame: e01 -> 2001: RESPONSE 003e0833385444423034383330312020202020
INFO[1004] read frame: 2001 -> e01: READ     003e0a
INFO[1004] read frame: e01 -> 2001: RESPONSE 003e0a301518
INFO[1004] read frame: 2001 -> e01: READ     003e09
INFO[1004] read frame: e01 -> 2001: RESPONSE 003e09343230344534333538342d2d2d2d2d2d
INFO[1004] read frame: 2001 -> 9201: ERROR    04
INFO[1004] read frame: 2001 -> 9201: ERROR    04
INFO[1004] read frame: 2001 -> e01: WRITE    003e0204
INFO[1004] read frame: e01 -> 2001: RESPONSE 003e0204
INFO[1004] read frame: 2001 -> e01: READ     003e02
INFO[1004] read frame: e01 -> 2001: RESPONSE 003e0204
INFO[1004] read frame: 2001 -> e01: WRITE    003e0302
INFO[1004] read frame: e01 -> 2001: RESPONSE 003e0302
INFO[1004] read frame: 2001 -> e01: READ     003e04
INFO[1004] read frame: e01 -> 2001: RESPONSE 003e0400
INFO[1004] encoded frame: 9201 -> 2001: READ     003b03
DEBU[1004] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1004] read frame: 2001 -> 9201: ERROR    04
DEBU[1004] timeout waiting for response, retransmitting frame
DEBU[1004] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1004] read frame: 2001 -> 9201: ERROR    04
DEBU[1005] timeout waiting for response, retransmitting frame
DEBU[1005] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1005] read frame: 2001 -> 9201: ERROR    04
DEBU[1005] timeout waiting for response, retransmitting frame
DEBU[1005] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1005] read frame: 2001 -> 9201: ERROR    04
DEBU[1005] timeout waiting for response, retransmitting frame
DEBU[1005] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1005] read frame: 2001 -> 9201: ERROR    04
INFO[1005] read frame: 2001 -> 6001: READ     000319
INFO[1005] read frame: 6001 -> 2001: RESPONSE<PHONE_NUMBER>0f00ffffffff
INFO[1005] read frame: 2001 -> 6001: READ     000302
INFO[1005] read frame: 6001 -> 2001: RESPONSE<PHONE_NUMBER>00000102042e010304980404000004140000041c0000
INFO[1005] read frame: 2001 -> 6001: READ     003405
INFO[1005] read frame: 6001 -> 2001: RESPONSE<PHONE_NUMBER>00
DEBU[1005] timeout waiting for response, retransmitting frame
DEBU[1005] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1005] action timed out
INFO[1005] read frame: 2001 -> 6001: READ     000104
INFO[1005] read frame: 6001 -> 2001: RESPONSE<PHONE_NUMBER>43414c494255522034205a4f4e452020202020202020000000000000000000000000000000000000000000000000434553523133313333312d303120200053595354584343345a4330310000000000000000323430344e30343536363800323430344e30343536363800000000000000000000000000
INFO[1005] read frame: 2001 -> 9201: ERROR    04
INFO[1005] read frame: 2001 -> 6001: WRITE    00340400
INFO[1005] read frame: 6001 -> 2001: RESPONSE 00
INFO[1005] read frame: 2001 -> 6001: WRITE<PHONE_NUMBER>0f0000000000
INFO[1006] read frame: 6001 -> 2001: RESPONSE 00
INFO[1006] read frame: 2001 -> 6001: READ     003404
INFO[1006] read frame: 6001 -> 2001: RESPONSE 00340400
INFO[1006] encoded frame: 9201 -> 2001: READ     003b03
DEBU[1006] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1006] read frame: 2001 -> 9201: ERROR    04
INFO[1006] read frame: 2001 -> f1f1: WRITE    000420d00ac0000f0104e802012d3758003d4e00000000
DEBU[1006] timeout waiting for response, retransmitting frame
DEBU[1006] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1007] read frame: 2001 -> 9201: ERROR    04
DEBU[1007] timeout waiting for response, retransmitting frame
DEBU[1007] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1007] read frame: 2001 -> 9201: ERROR    04
INFO[1007] read frame: 2001 -> 4001: READ     00030d
INFO[1007] read frame: 4001 -> 2001: RESPONSE 00030d00000000000000
DEBU[1007] timeout waiting for response, retransmitting frame
DEBU[1007] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1007] read frame: 2001 -> 9201: ERROR    04
DEBU[1007] timeout waiting for response, retransmitting frame
DEBU[1007] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1007] read frame: 2001 -> 9201: ERROR    04
DEBU[1007] timeout waiting for response, retransmitting frame
DEBU[1007] transmitting frame:<PHONE_NUMBER>00000b003b03ecba
INFO[1007] action timed out
INFO[1007] read frame: 2001 -> 9201: ERROR    04
INFO[1008] read frame: 2001 -> 4001: READ     00030a
INFO[1008] read frame: 4001 -> 2001: RESPONSE 00030a010c0c02001f005d000010100414
INFO[1008] read frame: 2001 -> 4001: READ     000104
INFO[1008] read frame: 4001 -> 2001: RESPONSE<PHONE_NUMBER>524941424c45205350454544204655524e4143452020000000000000000000000000000000000000000000000000434553523133313331322d303620202035384d56503130302d462d31383132300000002d333430344e3030323132332033373034413131353130000000000000000000000000002d
INFO[1008] read frame: 2001 -> 4001: READ     000306

I am also having the same issues described in this thread my my single zone 2005 unit. It's a bummer because I was really excited to have a functioning connected thermostat for the cost of a RS485 usb adapter and raspberry pi! I'm ok at debugging things so I might try to look into it once I have time, but unlikely. Would be great if someone with knowledge in this program could provide some guidance.

I know this thread is a bit dated. I have a Bryant Evolution System with the CESR13339-16 thermostat similar to OPs. I can read data off the bus just fine however the thermostat will not respond to any requests from 9201.
I believe this to be because infinitive fails to fully impersonate a SAM. Upon startup the thermostat polls all device types including 9201. For the SAM it is requesting to read registers 0x003f02, and 0x00040e. I think because it does not get a response to this polling it will drop any READS 9201 -> 2001.
Does anyone that has a dump from a real SAM know what's in these registers?


Offscreen rendering while using python interactive viewer

How should one go about getting offscreen rendering to work while using the mjpython which is required by the interactive python viewer.  Here is a small snippet of code to explain my usecase
# mujoco_viewr_test.py
    # load model
    sim_path = 'humanoid.xml'
    model = mujoco.MjModel.from_xml_path(sim_path)
    data = mujoco.MjData(model)

    # start a passive viewer
    viwer = mujoco.viewer.launch_passive(model, data)

    # offscreen rendering
    renderer = mujoco.Renderer(model)
    renderer.update_scene(data)
    rgb_arr = renderer.render()
    print(rgb_arr.shape)

python mujoco_viewr_test.py throws RuntimeError: launch_passive requires that the Python script be run under mjpython
mjpython mujoco_viewr_test.py throws mjpython[29249:31035860] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'

i have the same error, is it with M2 Apple ?

No, I am on mac but not on M2.

Can you please try https://github.com/saran-t/mujoco/commit/e570cb57e8530d1d38990af9d572141acae4b54e and see if this resolves the issue?

+1 just encountered the same error. @saran-t is there a chance the fix you give will be merged in the next release? I haven't tested it yet but plan to, eager to understand if it will be included in future releases.


Render what happens next markdown if it's present

What problem does this pull request solve?
Trello card: https://trello.com/c/AbPj2LRr/1191-allow-markdown-on-confirmation-page-what-happens-next-content
This PR makes the runner work with either HTML or markdown content on the what happens next page. This is part of a phased switch to using markdown in this field.
This PR essentially:

renames the  what_happens_next_markdown method on the form object to  what_happens_nextto avoid collision with the new API field, which is also called what_happens_next_markdown`.
changes the method to return either the raw markdown from the API's what_happens_next_markdown field if it's present, or the HTML from the what_happens_next_text field converted to markdown if what_happens_next_markdown isn't present.
updates all the references to what_happens_next_text to use the what_happens_next form method. This means that once we convert the existing content in the API database to markdown, it should just update everywhere in the runner.

To do in other PRs:

adding the new field in the api (https://github.com/alphagov/forms-api/pull/371)
add logic in the admin to use the markdown field if it's present, and the HTML if not
convert the HTML content in the API into markdown and store it in this new field
cleanup: delete the old field and all the logic related to it which we no longer need

Things to consider when reviewing

Ensure that you consider the wider context.
Does it work when run on your machine?
Is it clear what the code is doing?
Do the commit messages explain why the changes were made?
Are there all the unit tests needed?
Has all relevant documentation been updated?

We'll need to merge and deploy https://github.com/alphagov/forms-api/pull/371 before this, or the new API field won't be available.


Add Input::reset_all

Adds a reset_all method to reset pressed, just_pressed, and just_released on the Input.
Fixes #3383

Note for reviewers: this was previously attempted in #4410. That PR caused a serious regression because it modified the behavior of a method used internally in critical ways.

Each of those methods docs being which ones, sorry?

Each of those methods docs being which ones?

Link to Input::clear from Input::reset_all and vice versa :) Sorry for the confusion.

Once this is formatted I'm happy to merge this!

(I wouldn't mind renaming clear to tick, but that can be a different PR)

I agree that the names are confusing (clear and reset_all sound like they would do the same thing) and clear should probably the one to get renamed, but it's probably best left for a separate PR.

bors r+


npm packages not installing

npm packages not installing

Hello. Would be possible for you to post an output of what you see after installing the package? Seeing this output from the terminal will allow me to pinpoint what the issue is. Thanks.

Before I start, I would like to apologize for the late message. I have been working on a new version (tentatively v0.2.0) with solving your issue in mind. This NPM package relies on a native packages to render the videos. The native packages are canvas gl and whisper-node.
It is possible that npm failed to build the natives packages on your system. canvas and gl rely on Node.js nan API which means that the packages needs to built for each version if a built-in module is not included by the package. whsiper-node should not have any issues since it uses Node.js N-API which should not have ABI issues with different Node.js version unlike nan API.
Try updating your Node.js version to the latest version or latest LTS version and try running npm install in a fresh environment.
While I attempt to fix this issue with the new version, I would need more detailed information about your error. Can you send the following info:

OS Info and version (Windows 10/11, macOS, Linux, etc.)
Node.js version and npm version (can be found via node -v and npm -v respectively)
Full output of npm install (I know this is long, but I need the full log to find the root issue)

Thank for you time and interest in this project. Once again I apologize for the late message.


Integrate Air Quality Sensor?

I was wondering if there was a way to expose the air quality sensor to HomeKit from this HA integration?
I am currently exposing fan.winix_living_room and sensor.winix_living_room to HomeKit, but I don't see an air quality sensor like I did when I used Homebridge (only the fan/speed/Plasmawave/preset entities).

Winix only gives 2 values: Air qValue and Air quality. Based on the data I have seen, this is not the same as AQI index. I seen values like qValue=75, quality=good. There is no documentation of the values or any value corresponding to the standard air quality metrics.

Gotcha. Yeah, it looks like the Homebridge Winix plugin uses the following scheme:

getAirQuality: function (callback) {
        if (!this.device) {
            callback(new Error('No Air Purifier is discovered.'));
            return;
        }

        this.getStatusFromServer(this.serverStatuses.AIR_QUALITY)
            .then((status) => {
                let quality = Characteristic.AirQuality.UNKNOWN;

                if (status === 1) {
                    quality = Characteristic.AirQuality.GOOD
                }
                if (status === 2) {
                    quality = Characteristic.AirQuality.FAIR
                }
                if (status === 3) {
                    quality = Characteristic.AirQuality.POOR
                }

                return quality;
            })
            .then((quality) => {
                callback(null, quality)
            });
    },

Would it be possible to use the same scheme when exposing your integration to HomeKit? I'm not too savvy, but it looks so good in the Home.app, haha.

Sorry I don't think I can do that. There is no air quality metric with good/fair/poor values. The AirQualitySensor has been deprecated and float value based sensors need to be used.

No worries. Thanks for all your work!


Get Translation Label

Hi Adrian, thank you for this repo :) I have a question: It is possible to get the translation label of taxonomies? I have different files-idLang.xml with the translation of labels in "en", "fr" and "de" language.
Let me know how if you can and also I think is possible to implement in the Concept.php file the getCustomElement($element) function to get some another custom element not mapped.
Thank you for you time and thanks again :)

Hey Francesco,
The Set::getArcsFromConcept method might be useful, it returns all Arcs which you can filter on  instanceof Label\Arc and then use the getLabels() method on those objects to get the associated Labels[].   Each Label object has a getLang and getContent method.

Hi Adrian, thank you for your reply :+1: it works :)
I have another question: it is possible to get the "role" of attributes when import a xbrl file? I ned to separate the General Info from bilance info value to do this I think that I need to get the role of attribute from an xml file (itcc-ci-pre-info-2014-11-17.xml) that contain this rows:
<linkbase xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <roleRef xlink:type="simple" xlink:href="itcc-ci-roles-2014-11-17.xsd#InfoGenerali" roleURI="http://www.infocamere.it/itnn/fr/itcc/role/InfoGenerali"/>
.....

Thank you :)

Hey again,
I've made some modifications in commit f3e38a41166a01d3a5577d0340c7e6d2f3b94bcb to make this possible.  You can now get all the ArcCollection objects by calling Set::getArcCollections().  Each ArcCollection has a role associated, which you can retrieve by calling the ArcCollection::getRole() method.
So for example, if I wanted to find all the arcs with a role of "http://www.infocamere.it/itnn/fr/itcc/role/InfoGenerali" I would do the following.
foreach( $set->getArcCollections() as $collection ) {
  if ( $collection->getRole() == "http://www.infocamere.it/itnn/fr/itcc/role/InfoGenerali" ) {
    foreach( $collection as $arc ) {
      echo $arc->getTitle(), "\n";
    }
  }
}


Chore/move datafactory to rdfjs

Internal refactor - just moved all DataFactory imports to pull from rdfjs.js rather than from N3 directly. The Turtle parsing code still relies explicitly on N3, but that's fine (test needed to be updated to support quad-equality between RDF/JS implementations, but that's a test improvement).
This change makes it really easy to flip our DataFactory implementation dependency now - and so I did try that out by flipping it from N3 to @rdfjs/data-model (that flip is not included in this PR). Only 4 tests failed, which is pretty good - with the reasons documented in rdfjs.ts. Those reasons need to be verified, but it would be nice to resolve them (not urgent though - we're still relying on the RDF spec compliance of N3, as we did before).

Merged in #837


PR: Fix extra blank line added to qtconsole when plotting

Description of Changes

Issue(s) Resolved
Fixes #10897
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.
I certify the above statement is true and correct: Jean-Sébastien Gosselin

The only thing I'm not sure is if we need to add a self.log.debug("display_data: %s", msg.get('content', '')) under the if (self.figurebrowser is not None and self.figurebrowser.mute_inline_plotting): condition.

We may also need to call a self.flush_clearoutput() also.

Are the test fails related to this PR @jnsebgosselin ?

Are the test fails related to this PR @jnsebgosselin ?

I dont think so. It seems to be related to lsp and completion.

Note: The failure in Azure is an spurious one (I don't understand how it got generated).