"AttributeError: module 'huggingface_hub.constants' has no attribute 'HF_HUB_CACHE'"

Describe the bug
I encountered an AttributeError when trying to import se_extractor from the openvoice package in Google Colab. The error message indicates that the huggingface_hub.constants module does not have an attribute named HF_HUB_CACHE.
To Reproduce
Steps to reproduce the behavior:

Open a new notebook in Google Colab.
Run the following code:

import os
import torch
from openvoice import se_extractor
from openvoice.api import BaseSpeakerTTS, ToneColorConverter

Expected behavior
I expected the modules to be imported without any issues.
Error message
AttributeError                            Traceback (most recent call last)
[<ipython-input-4-7528a4fc437c>](https://localhost:8080/#) in <cell line: 3>()
      1 import os
      2 import torch
----> 3 from openvoice import se_extractor
      4 from openvoice.api import BaseSpeakerTTS, ToneColorConverter
      5

9 frames
[/usr/local/lib/python3.10/dist-packages/transformers/utils/hub.py](https://localhost:8080/#) in <module>
     94 #
     95 # TODO: clean this for v5?
---> 96 PYTORCH_PRETRAINED_BERT_CACHE = os.getenv("PYTORCH_PRETRAINED_BERT_CACHE", constants.HF_HUB_CACHE)
     97 PYTORCH_TRANSFORMERS_CACHE = os.getenv("PYTORCH_TRANSFORMERS_CACHE", PYTORCH_PRETRAINED_BERT_CACHE)
     98 TRANSFORMERS_CACHE = os.getenv("TRANSFORMERS_CACHE", PYTORCH_TRANSFORMERS_CACHE)

AttributeError: module 'huggingface_hub.constants' has no attribute 'HF_HUB_CACHE'

Environment (please complete the following information):

Google Colab T4 GPU runtime
Python version: 3.10.12
transformers version: 4.38.1
huggingface_hub version:  0.17.3

Additional context
Add any other context about the problem here. I followed the official documentation for setting up my project in Google Colab and have not made any modifications to the environment that should affect this import.
Additionally, when I executed !pip install -e ., I encountered dependency errors which might be related to the issue. The error message was as follows:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
chex 0.1.85 requires numpy>=1.24.1, but you have numpy 1.22.0 which is incompatible.
plotnine 0.12.4 requires numpy>=1.23.0, but you have numpy 1.22.0 which is incompatible.
pywavelets 1.5.0 requires numpy<2.0,>=1.22.4, but you have numpy 1.22.0 which is incompatible.
tensorflow 2.15.0 requires numpy<2.0.0,>=1.23.5, but you have numpy 1.22.0 which is incompatible.
torchdata 0.7.0 requires torch==2.1.0, but you have torch 1.13.1 which is incompatible.
torchtext 0.16.0 requires torch==2.1.0, but you have torch 1.13.1 which is incompatible.
torchvision 0.16.0+cu121 requires torch==2.1.0, but you have torch 1.13.1 which is incompatible.
transformers 4.38.1 requires huggingface-hub<1.0,>=0.19.3, but you have huggingface-hub 0.17.3 which is incompatible.
Successfully installed MyShell-OpenVoice-0.0.0 aiofiles-23.2.1 av-10.0.0 cn2an-0.5.22 coloredlogs-15.0.1 ctranslate2-3.24.0 dtw-python-1.3.1 eng_to_ipa-0.0.2 fastapi-0.110.0 faster-whisper-0.9.0 ffmpy-0.3.2 gradio-3.48.0 gradio-client-0.6.1 h11-0.14.0 httpcore-1.0.4 httpx-0.27.0 huggingface-hub-0.17.3 humanfriendly-10.0 langid-1.1.6 librosa-0.9.1 numpy-1.22.0 nvidia-cublas-cu11-<IP_ADDRESS> nvidia-cuda-nvrtc-cu11-11.7.99 nvidia-cuda-runtime-cu11-11.7.99 nvidia-cudnn-cu11-<IP_ADDRESS> onnxruntime-1.17.1 openai-whisper-20231117 orjson-3.9.15 proces-0.1.7 pydub-0.25.1 pypinyin-0.50.0 python-multipart-0.0.9 resampy-0.4.2 semantic-version-2.10.0 starlette-0.36.3 tiktoken-0.6.0 tokenizers-0.14.1 torch-1.13.1 torchaudio-0.13.1 unidecode-1.3.7 uvicorn-0.27.1 wavmark-0.0.2 websockets-11.0.3 whisper-timestamped-1.14.2
WARNING: The following packages were previously imported in this runtime:
  [numpy]
You must restart the runtime in order to use newly installed versions.

This might indicate that there are conflicting dependencies in my environment that could be contributing to the problem.

I fixed this issue below branch. It works for google colab current python version 3.10.12.
https://github.com/myshell-ai/OpenVoice/pull/156 #156

I am facing the same error, any solution to suggest ?
I upgraded hugging face and transformers but the problem still there

I am facing the same error, any solution to suggest ?
I upgraded hugging face and transformers but the problem still th

Still getting this error, tried with pip install --upgrade huggingface_hub and pip install --upgrade huggingface_hub==0.14.1 but still no luck.
Scourged the internet but still not working

Is there any solution for this

Is there any solution for this

pip install transformers -U
work for me on CPU window


Bpreviewcommentincorporated

BP Bedrock | PR- milestone 2 & 3 | Review comments incorporated

@akhi1616 - could you please use our main repo (https://github.com/redhat-marketplace/datactl) and directly create your PR branch off of the redhat-marketplace:feature/multipleSources branch of this repo? - Idea is to stop using your cloned repo akhi1616:bpreviewcommentincorporated as it also becomes hard to switch between 2 different repos while reviewing PRs.


Dev

@seekdavidlee looks like APIM is almost ready. The only thing I'm missing is to remove the commented comment. I will probably work on that next week or simply document it as a manual step on the md file.


Testing data db

According to this line:
https://github.com/NVIDIA/DIGITS/blob/master/digits/dataset/images/classification/views.py#L384
It should be possible to add testing database in the gallery of image too. Is it just adding it to the GET parameter ?

Hello @tonytan4ever, exploring the test DB is supported if you created a test DB (by e.g. setting the % for testing field to something greater than 0):

Thanks a lot. What is the url you use to generate the graph ? Can you show it to me ?

The graph is shown on the dataset page.

It doesn't seem like there is an issue there. Closing. Thanks for the feedback!


Added OpenJDK 14.0.1

Microsoft Reviewers: Open in CodeFlow

@karianna , this claims OpenJDK is an FSF project and they own the OpenJDK copyright :cry:

The copyright notice you see at the top of the license page is for the license itself, not the licensed software. The OpenJDK project is by Oracle according to the OpenJDK's website footer ("© 2020 Oracle Corporation and/or its affiliates")

OpenJDK is a trademark owned by Oracle, it should not be coming from FSF.
https://openjdk.java.net/legal/openjdk-trademark-notice.html


[PkgEval] EvolvingGraphs may have a testing issue on Julia 0.4 (2015-06-30)

PackageEvaluator.jl is a script that runs nightly. It attempts to load all Julia packages and run their tests (if available) on both the stable version of Julia (0.3) and the nightly build of the unstable version (0.4). The results of this script are used to generate a package listing enhanced with testing results.
On Julia 0.4

On 2015-06-27 the testing status was Tests pass.
On 2015-06-30 the testing status changed to Tests fail.

This issue was filed because your testing status became worse. No additional issues will be filed if your package remains in this state, and no issue will be filed if it improves. If you'd like to opt-out of these status-change messages, reply to this message saying you'd like to and @IainNZ will add an exception. If you'd like to discuss PackageEvaluator.jl please file an issue at the repository. For example, your package may be untestable on the test machine due to a dependency - an exception can be added.
Test log:
>>> 'Pkg.add("EvolvingGraphs")' log
INFO: Cloning cache of EvolvingGraphs from git://github.com/weijianzhang/EvolvingGraphs.jl.git
INFO: Installing Docile v0.5.10
INFO: Installing EvolvingGraphs v0.0.5
INFO: Package database updated

>>> 'Pkg.test("EvolvingGraphs")' log
Julia Version 0.4.0-dev+5700
Commit 147fa0b* (2015-06-29 20:31 UTC)
Platform Info:
  System: Linux (x86_64-unknown-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Nehalem)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3
INFO: Testing EvolvingGraphs
running /home/vagrant/.julia/v0.4/EvolvingGraphs/test/data.jl ...
running /home/vagrant/.julia/v0.4/EvolvingGraphs/test/nodes.jl ...
running /home/vagrant/.julia/v0.4/EvolvingGraphs/test/edges.jl ...
running /home/vagrant/.julia/v0.4/EvolvingGraphs/test/time_graph.jl ...
running /home/vagrant/.julia/v0.4/EvolvingGraphs/test/evolving_graph.jl ...
running /home/vagrant/.julia/v0.4/EvolvingGraphs/test/weighted_evolving_graph.jl ...
running /home/vagrant/.julia/v0.4/EvolvingGraphs/test/attribute_evolving_graph.jl ...
running /home/vagrant/.julia/v0.4/EvolvingGraphs/test/centrality.jl ...
ERROR: LoadError: LoadError: MethodError: `At_mul_B!` has no method matching At_mul_B!(::Array{Float64,1}, ::Base.SparseMatrix.SparseMatrixCSC{Float64,Int64}, ::Array{Float64,1})
Closest candidates are:
  At_mul_B!{T<:Union{Complex{Float64},Float64,Complex{Float32},Float32}}(::Union{DenseArray{T<:Union{Complex{Float64},Float64,Complex{Float32},Float32},1},SubArray{T<:Union{Complex{Float64},Float64,Complex{Float32},Float32},1,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Range{Int64},Int64}}},LD}}, !Matched::Union{SubArray{T<:Union{Complex{Float64},Float64,Complex{Float32},Float32},2,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Range{Int64},Int64}}},LD},DenseArray{T<:Union{Complex{Float64},Float64,Complex{Float32},Float32},1},SubArray{T<:Union{Complex{Float64},Float64,Complex{Float32},Float32},1,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Range{Int64},Int64}}},LD},DenseArray{T<:Union{Complex{Float64},Float64,Complex{Float32},Float32},2}}, ::Union{DenseArray{T<:Union{Complex{Float64},Float64,Complex{Float32},Float32},1},SubArray{T<:Union{Complex{Float64},Float64,Complex{Float32},Float32},1,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Range{Int64},Int64}}},LD}})
  At_mul_B!(::Union{DenseArray{T,1},SubArray{T,1,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Range{Int64},Int64}}},LD}}, !Matched::Union{SubArray{T,2,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Range{Int64},Int64}}},LD},SubArray{T,1,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Range{Int64},Int64}}},LD},DenseArray{T,2},DenseArray{T,1}}, ::Union{DenseArray{T,1},SubArray{T,1,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Range{Int64},Int64}}},LD}})
  At_mul_B!(!Matched::Number, ::Base.SparseMatrix.SparseMatrixCSC{Tv,Ti<:Integer}, ::Union{SubArray{T,2,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Range{Int64},Int64}}},LD},SubArray{T,1,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Range{Int64},Int64}}},LD},DenseArray{T,2},DenseArray{T,1}}, !Matched::Number, !Matched::Union{SubArray{T,2,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Range{Int64},Int64}}},LD},SubArray{T,1,A<:DenseArray{T,N},I<:Tuple{Vararg{Union{Colon,Range{Int64},Int64}}},LD},DenseArray{T,2},DenseArray{T,1}})
  ...
 in katz_centrality at /home/vagrant/.julia/v0.4/EvolvingGraphs/src/algorithms/katz_centrality.jl:69
 in include at ./boot.jl:254
 in include_from_node1 at loading.jl:133
 in anonymous at no file:26
 in include at ./boot.jl:254
 in include_from_node1 at loading.jl:133
 in process_options at ./client.jl:305
 in _start at ./client.jl:405
while loading /home/vagrant/.julia/v0.4/EvolvingGraphs/test/centrality.jl, in expression starting on line 5
while loading /home/vagrant/.julia/v0.4/EvolvingGraphs/test/runtests.jl, in expression starting on line 23
===========================[ ERROR: EvolvingGraphs ]============================

failed process: Process(`/home/vagrant/julia/bin/julia --check-bounds=yes --code-coverage=none --color=no /home/vagrant/.julia/v0.4/EvolvingGraphs/test/runtests.jl`, ProcessExited(1)) [1]

================================================================================
INFO: No packages to install, update or remove
ERROR: EvolvingGraphs had test errors
 in error at ./error.jl:21
 in test at pkg/entry.jl:746
 in anonymous at pkg/dir.jl:31
 in cd at file.jl:22
 in cd at pkg/dir.jl:31
 in test at pkg.jl:71
 in process_options at ./client.jl:281
 in _start at ./client.jl:405

>>> End of log

Hi @IainNZ,
I can fix this error by changing from At_mul_B!(v, A, ones(n)) to v = A' * ones(n),
where A is of type SparseMatrixCSC.
Suppose I have
julia> A = spzeros(Float64, 3, 3)
3x3 sparse matrix with 0 Float64 entries:

julia> v = Array(Float64, 3)
3-element Array{Float64,1}:
 6.4652e-314
 2.21453e-314
 2.2129e-314

julia> b = ones(Float64, 3)
3-element Array{Float64,1}:
 1.0
 1.0
 1.0

Then At_mul_B!(v, A, b) will result a MethodError in Julia v0.4. But Why  At_mul_B! no longer supports the sparse matrix case?
Best,
Weijian

I don't know, unfortunately.

It might not have been intentional

No problem, thanks. I will create a new issue soon.


RO-2435 Remove max_overflow overrides

The max_overflow override sets the maximum number of simultaneous
connected database threads. SQLAlchemy recommends setting this to 10
and oslo.db accepts this default. OSA uses the default for most
services but it bumps the max to 20 for very busy services, such as
nova and neutron.
This patch removes the override since it is no longer necessary to
override the max_overflow value. Bugs existed in Icehouse/Kilo that
caused excessive database threads when lots of instances were being
built, but those bugs have been fixed for years.
Issue: RO-2435

recheck_cit_xenial_deploy_swift

recheck_cit_artifact

How did we verify that we can boot 400-500 instances at once as our customers provision currently. None of the OPS folks have been consulted and a change of our default parameter is simply not desired unless we can prove that above requirements still work ?
Otherwise please revert immediately !


Chewy crashes when config.active_record.logger = nil

As explains in rails guide I set config.active_record.logger to nil to disable active record log.
But that crashes the app during Chewy logger call
Puma caught this error: undefined method `info' for nil:NilClass (NoMethodError)
/home/mickro/.rvm/gems/ruby-2.4.2/gems/chewy-0.10.1/lib/chewy/railtie.rb:17:in `call'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/railties-5.0.5/lib/rails/rack/logger.rb:36:in `call_app'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/railties-5.0.5/lib/rails/rack/logger.rb:24:in `block in call'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/activesupport-5.0.5/lib/active_support/tagged_logging.rb:69:in `block in tagged'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/activesupport-5.0.5/lib/active_support/tagged_logging.rb:26:in `tagged'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/activesupport-5.0.5/lib/active_support/tagged_logging.rb:69:in `tagged'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/railties-5.0.5/lib/rails/rack/logger.rb:24:in `call'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/sprockets-rails-3.2.0/lib/sprockets/rails/quiet_assets.rb:13:in `call'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/request_store-1.3.2/lib/request_store/middleware.rb:9:in `call'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/actionpack-5.0.5/lib/action_dispatch/middleware/request_id.rb:24:in `call'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/rack-2.0.3/lib/rack/method_override.rb:22:in `call'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/rack-2.0.3/lib/rack/runtime.rb:22:in `call'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/activesupport-5.0.5/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/actionpack-5.0.5/lib/action_dispatch/middleware/executor.rb:12:in `call'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/actionpack-5.0.5/lib/action_dispatch/middleware/static.rb:136:in `call'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/rack-2.0.3/lib/rack/sendfile.rb:111:in `call'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/railties-5.0.5/lib/rails/engine.rb:522:in `call'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/puma-3.10.0/lib/puma/configuration.rb:225:in `call'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/puma-3.10.0/lib/puma/server.rb:605:in `handle_request'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/puma-3.10.0/lib/puma/server.rb:437:in `process_client'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/puma-3.10.0/lib/puma/server.rb:301:in `block in run'
/home/mickro/.rvm/gems/ruby-2.4.2/gems/puma-3.10.0/lib/puma/thread_pool.rb:120:in `block in spawn_thread'
` ``

This is known bug, just try to set up Chewy.logger somewhere until the fix is released

Like here: https://github.com/toptal/chewy/issues/581


weakly-referenced object no longer exists

Hello,
Firstly, congratulations for memlab. I have been trying to use it in Google Colab, but sometimes this error happens:
ReferenceError                            Traceback (most recent call last)
 in ()
33 print('Reporter!!!!!!!')
34 reporter = MemReporter()
---> 35 reporter.report()
2 frames
/usr/local/lib/python3.7/dist-packages/pytorch_memlab/mem_reporter.py in (.0)
62         #FIXME: make the grad tensor collected by gc
63         objects = gc.get_objects()
---> 64         tensors = [obj for obj in objects if isinstance(obj, torch.Tensor)]
65         for t in tensors:
66             self.device_mapping[t.device].append(t)
ReferenceError: weakly-referenced object no longer exists
In my code, I use MemReport() just right after the training phase, i.e.:
for epoch in range(num_epochs):
net.train()
...
# end of training
print('Reporter!!!!!!!')
reporter = MemReporter()
reporter.report()
Do you know what is the problem?
Thank you and regards.

This error message is weird.
Could you plz post the:

memlab version
pytorch version
the computation devices (GPU type / CPU)

btw could you try adding a torch.cuda.synchronize before creating a reporter.

Hello,
I am using Google Colab. I just ran !pip install pytorch_memlab in the notebook. The PyTorch version is the one of Colab. The GPU I guess that is K80 but I am not so sure.
Thank you.


nixos/systemd: provide libidn2 for systemd-resolved

systemd started using dlopen() for some of their "optional"
dependencies.
Apparently, libidn2 isn't so optional, and systemd-resolved doesn't
work without libidn2 present, breaking DNS resolution.
Fixes https://github.com/NixOS/nixpkgs/issues/107537
Upstream bug: https://github.com/systemd/systemd/issues/18078

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

My system is running on unstable-small + this pr now. I can confirm that DNS works again.

I've also rebuild my whole system against flokli:nixos-fix-resolved, and without my local fix, DNS works :+1:

I kicked off a hydra evaluation, so this hopefully ends up in the channels soon.


Is it possible to add hierarchical options in the tab?

I don't know if adding multiple levels of options in the tab is possible. Any idea?
Thx

Hey there, I have not implemented this feature into the component, will look into it.


Cuisine - Serene Seasons - Dynamic Trees

Hi!
I didn't find a Discord server yet or a way to contact, but here is my idea:
Cuisine leaves has ages, Serene Seasons has option to disable aging crops.
Well, if the leaves of Dynamic Trees would have age tag, they can die in some seasons. Winter for example, except spruce.
Or what if Serene Seasons has an option to not kill the crop, but set its age to 0. In that case at the age of 0 Dynamic's leaves should look like empty branches, turned to the connected branch. At spring they can age to 1 (leaves) and 2 (blooms), and in summer or seasons how they are set, to 3 (fruits).

There is in fact a discord: invite.


Detect typescript for ts-standard

What version of this package are you using?
1.4.1
What problem do you want to solve?
Every time I move from a JavaScript to a TypeScript project, I must manually change the standard engine to ts-standard in the VS Code settings panel. Setting a standard.engine in the project's package.json has no effect.
What do you think is the correct solution to this problem?
Preferably vscode-standard would support detecting TypeScript files and automatically switching to ts-standard. Alternatively reading the engine from the package.json would be an improvement.
Are you willing to submit a pull request to implement this change?
I am unable.

Thanks, works great.


static sharedElements function not being called on first mount

I'm using a SwitchNavigator, which contains a TabNavigator, which contains a StackNavigator. I've wrapped the StackNavigator with the createSharedElementStackNavigator function.
(I'm using react-navigation)
I have basically the same setup as the example in the Usage section:
An overview page, which contains a FlatList. The FlatList contains items, each item has an image which is wrapped with the SharedElement component.
A detail page, which contains a View with an image which is also wrapped with the SharedElement component.
The animations work great, except on the first mount of the detail page: no animation is shown when navigating to the detail page for the first time.
Putting a console.log in the static sharedElements function, which I've placed on the Detail screen, shows that it is not being called on the first mount. After it has been mounted every transition between the screens has the animation showing.
Any help would be greatly appreciated.

Hey Thijs, thanks for reporting this!
I think it's a due to a bug in the 0.4.4 version. Could you try downgrading to 0.4.3 and check whether the problem also occurs there?

No worries, thanks for the quick reply.
I think you're right. I just downgraded to 0.4.3. and the animation is shown on the first mount as well.

Hey, I've fixed the problem and released it as 0.4.5

Haha, almost simultaneously :)
Yeah that's what I though. Well it should work with 0.4.5 now as well. Please use that version, it fixes some important stale/no-animation issues.
cheers!

Nice. Thanks for the (incredibly) quick fix!


/add_or_update_subject/{user_id} returns 502 bad gateway for a new user_id

I tried to use the /add_or_update_subject/{user_id} endpoint to add a new user in the gamification engine, with a new id that matches the one the user has in my application. Instead of adding the new user to the database, the API's response was 502 bad gateway.

Hi @SpirosChadoulos where you able to get this resolved?  If so did you by chance submit a PR?

This is fixed in develop.
You have to provide "name" and "subjecttype_id".


conclusion for competencies

We need to have a conclusion for the competencies paper.
Last week we decided to focus that our values and competencies should serve as traits that people can unify around and identify with. These are commonalities that are worth highlighting.

Notes from discussion:

Highlight that this is now an important part of the scientific process and vital for supporting the future of research. (@hvwaldow)
Knowledge of competencies and best practices amongst RSEs and other critical technical staff is also important for host institutions who need to ensure that their software and data outputs meet required approaches. (@jngrad)


Can I turn off the prefer-smart-quotes/prefer rule?

Hi, I would like to turn off this rule in my test file. And I add this rule to the overrides in eslintrc file with off. I think it's not working with off. Could this feature be added to this? Thanks.

Hi @ronny1020,
I've just tested it using the off rule and it should be working. Could I see the eslintrc file or at least part of it to have a look?
A suggestion would be if you have it the same as below, try restarting the ESLint Server
eslint config
module.exports = {
  root: true,
  plugins: ['prefer-smart-quotes'],
  rules: {
    'prefer-smart-quotes/prefer': ['error', 'all'],
  },
  overrides: [
    {
      files: ['*.ts', '*.tsx'],
      rules: {
         'prefer-smart-quotes/prefer': 'off',
      },
    },
  ],
}

ts file - Doesn't error
const test = 'Hello my name is "Bob"'

js file - Does error
const test = 'Hello my name is "Bob"'

I'm very sorry. It works perfectly now.  Anyway, thanks for your reply.

I'm very sorry. It works perfectly now.  Anyway, thanks for your reply.

No worries at all!


Changes due to the implicit index creation

Pull Request
Change due to implicate index creation

[x] Update code_sample
[x] Modify the README
[x] Follow https://github.com/meilisearch/integration-guides/issues/48
[x] Modify tests

bors merge

bors merge-

Merging by hand because bors seems to be broken...


join/part commands

need to add the join/part commands still, these also have to edit the main config.ini to contain the currently joined channels

best added into the modutils module

best to just add this in the adminutils module

somewhat solved by having it behind a bouncer anyway, dont really care about this anymore

somewhat solved by having it behind a bouncer anyway, dont really care about this anymore


Trouble validating IEnumerable

Hi
I have an ASP.NET Core application.
In one of my controllers I have a method with a model of type IEnumerable<MyModel>.
I have tried to create an AbstractValidator<MyModel>, but that did not validate anything. I put a breakpoint in the contstructor of my validator, but that was never hit.
I tried to be smarter:
public class RegisterMyModelEnumerableValidator : AbstractValidator<IEnumerable<MyModel>>
{
    public RegisterMyModelEnumerableValidator()
    {
        RuleForEach(model => model).SetValidator(new RegisterMyModelValidator());
    }
}

public class RegisterMyModelValidator : AbstractValidator<MyModel>
{
    public RegisterMyModelValidator()
    {
        RuleFor(x => x.NNN).Length(1, 50);
    }
}

but that did not validate anything either. a breakpoint in the RegisterMyModelEnumerableValidator  ctor was never hit.
I have registered FluentValidation with .AddFluentValidation(fv => fv.RegisterValidatorsFromAssemblyContaining<Startup>()); All my other validators works.
Isn't it possible to use IEnumerable<TModel> like this? Do I need to wrap my IEnumerable in another model class containing only an IEenumerable property?

cc @andersekelund

Thanks for prompt reply

Does it work correctly if you have a controller action that takes a MyModel (rather than a collection?)
Yepp. That works.
I've tried IEnumerable<MyModel>, List<MyModel>, MyModel[], none of those works either.

Also, how are you registering the validators?
services.AddMvc()
.AddViewLocalization()
.AddDataAnnotationsLocalization()
.AddFluentValidation(fv => fv.RegisterValidatorsFromAssemblyContaining());

in ConfigureServices in Startup.cs
I also tried upgrading to "FluentValidation.AspNetCore": "6.4.0-beta4", but no difference from beta3.
If I download the FluentValidation source, where do I stick some breakpoints to get started?

I expect it'll require tracing through the source for MVC itself to figure out why FV isn't being called (which is always a pain). I'm away this weekend but will try and get to it next week.

I debugged a bit.
The difference seems to be that validator on the line
https://github.com/JeremySkinner/FluentValidation/blob/master/src/FluentValidation.AspNetCore/FluentValidationObjectModelValidator.cs#L47 is null when I have an IEnumerable<MyModel> and is my validator when I just have MyModel.
The last line in the source I can step to that returns that null is
https://github.com/JeremySkinner/FluentValidation/blob/master/src/FluentValidation.AspNetCore/ServiceProviderValidatorFactory.cs#L29
in that method call validatorType.FullName is FluentValidation.IValidator`1[[System.Collections.Generic.List`1[[MyNamespace.Models.MyModel, MyAssemblyName, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]]

So the FVObjectModelValidator is designed with the assumption that MVC passes in the type of the model object (so MyModel, rather than IEnumerable),  which is how it worked in MVC5 and earlier, but it doesn't seem this is the case with aspnetcore.
I'll need to dig into how the default MVC implementation works to make sure the FV implementation is consistent with how it obtains the underlying type. Will keep you updated.

That type was actually a bit of a clue.
Changing the IEnumerable<T> validator to List<T> validator initialized the validator.
public class RegisterMyModelEnumerableValidator : AbstractValidator<List<MyModel>>
{
    public RegisterMyModelEnumerableValidator()
    {
        RuleForEach(model => model).SetValidator(new RegisterMyModelValidator());
    }
}

public class RegisterMyModelValidator : AbstractValidator<MyModel>
{
    public RegisterMyModelValidator()
    {
        RuleFor(x => x.NNN).Length(1, 50);
    }
}

But only partial success
I get an

InvalidOperationException: Could not apply an Indexer because the property chain is empty.

in https://github.com/JeremySkinner/FluentValidation/blob/master/src/FluentValidation/Internal/PropertyChain.cs#L108
I'll try to whip up a small example app

Yes you shouldn't be defining validators as AbstractValidator[List[T]], it needs to be for the actual model type. The issue is in the ObjectModelValidator

To be specific I run ASP.NET Core on full .NET Framework 4.6.1.
Lots of combos to test these days.

I built a minimal reproducing example on https://github.com/albinsunnanbo/FluentValidationIEnumerable
For comparisson. check out the commit (second last) https://github.com/albinsunnanbo/FluentValidationIEnumerable/commit/5669bc2b1defce9e49d6e127df9e055278eff961 for an example using the built in validation before applying FluentValidation.

Just let me know if I can assist further in any way.

I've pushed a new beta to nuget that should have a fix for this. It could possibly benefit from some caching for performance, but should work for now. Please give it a try.

Hi
Fast work, now the validator registers properly, but validation throws an exception.

System.ArgumentNullException: Value cannot be null.
Parameter name: A property name must be specified when calling WithNamePropertyName.
at FluentValidation.DefaultValidatorOptions.OverridePropertyName[T,TProperty](IRuleBuilderOptions`2 rule, String propertyName)

I've updated https://github.com/albinsunnanbo/FluentValidationIEnumerable to use beta5

Start the project
Click the link IEnumerable model. Does not work.
Click the Click to validate on server button.
The exception above is thrown

Thanks, I'll give that a try...the error means the prefix is null. In all my tests MVC always supplies a non null prefix so I'll need to do some more digging.

I'm having trouble getting the sample project to run on my machine. Could you send me what the raw form POST data is when you submit the form on the IEnumerableModel page? I can then set up the same scenario in the integration test project.

Thanks, I'll give that a try...the error means the prefix is null. In all
my tests MVC always supplies a non null prefix so I'll need to do some more
digging.
On Monday, 24 October 2016, Albin Sunnanbo<EMAIL_ADDRESS>wrote:

Hi
Fast work, now the validator registers properly, but validation throws an
exception.
System.ArgumentNullException: Value cannot be null.
Parameter name: A property name must be specified when calling
WithNamePropertyName.
at FluentValidation.DefaultValidatorOptions.OverridePropertyNameT,
TProperty
I've updated https://github.com/albinsunnanbo/FluentValidationIEnumerable
to use beta5

Start the project
Click the link IEnumerable model. Does not work.
http://localhost:22675/Home/IEnumerableModel
Click the Click to validate on server button.
The exception above is thrown

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/JeremySkinner/FluentValidation/issues/349#issuecomment-255843425,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFgEl6dvG0fpcdhakXjilLAAQDvHZQjks5q3QltgaJpZM4KdZ_s
.

So the FVObjectModelValidator is designed with the assumption that MVC
passes in the type of the model object (so MyModel, rather than
IEnumerable),  which is how it worked in MVC5 and earlier, but it
doesn't seem this is the case with aspnetcore.
I'll need to dig into how the default MVC implementation works to make sure
the FV implementation is consistent with how it obtains the underlying
type. Will keep you updated.
On Saturday, 22 October 2016, Albin Sunnanbo<EMAIL_ADDRESS>wrote:

I debugged a bit.
The difference seems to be that validator on the line
https://github.com/JeremySkinner/FluentValidation/blob/master/
src/FluentValidation.AspNetCore/FluentValidationObjectModelVal
idator.cs#L47 is null when I have an IEnumerable and is my
validator when I just have MyModel.
The last line in the source I can step to that returns that null is
https://github.com/JeremySkinner/FluentValidation/blob/master/
src/FluentValidation.AspNetCore/ServiceProviderValidatorFactory.cs#L29
in that method call validatorType.FullName is
FluentValidation.IValidator1[[System.Collections.Generic. List1[[MyNamespace.Models.MyModel, MyAssemblyName, Version=<IP_ADDRESS>,
Culture=neutral, PublicKeyToken=null]], mscorlib, Version=<IP_ADDRESS>,
Culture=neutral, PublicKeyToken=b77a5c561934e089]]
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/JeremySkinner/FluentValidation/issues/349#issuecomment-255518319,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFgEjF3CItaIJFbxyJXPGmfQ0TfTueVks5q2dqYgaJpZM4KdZ_s
.

Hi
The raw post data is Index=0&%5B0%5D.MyProperty=Hello&Index=1&%5B1%5D.MyProperty=World
I'm pretty sure you need Visual Studio 2015 Update 3 to get the project running.

I see....so the issue here is that there's no prefix in the form data...normally when working with collections you'd post something like model[0].MyProperty rather than [0].MyProperty. I'll add in some logic that supports working without a prefix, but for now if you want to test it I'd suggest adding a prefix in and then I think it should work for you.

I've now made a change that should support collections with no prefix, and released as beta7.

Hi
Thanks a lot
Now I get all the way through in both my sample application and in my main project.
Works perfectly.

Hi,
Apologies for re-spawning a closed thread, but I seem to have the same issue as the original poster. I've started using fluentvalidation with .Net Core 2.0 and can't seem to make it work for collections.
    public class MyModelListValidator : AbstractValidator<List<MyModel>>
    {
        public MyModelListValidator ()
        {
            RuleSet("ModelRuleSet", () =>
            {
                RuleForEach(model => model).SetValidator(new MyModelValidator ());
            });

        }
    }

    public class MyModelValidator : AbstractValidator<MyModel>
    {
        public MyModelValidator ()
        {
            RuleFor(model => model.MyProperty).NotEmpty();
        }
    }

Gives me

InvalidOperationException: Could not apply an Indexer because the property chain is empty.

Post data is a JSON list of MyModel objects.
Thank you


chore: update to pnpm 8

Tests are failing because findPrismaClientDir is apparently failing to find the right directory, which triggers auto-installation during generation, which causes<EMAIL_ADDRESS>to be installed as a dependency and used.

actually looking at the logs prismaClientDir looks legit 🤔
prisma:generator  prismaClientDir /Users/aqrln/prisma/prisma/packages/client/src/__tests__/generation/node_modules/@prisma/client


CAMS-CSM1-0-tasmax.yaml fails cleaning validation for ssp370, ssp245, ssp126, ssp585

CAMS-CSM1-0-tasmax.yaml fails cleaning validation for historical, ssp245, ssp126, ssp585 in https://argo.cildc6.org/workflows/default/e2e-tasmax-jobs-56tb5
From ssp370 log:
Validating gs://clean-b1dbca25/cmip6/ScenarioMIP/CAMS/CAMS-CSM1-0/ssp370/r2i1p1f1/day/tasmax/gn/v20200720.zarr
Traceback (most recent call last):
  File "/argo/staging/script", line 18, in <module>
    _test_timesteps(ds, data_type, time_period)
  File "/opt/dodola/dodola/core.py", line 645, in _test_timesteps
    assert (
AssertionError: projection cmip6 file is missing timesteps, only has 35040

log from ssp245:
Validating gs://clean-b1dbca25/cmip6/ScenarioMIP/CAMS/CAMS-CSM1-0/ssp245/r2i1p1f1/day/tasmax/gn/v20200720.zarr
Traceback (most recent call last):
  File "/argo/staging/script", line 18, in <module>
    _test_timesteps(ds, data_type, time_period)
  File "/opt/dodola/dodola/core.py", line 645, in _test_timesteps
    assert (
AssertionError: projection cmip6 file is missing timesteps, only has 35040

log from ssp126:
Validating gs://clean-b1dbca25/cmip6/ScenarioMIP/CAMS/CAMS-CSM1-0/ssp126/r2i1p1f1/day/tasmax/gn/v20191106.zarr
Traceback (most recent call last):
  File "/argo/staging/script", line 18, in <module>
    _test_timesteps(ds, data_type, time_period)
  File "/opt/dodola/dodola/core.py", line 645, in _test_timesteps
    assert (
AssertionError: projection cmip6 file is missing timesteps, only has 35040

log from ssp585:
Validating gs://clean-b1dbca25/cmip6/ScenarioMIP/CAMS/CAMS-CSM1-0/ssp585/r2i1p1f1/day/tasmax/gn/v20191106.zarr
Traceback (most recent call last):
  File "/argo/staging/script", line 18, in <module>
    _test_timesteps(ds, data_type, time_period)
  File "/opt/dodola/dodola/core.py", line 645, in _test_timesteps
    assert (
AssertionError: projection cmip6 file is missing timesteps, only has 35040

I'd say the inputs are missing timesteps (ha ha).

Heads up to @dgergel

@brews here we actually are missing timesteps, the input zarrs only go through 2099. I don't think this requires any updates for the workflow but the validation code can check the last year of the data, and if it is not 2100, expect a smaller number of timesteps (and flag this for us). Sound reasonable?

@dgergel Hmmm. We don't want time steps with less than 2015 - 2099 though, right? 15 years of data, for example, is no good. This is a case where you want validation to fail. So then maybe we want a value >= the number of days from 2015 - 2099 on a noleap calendar?
The other thing is that we run currently run QDM from 2015 to 2100. Always. This is used for that rolling window loop. Do you always want this to end at 2100 regardless of what's available in the data or do you want it to go until 2099 if the input data only goes to 2099?

Yeah if we have less than 2015 - 2099 we want to know. There was a model in CMIP5 where that was the case, so not to say we'd eliminate it for that reason but we def want to know.
I don't see a reason to go past 2099 if we only have input data that goes to 2099

Closed with PR #365


Ingredient thumbnails, extension cleanup, toolkit update

Thumb and extension fixes
fix ingredient thumbnail loading
remove manifest preview feature
test for similar extensions
update c2pa-rs
Add svg support
Changes in this pull request
Give a narrative description of what has been changed.
Checklist

[ ] This PR represents a single feature, fix, or change.
[ ] All applicable changes have been documented.
[ ] Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.

Codecov Report

Merging #120 (5eeda51) into main (25d0f41) will increase coverage by 3.64%.
The diff coverage is 82.60%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##             main     #120      +/-   ##
==========================================
+ Coverage   77.38%   81.02%   +3.64%
==========================================
  Files           3        3
  Lines         367      369       +2
==========================================
+ Hits          284      299      +15
+ Misses         83       70      -13

Impacted Files
Coverage Δ

src/main.rs
80.25% <82.60%> (+5.79%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Enum deterministic hashing

[x] Closes #9209
[ ] Tests added / passed
[ ] Passes pre-commit run --all-files

Thanks !


Make download of licenses explicit instead of implicit

Description
Licenses of nuget packages are automatically downloaded (asked for in https://github.com/fsprojects/Paket/issues/735 and introduced with https://github.com/fsprojects/Paket/pull/737).
This feature caused hundreds of builds at my employer to fail yesterday because github decided we made enough requests to raw.githubusercontent.com. I wasn't even aware till today that paket issues requests to hosts i didn't explicitly specify as sources for packages.
This causes long delays or even errors when:

in restricted environments (without access to internet)
a lot of licenses are downloaded from github and a lot of builds happen at once you get blocked by github

I also have a few more concerns on automatically downloading something from sources i did not specify:

[Security] Requests to those sources could be tracked
Content could have been moved thus causing sudden delays because of timeouts

Repro steps

Add reference to a nuget package which hosts it's license file at github (for example ControlzEx)
Restore that package many times till github decides you had enough and starts blocking you

Expected behavior
Paket should not makes requests to hosts other than those i explicitly sepcified in the sources.
Licenses should only be downloaded on demand.
Actual behavior
Licenses are always downloaded automatically.
Known workarounds
There are no workarounds i am aware of.
Please let me know if you need further details or explanations.

what do you suggest? something in paket.dependencies per group and package?
download-license: yes/no ?

This was a troublesome feature from the very start. I think it was decided to do it as is because of legal reasons. technically, it should have been opt-in from the start?

Ok I'm going for license-download because of singular/plural problen in group vs nuget package

see https://github.com/fsprojects/Paket/pull/2820

ok this is fixed

That was fast. Thanks a lot.


Removed security roles, constraints, and login-config from web.xml

Our base install should get to assume no authentication, especially for a 'tomcat' role.
Installations that desire authentication should configure it themselves.
This addresses #27

This branch fails to address features which expect a logged-in user (PrincipalAwareDataService), for example failing to create new 'merge' entities.


adds ken to first_pr_club.md

I'm adding myself to the list now. Let me know if I missed anything, thanks.

All done, Ken. Feel free to contribute to the code if you find something that seems doable :)


[Snyk] Upgrade @astrojs/markdoc from 0.9.5 to 0.11.5

Snyk has created this PR to upgrade @astrojs/markdoc from 0.9.5 to 0.11.5.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 9 versions ahead of your current version.

The recommended version was released 2 months ago.

Release notes

Package name: @astrojs/markdoc

0.11.5 - 2024-10-10

0.11.5-beta.1 - 2024-10-01

0.11.5-beta.0 - 2024-09-17

0.11.4 - 2024-08-28

0.11.3 - 2024-07-18

0.11.2 - 2024-07-17

0.11.1 - 2024-06-24

0.11.0 - 2024-04-23

0.10.0 - 2024-04-11

0.9.5 - 2024-04-03

    from @astrojs/markdoc GitHub release notes

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:

🧐 View latest project report
📜 Customise PR templates
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Will be 12.5 after upgrade to astro 5


Accents Working in MySQL but not in Datatables

Summary of problem or feature request
In MySQL I can use the below to find the name I am looking for
  SELECT * FROM `inventory_selections` WHERE `name` LIKE '%capi%'

which finds the full name Capítulo
However searching for "capi" in datatables yields no results.
Code snippet of problem
System details

Mac OSX Mojave
PHP 7.3
Laravel 7
Laravel-Datatables 9

Also running it as a test, this code works in a separate controller
 $column = 'name';         $keyword = "%capi%";         $sql    = $column . ' LIKE ?';         $select = InventorySelection::select('*')         ->whereRaw($sql ,$keyword)         ->get();

You might be using collection? Make sure you don't have ->get() when passing the query to dataTables.

You might be using collection? Make sure you don't have ->get() when passing the query to dataTables.

It was a combination of that and manually setting a render column in JS. For some reason it kept pulling the data: null of the column and thinking it was part of the column filtering. Would get errors such as "inventory.  " column not found

Can you please provide snippets to reproduce the issue?

I need also a solution for this issue... I'll specify my case:
I have a column "nombre" with "Perez" and "Pérez" values.
When I search "pere", it founds only "Perez" results and I need to find also "Pérez". Like @racerguy said, if you do the sql query in mysql "select * from alumnos where nombre like '%pere%'" it finds both cases...
I've been trying to modify the query in datatable using filter function, but doesn't work..., it shows an error said "CollectionDatatable where doesn exist" this is my filter function:
->filter(function ($query) use ($request) {
if ($request->has('search')) {
$busqueda = $request->get('search');
$query->where('name', 'like', "%{$busqueda['value']}%");
}
})
@yajra Do you know any solution?

@jcarlos1985 Can you send the entire snippet including the datatables function? I'll try to see if my fix works for you

Hi @racerguy this is the complete function:
$data = Alumno::latest()->get();
$grupos = Grupo::all();
$select_grupos = '';
foreach($grupos as $grupo)
$select_grupos .= '' . $grupo->nombre . '';
return Datatables::of($data)
->filter(function ($query) use ($request) {
if ($request->has('search')) {
$busqueda = $request->get('search');
$query->where('name', 'like', "%{$busqueda['value']}%");
}
})
->addColumn('nombre', function($row) { return $row->nombre; })
->make(true);
Thanks for reply!

First change
$data = Alumno::latest()->get();
to
$data = Alumno::latest();
Then change
return Datatables::of($data)
to
return Datatables::eloquent($data)
I'm assuming nombre is stored as name in the database?
If so, what i would do is delete the custom filter then just set name to title  "nombre"  in the datatables front end.

Hi!
Sorry about the mistake, in database is "nombre" not "name". This is the code now:
$data = Alumno::latest()->get();
return Datatables::eloquent($data)
->addColumn('nombre', function($row) { return $row->nombre; })
->make(true);
But this is the error it shows:
Non-static method Yajra\DataTables\DataTables::eloquent() should not be called statically

$datatables = datatables()->eloquent($datas)...
return $datables;

This is how mine reads
try lower casing datatables()

Now is working!! Thanks @racerguy final code is:
return datatables()->eloquent($data)
->filter(function ($query) use ($request) {
if ($request->has('search')) {
$busqueda = $request->get('search');
$query->where('nombre', 'like', "%{$busqueda['value']}%");
}
})
About addColumn, yes, I understand now, only it would be necessary in case modify the result in database or make some calc, isn't it?
Some interesting thing... I note is faster doing the query in database when use datatables()->eloquent() instead of Datatables::of() Is there any reason?
Thanks!

I realized now is not ordering columns... What could be the reason? :'(

Now is working!! Thanks @racerguy final code is:
return datatables()->eloquent($data)
->filter(function ($query) use ($request) {
if ($request->has('search')) {
$busqueda = $request->get('search');
$query->where('nombre', 'like', "%{$busqueda['value']}%");
}
})
About addColumn, yes, I understand now, only it would be necessary in case modify the result in database or make some calc, isn't it?
Some interesting thing... I note is faster doing the query in database when use datatables()->eloquent() instead of Datatables::of() Is there any reason?
Thanks!

You are exactly right on the first question.
The second part may be a @yajra question as I'm not well versed in the difference.
Could you go on chrome and open the debug window then record network calls?
click the reorder then see if API returns anything or if response is null if you can send the response you got


kivy.uix.camera enables camera hardware even when stopped

If I add a Camera widget to my screen, it works flawlessly. However if I add it with play=False or if I later set play=False, the screen stops rendering frames from the camera, but it does not turn the camera off (which is to say, the green light identifying the webcame stays lit). The camera should release the hardware when not in use, for privacy reasons; this will be even more important when the android provider is implemented, as turning the camera on is a battery drain.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

yeah... how to deal with this??

you should to add play= False in the init of main xcamera class
example
class XCamera(Camera):
directory = ObjectProperty(None)
_previous_orientation = None
events = ('on_picture_taken', 'on_camera_ready')
def __init__(self, **kwargs):
    Builder.load_file(os.path.join(ROOT, "xcamera.kv"))
    super().__init__(**kwargs)
   ####### HERE ######
    self.play=False


Fix add sync to ensure data synchronization in test_set_operater (#32993)

Proposed changes
cherry-pick #32993

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Fail to install chromium-base

Host Environment

OS: Windows
Compiler: MSVC(Visual Studio 2019)

To Reproduce
Steps to reproduce the behavior:
./vcpkg install chromium-base --triplet="x64-windows"
Failure logs
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
Command failed: C:/tets/vcpkg/installed/x64-windows/tools/gn/gn.exe gen C:/tets/vcpkg/buildtrees/chromium-base/x64-windows-dbg "--args=     use_custom_libcxx=false     clang_use_chrome_plugins=false     forbid_non_component_debug_builds=false     treat_warnings_as_errors=false use_lld=false clang_base_path="C:/tets/vcpkg/downloads/tools/clang/clang-15.0.6" is_component_build=true is_debug=true symbol_level=2"
Working Directory: C:/tets/vcpkg/buildtrees/chromium-base/src/25ce732
Error code: 1
See logs for more information:
C:\tets\vcpkg\buildtrees\chromium-base\generate-x64-windows-dbg-out.log
Call Stack (most recent call first):
installed/x64-windows/share/vcpkg-gn/vcpkg_gn_configure.cmake:11 (vcpkg_execute_required_process)
installed/x64-windows/share/vcpkg-gn/vcpkg_gn_configure.cmake:35 (z_vcpkg_gn_configure_generate)
ports/chromium-base/portfile.cmake:113 (vcpkg_gn_configure)
scripts/ports.cmake:147 (include)
generate-x64-windows-dbg-out.log:
ERROR at //build/config/BUILDCONFIG.gn:401:1: Unknown function.
set_sources_assignment_filter(sources_assignment_filter)

Additional context
Currently vcpkg seems to be building very old version of Chromium-base(86.0.4199.1) we might need to update it to latest(112.0.5598.0)

cc @vejmartin, the latest source of chromium has no longer use set_sources_assignment_filter, but I am not very familiar with the code of chromium-base and gn, do you have some time to update port chromium-base?
The related source issue: https://bugs.chromium.org/p/chromium/issues/detail?id=1018739

Hi Team, is there any update on this issue.

Hello, I got the same issue while building on Windows, please fix it.

您好，我在Windows上构建时遇到了同样的问题，请修复它。


Downloaded empty CSV when calling import_quickstart_data("titanic")

I found that recently public.ecr.aws/y2e2a1d6/titanic_quickstart-repository:latest has been updated, perhaps that's the cause of the issue.

this should solve it https://github.com/AIModelShare/aimodelshare/commit/1e712423f3d3dcf6e1f773a2ed3ea294ac0cacc6#commitcomment-63206990


Update Sonar Config

Sonar apparently deprecated support for forced language via the sonar.language property back in 4.5, and as of v7.7 it's officially no longer being recognized.
With our current configuration this is resulting in Sonar double counting our source TypeScript files and their respective JavaScript files emitted by the transpilation process.
The easiest way I've found to fix this is to simply add a property for inclusions:
sonar.inclusions=**/*.ts

Out of scope given deprecation strategy


CSS bundle gives hydration error on remix 1.16 with css modules

What version of Remix are you using?
1.16
Are all your remix dependencies & dev-dependencies using the same version?

[X] Yes

Steps to Reproduce

Create a new app using npx create-remix@latest that uses cssBundleHref by default
Create a component that uses a css module. e.g.

import css from './button.module.css'

export function Button() {
	return <button className={css.button}>text</button>
}

Serve the app
Make a change in the css module file
Observe app being rebuild and page reloaded
Changes are visible however the app is logging the following error to the browser console:

Here's a repo that produces this behaviour: https://github.com/TimoWestland/remix-css-bundle-issue
Also tried with scss, issue is the same for both css and scss.
Tried with an stand alone express server as well as that's what I'm using in my production app, and suspected that might be related, but the error is the same with and without an express server.
Expected Behavior
App is able to hydrate the css bundle href with the correct fingerprint to the client
Actual Behavior
Client still uses old fingerprint for the css bundle href.
I'm not to worried about just the error message, although it does make me suspect something else might be broken.
On a production app I'm working on for my client, the issue seems to be bigger.
When the app has just started, the first couple of reloads are fine, also the error is not logged.
Then once this error is logged, the app does rebuild but no longer reloads after changes, so changes are not visible.
In some cases the css bundle href gives a 404. When I do a hard refresh, all files in /public/build suddenly give 404s.
When I log cssBundleHref from @remix-run/css-bundle in this case, I sometimes also see that the fingerprint does not match with the fingerprint on the css file that is in the /public/build folder, both on the server and the client.
Haven't been able to pinpoint what exactly is causing this issue in that app, as I cannot reproduce this in the example app that is linked above. But I do expect it might be related somehow.

Thanks for the bug report! This seems to be caused by the cssBundleHref value accidentally not being included in the hash in the manifest file name. I've just opened a PR fixing this.

I'm seeing something similar with Vanilla Extract.

Probably the cause of #6378.

@TimoWestland Could you try out the pre-release to see if this fixes your issue?


size of map with string key

Add this to MessageWithMap in proto/testdata/test.proto
map<string, string> stringy = 4;

Add this to size_test.go in proto
{"map with string and string", &pb.MessageWithMap{
		Stringy: map[string]string{"YGeGc18B1eey5ifSdWMn2c21wRAgY90YvH4HmCOeSa9q2pfAIJa9WiGOOZGZKxZgoJo7VXnQumvsch": "RggKn1pmtK98gnMhD2J0GHy9R4IFPZQwjFeyphRQzEqXkVn"},
	}},

You should get this error:
size_test.go:141: map with string and string: Size(stringy:<key:"YGeGc18B1eey5ifSdWMn2c21wRAgY90YvH4HmCOeSa9q2pfAIJa9WiGOOZGZKxZgoJo7VXnQumvsch" value:"RggKn1pmtK98gnMhD2J0GHy9R4IFPZQwjFeyphRQzEqXkVn" > ) = 131, want 132
	size_test.go:142: map with string and string: bytes: []byte{0x22, 0x81, 0x1, 0xa, 0x4e, 0x59, 0x47, 0x65, 0x47, 0x63, 0x31, 0x38, 0x42, 0x31, 0x65, 0x65, 0x79, 0x35, 0x69, 0x66, 0x53, 0x64, 0x57, 0x4d, 0x6e, 0x32, 0x63, 0x32, 0x31, 0x77, 0x52, 0x41, 0x67, 0x59, 0x39, 0x30, 0x59, 0x76, 0x48, 0x34, 0x48, 0x6d, 0x43, 0x4f, 0x65, 0x53, 0x61, 0x39, 0x71, 0x32, 0x70, 0x66, 0x41, 0x49, 0x4a, 0x61, 0x39, 0x57, 0x69, 0x47, 0x4f, 0x4f, 0x5a, 0x47, 0x5a, 0x4b, 0x78, 0x5a, 0x67, 0x6f, 0x4a, 0x6f, 0x37, 0x56, 0x58, 0x6e, 0x51, 0x75, 0x6d, 0x76, 0x73, 0x63, 0x68, 0x12, 0x2f, 0x52, 0x67, 0x67, 0x4b, 0x6e, 0x31, 0x70, 0x6d, 0x74, 0x4b, 0x39, 0x38, 0x67, 0x6e, 0x4d, 0x68, 0x44, 0x32, 0x4a, 0x30, 0x47, 0x48, 0x79, 0x39, 0x52, 0x34, 0x49, 0x46, 0x50, 0x5a, 0x51, 0x77, 0x6a, 0x46, 0x65, 0x79, 0x70, 0x68, 0x52, 0x51, 0x7a, 0x45, 0x71, 0x58, 0x6b, 0x56, 0x6e}

It you decrease the length of any one of the two strings by one the test starts passing.

This looks to be because the map entry is encoding to over 127 bytes.

Wow, my code for sizing a map field was horribly broken. We got lucky if map entries were small. I've got a fix in the works.

Thank you :)
On 24 March 2015 at 01:21, David Symonds<EMAIL_ADDRESS>wrote:

Closed #21 https://github.com/golang/protobuf/issues/21 via a8323e2
https://github.com/golang/protobuf/commit/a8323e2cd7e8ba8596aeb64a2ae304ddcd7dfbc0
.
—
Reply to this email directly or view it on GitHub
https://github.com/golang/protobuf/issues/21#event-262929931.


update copyright

Current coverage is 28.12% (diff: 100%)

Merging #16 into master will increase coverage by 0.85%

@@             master        #16   diff @@
==========================================
  Files             3          2     -1
  Lines            33         32     -1
  Methods           0          0
  Messages          0          0
  Branches          4          4
==========================================
  Hits              9          9
+ Misses           23         22     -1
  Partials          1          1

Powered by Codecov. Last update ae0ea19...19f22b6


Adding first Chakra Shorts video to resources page

📝 Description

Adding the first Chakra Shorts video to the resources page.

⛳ Current behavior (updates)

Currently the Chakra Shorts video isn't present on the resources page.

🚀 New behavior

Users can now watch the first Chakra Shorts video from the resources page.

💣 Is this a breaking change (Yes/No):

No

@allcontributors please add @aacevski for documentation.


[Feature issue] Add/Delete/Edit taxes #24

Describe your changes
The PR fixes #24
Added Add/Delete/Edit Tax Feature
Added Add/Delete TaxGroup / ItemTaxGroup Feature
Checklist before requesting a review

[x] I have performed a self-review of my code
[ ] If it is a core feature, I have added thorough tests.
[ ] Do we need to implement analytics?.
[ ] Will this be part of a product update? If yes, please write one phrase about this update.

I noticed that there was no consistency in the nullable status of various variables in the Dto & Api projects. Therefore, I added the following to the two Api & Dto projects:
enable
I also updated some of the code to reduce warnings.
Regarding the Tax system, you did a great job. However, I noticed that the Tax does not save in the database. To repeat my experience:
Financials >> Taxes
Taxes tab >> +New Tax
Create New Tax Group:
Description GST
Item Tax Group: chose "Regular"
Tax Name: GST
Tax Code: GST 5%
Rate: 5
Active: checked
I then clicked on "Save".

Problem: The tax did not save.

I tested the new tax system and it all works quite well. Before you submit
a pull request, please do the following.

make a PULL because I made some minor changes

On this dialog, change IsFullyExempt label to a more user friendly
message like "Fully Exempt"

[image: image.png]
Regards,
Medhat Elmasry
On Mon, Aug 12, 2024 at 7:21 PM Yeongdong Choi @.***>
wrote:

Closed #40 https://github.com/medhatelmasry/GoodBooks/pull/40.
—
Reply to this email directly, view it on GitHub
https://github.com/medhatelmasry/GoodBooks/pull/40#event-13856789633,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAN4UQUFMM2QTEGTQ4IYYB3ZRFUSBAVCNFSM6AAAAABMMYPX6KVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTHA2TMNZYHE3DGMY
.
You are receiving this because your review was requested.Message ID:
@.***>


Make root container wrapper configurable

Maybe we could have a single config point to create a default wrapper for all of the stories. Or maybe in a deeper level for a whole MonarchApp wrapping.

@fertrig Yes exactly


Configuration attribute to disable CORS processing when response already has CORS headers

Is your feature request related to a problem? Please describe.
When proxied services already set CORS headers, I end up with double headers definition and CORS error in web browser.
All solutions that I found so far to disable CORS actually just allow any origin for any kind of requests, which sets headers and lead to the error I face.
Describe the solution you'd like
I'd like a configuration option to disable completely corsProcessor in AbstractHandlerMapping when a response already carries Access-Control-Allow-* headers (not override nor add header with the same name)
Describe alternatives you've considered
First solution is to disable CORS in downstream services. This works for resource-servers that I code but sometimes, I just can't disable CORS (like when proxying a Keycloak server). Also, web-applications can't use the resource-servers directly anymore.
Other solution I found is to explicitely setResponseHeader in a filter. This de-duplicates headers but resource-servers CORS headers are lost (as explained earlier, I'd prefer to use those original headers only):
	@Bean
	public RouteLocator myRoutes(RouteLocatorBuilder builder, Function<GatewayFilterSpec, UriSpec> brutalCorsFilters) {
		return builder.routes().route(p -> p.path("/users/**").filters(brutalCorsFilters).uri("https://localhost:9443"))
				.route(p -> p.path("/greet/**").filters(brutalCorsFilters).uri("https://localhost:9445"))
				.route(p -> p.path("/realms/**").filters(brutalCorsFilters).uri("https://localhost:8443"))
				.build();
	}

	@Bean
	Function<GatewayFilterSpec, UriSpec> brutalCorsFilters() {
		// use something more restrictive in production
		return f -> f
				.setResponseHeader("Access-Control-Allow-Origin", "*")
				.setResponseHeader("Access-Control-Allow-Methods", "*")
				.setResponseHeader("Access-Control-Allow-headers", "*")
				.setResponseHeader("Access-Control-Expose-Headers", "*");
	}

with this properties:
spring.cloud.gateway.globalcors.add-to-simple-url-handler-mapping=true
spring.cloud.gateway.globalcors.corsConfigurations.[/**].allowed-origins=*
spring.cloud.gateway.globalcors.corsConfigurations.[/**].allowed-headers=*
spring.cloud.gateway.globalcors.corsConfigurations.[/**].allowed-methods=*
spring.cloud.gateway.globalcors.corsConfigurations.[/**].exposed-headers=*

There is not, there is a DedupeResponseHeader you can use.

@spencergibb yes, I found that one sometimes last year and its usage helps, but still this could have the gateway add headers that where not set by downstream services.
Also, I'm currently less burdened with this requirement as I came to architectures with a reverse-proxy in front of both the gateway and frontend assets, removing the need for cross origin calls (and the lack of control on gateway CORS headers is a reason for this extra layer).


Fix a broken link to the development setup docs

I was looking for things to possibly help you with, and I found this broken link in the docs. 😛

Oops, #5683 got there before me! I'll close this!

Haha good eye


For legal compliance, add link to Privacy policy, Attributions, and Disclaimers

Standard practice to add a link to a privacy policy that explains if information is user session info is tracked, exactly what information is tracked, and how to opt out.
Attributions should also be listed for content that is used on website that is not owned by the website's developers including images and libraries.
Disclaimers are also common, explaining who owns the intellectual property.
This information is all commonly placed in a footer or header.

Privacy Policy
Right now, there is no private information saved or tracked, thus, there is no way to opt-out.
#1 will not require cookies either, thus, no cookie banner is required.
With #4, there will be the need of privacy policies, because we don't have full control of the data. Usually, ads networks have a template for this.
I would like to add a note like "No Cross-Site trackers and other creepy things" until we save private data.
Attributions
Sounds good. We have the approval and support directly from the game studio, but a note should be added anyway.
Disclaimers
Not sure about this, could you give an example?
Footer / Header
I prefer adding a footer or add links in the sidebar.


Bitstream IDs / URLs should be persistent after updates

Is your feature request related to a problem? Please describe.
It is not possible to persistently link to an Item's bitstream if the file associated with the bitstream needs to be updated.
Because updating a bitstream's file requires the existing bitstream to be deleted and a new one to be created,  a new ID and URL for the bitstream is created, and the previous ID and URL no longer resolve, thus breaking any links to it that are recorded outside of DSpace, such as a DOI that resolves to the bitstream's URL.
Describe the solution you'd like
Allow the file associated with a bitstream to be updated without altering its ID or URL. This is already possible for the metadata associated with a bitstream without altering its ID or URL.
Describe alternatives or workarounds you've considered
N/A
Additional context
A narrative example of the required functionality is:
A user creates an item with a two file datastreams, a PDF article and a CSV dataset. They register a DOI for the item as a whole, as well as for each datastream. At a later time, the PDF and the CSV datastreams need to be updated for corrections discovered after initial publication. The URLs used to create the DOIs for the datastreams should continue to resolve after the datastreams files are update,
We also defined two use cases, for a reader of content, and  a creator of content.
As a reader of content, I want to be able to cite or otherwise reference any file associated with publications, since that content may be of interest independent of the parent article.  Formally citing a file, or even referencing it in a social media posting, requires that it have a permanent, unique, identifier that resolves to the access location.
As a creator of content, I want the files associated with my publications to have permanent, unique, and resolvable identifiers so that they can be cited or referenced by others, reliably accessed from those references, and so that usage statistics for those items can be gathered.

This ticket has come up as a suggestion for 9.0 from @artlowel / Atmire.
Additional comments from @artlowel (I've moved these from the brainstorming section on 9.0 to this ticket) :

Bitstream persistence

Current behavior

Current URLs on item pages are similar to /bitstreams/2d35dc29-47a7-4a62-a87b-8b1fb10594ee/download

This will first handle authentication, and hereafter redirect the user to the REST url

The REST url is similar to /server/api/core/bitstreams/2d35dc29-47a7-4a62-a87b-8b1fb10594ee/content

This can’t handle authentication, and is used by Google (the URL which is indexed) and most often by users if they want to share the link to the file

If you need to replace the bitstream, a new bitstream has to be created with a new UUID, and the old bitstream has to be deleted. They are in no way linked to each other
When using versioning, and not changing the bitstream, the new item will contain a bitstream with a different UUID, which references the same file. They are not related to each other in the bitstream’s metadata. Cut there are two URLs which both point to the same file. This may lead to perceived duplication of the files as well

Desired behavior

The urls should both be independent from the UUID if we want to allow url persistence
The newly uploaded bitstream should be linkable to a bitstream it’s replacing. And the bitstream of the new version of the item (during item versioning) should be linked to the bitstream from the older item
In DSpace 6, this was handled using the sequence ID. Download urls were based on the combination of the item’s handle and the bitstream’s sequence ID. This concept could be used to support replacing a file while keeping the URL consistent
In DSpace 7, there’s also versioning support for items. Depending on the configuration, the handle without suffix would always lead to the latest version
Based on these concepts, it should be realistic to build a URL for both Angular and REST which can at all points in time link to the latest version of the file

Thanks @tdonohue!


Please Add Webhook for incomming messages

Please Add Webhook for incomming messages.

We already got a DB, what would be your use case for this?

I'm in the same boat as @marutichintan, it would be great to have a webhook that sends to a configure URL per session the jid and the message. Then in my app I can respond to that and not do pooling to fetch new messages.
Also: Is it possible to have another endpoint to clear/delete all the chats for a session? (so i make a cron to call that endpoint every night so it does not grow indefinetily)


rustdesk derivation dependency from GitHub no longer exists (user deleted their account)

Describe the bug
When attmepting to install rustdesk from nixpkgs-24.05 I'm receiving an error about "https://github.com/fufesou/rdev" not found...
When manually attempting to visit the repo it seems its totally gone. Same for the user.
Steps To Reproduce

Add rustdesk to system packages and execute a rebuild-switch, for example.

Expected behavior

Rustdesk installs successfully

Additional context
Here's the derivation from nixpkgs: https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/applications/networking/remote/rustdesk/default.nix#L61
Notice the rdev dependency. It seems to be a vendored Cargo crate
Notify maintainers

@ocfox @leixb
Metadata
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.9.7, NixOS, 24.05 (Uakari), 24.05.20240702.706eef5`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.4`
 - nixpkgs: `/nix/store/0z4i8wyg3ymm7kkb1gk2wyh08x230c6z-source`

Add a :+1: reaction to issues you find important.

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/rebuild-failed-unable-to-checkout-from-https-github-com-fufesou-rdev/49373/4

Upstream fixed it in https://github.com/rustdesk/rustdesk/pull/8772, no release yet.


Fatal error: Uncaught Error: Call to a member function fetch_assoc() on bool in C:\xampp\htdocs\php-signup-login-main\login.php:15 Stack trace: #0 {main} thrown in C:\xampp\htdocs\php-signup-login-main\login.php on line 15

https://github.com/daveh/php-signup-login/blob/f0596513659e5592bdfd722a33c0fbc07eebe9fd/login.php#L15

If that's the error message, then it's probably the database connection credentials that are incorrect (username, password etc.) check these are correct and that it's connecting to the database correctly


Can't set some port parameters before opening the port

We have a need to set the DTR parameter before opening the serial port, but it seems this is not possible:
sp = LibSerialPort.SerialPort("/dev/ttyUSB0")
LibSerialPort.sp_set_dtr(sp.ref, LibSerialPort.SP_DTR_OFF)
ERROR: libserialport returned SP_ERR_ARG - Function was called with invalid arguments.

Is this a libserialport limitation, or a LibSerialPort.jl limitation?

Can you explain your need in more detail? What exact difference does it make to you (on the serial-port wires) if you set DTR before or after opening the port?

The DTR pin on our FTDI chip connects to our AVR's RESET pin, so if we can't select the DTR setting before opening the serial port, then the AVR will always be reset. We want to have control over when we reset the AVR, so we need to set the DTR before opening the serial port.

Looking at serialport.c it seems that sp_set_dtr() calls CHECK_OPEN_PORT() to check if there is a file descriptor open, and it seems that can only be passed after sp_open(), which in turn does not take any flow-control configuration parameters.
So, as far as I can see (from just looking for a couple of minutes), there may be no obvious way to do what you want via the libserialport C library API. I don't see immediately a way how the Julia wrapper could mitigate that.
In case you don't need the cross-plattform (Linux/Windows/macOS) portability of libserialport, and you only work on e.g. Linux, I'd suggest you try using the ioctl_tty(2) API directly. (I don't know of anyone already maintaining a Linux <termios.h> wrapper for Julia.)

Good eye. I agree this is an upstream issue.


Dockerfile fixes

Dockerfile Fixes for deploying to prod
What user problem are we solving?
The TrainingContainer.Dockerfile builds locally. However, when running on Github action, the ECS Training container deployment flow fails because the dockerfile doesn't build due to the fact that github action is an ubuntu environment and it needs the x86-64 architecture of AWS CLI. However, some of the devs use mac, so it would be annoying for the developers to have to change one url in dockerfile to test if stuff works correctly.
What solution does this PR provide?
Safety check for dockerfile to work regardless of x86 vs. arm64 architecture. Simply pass in a build arg for target arch like --build-arg TARGETARCH="arm64" in the docker build when testing locally if prod version works
Testing Methodology
Run in Github Action and used LLMs to debug
Any other considerations
Make sure we update docs to reflect this

https://github.com/DSGT-DLP/Deep-Learning-Playground/actions/runs/4267644638 @farisdurrani


Add a comparator

All the comparisons at the moment are based on "==", which might be extremely unscalable. Add support for passing a callback, which performs comparisons in the case the DS stores complex objects (Instances, Object literals etc)

Your help is here. I will try to look into it, and get back.

Please have a look at this PR, wherein I have solved the issue.
Regards,
Naman


Improve CLI docs

Description
Replaces lists of options with tables in CLI docs.
Fixes #3504
How was this PR tested?
By generating the quickwit website to ensure that it looks good after Docusaurus treatment.

@imotov  please create branch in quickwit-oss. It makes it easier for peope ot checkout your work.


Failed to construct OpenVINOImageInference: Config for layer precision does not contain precision info for layer: head_pose_angles

I'm trying to build an python gstreamer application as the bellow c++ example:
https://docs.openvinotoolkit.org/latest/omz_demos_gaze_estimation_demo_cpp.html
This example use: face-detection-retail-0004 or face-detection-adas-0001 , head-pose-estimation-adas-0001, facial-landmarks-35-adas-0002 , open-closed-eye-0001 and gaze-estimation-adas-0002.

Firstly, I was converted the open-closed-eye-0001 from .ONNX to openvino format
Then I create a gstreamer pipeline like:
filesrc location={file_location} ! decodebin ! queue ! videoconvert ! video/x-raw,format=BGRx ! gvadetect model=face-detection-adas-0001/FP32/face-detection-adas-0001.xml model-proc=models/face-detection-adas-0001/PROC/face-detection-adas-0001.json device=CPU ! gvatrack ! queue ! gvaclassify reclassify-interval=5 model=models/head-pose-estimation-adas-0001/FP32/head-pose-estimation-adas-0001.xml device=CPU batch-size=1 pre-process-backend=opencv object-class=face ! queue ! gvaclassify reclassify-interval=5 model=models/facial-landmarks-35-adas-0002/FP32/facial-landmarks-35-adas-0002.xml  device=CPU batch-size=1 pre-process-backend=opencv object-class=face ! queue ! gvaclassify reclassify-interval=5 model=models/open-closed-eye-0001/FP32/open-closed-eye-0001.xml device=CPU batch-size=1 pre-process-backend=opencv object-class=face ! queue ! gvaclassify reclassify-interval=5 model=models/gaze-estimation-adas-0002/FP32/gaze-estimation-adas-0002.xml device=CPU batch-size=1 pre-process-backend=opencv object-class=face ! queue ! videoconvert name=videoconvert ! autovideosink name=autovideosink
When starting the pipeline, I got an error:
ERROR:Pipeline has error gst-library-error-quark: base_inference plugin intitialization failed (3)
Debug detail: /app/dl-streamer/gst/inference_elements/base/inference_singleton.cpp(136): acquire_inference_instance (): /GstPipeline:pipeline0/GstGvaClassify:gvaclassify3:
Failed to construct OpenVINOImageInference
Config for layer precision does not contain precision info for layer: head_pose_angles

Thanks anh Best Regards,
Ngoc Son, Luong (Eric)

Hi @sonln5,
This seems like an initialization error when DL Streamer made requests to Inference Engine which might require some addition information or missing some layer support. To understand which model cause the problem, could you remove model "gaze-estimation-adas-0002" or "open-closed-eye-0001" or both to see if the error still exists? The other models are the same as our sample, so they should be OK
Do you check our face_draw_attribute sample? This sample uses 3 models which are the same as yours. You can also extend it with two models in your prototype and see if it generates an error.
Mark

Hi @mliu2020
I've already tried with the face_draw_attribute sample and it was OK. I also run

Hi @sonln5,
This seems like an initialization error when DL Streamer made requests to Inference Engine which might require some addition information or missing some layer support. To understand which model cause the problem, could you remove model "gaze-estimation-adas-0002" or "open-closed-eye-0001" or both to see if the error still exists? The other models are the same as our sample, so they should be OK
Do you check our face_draw_attribute sample? This sample uses 3 models which are the same as yours. You can also extend it with two models in your prototype and see if it generates an error.
Mark

Hi @sonln5,
This seems like an initialization error when DL Streamer made requests to Inference Engine which might require some addition information or missing some layer support. To understand which model cause the problem, could you remove model "gaze-estimation-adas-0002" or "open-closed-eye-0001" or both to see if the error still exists? The other models are the same as our sample, so they should be OK
Do you check our face_draw_attribute sample? This sample uses 3 models which are the same as yours. You can also extend it with two models in your prototype and see if it generates an error.
Mark

Hi @mliu2020
Thanks for your answer.
I've already tried with the face_draw_attribute sample and it was OK. I also run the cpp example successfully. But when I put the gaze_estimation_0002 model to my gstreamer pipeline. it still got the error as before. I'm debugging on the dlstreamer source code to figure out when we got 'Config for layer precision does not contain precision info...' error.
Thanks and Best Regards

@sonln5,
This is more an OpenVINO question than a DL Streamer question.
I am not an inference engine expert but I guess, your model has a layer precision, it is missing the precision info like FP32, etc. So it seems your model have some issue.
A quick check is to run the same application in OpenVINO demos.
Mark

Dear @mliu2020
I've already run the OpenVINO example successfilly.

@sonln5 ,
Sorry for the late response, I have checked with dev team.
Here is the analysis from dev team:
The Gaze Estimation demo is more complicated than our current design. Because it requires to calculate eye regions and pass separately left and right eye images according to gaze-estimation-adas-0002 model inputs. We don’t support such use case right now, so this pipeline won’t work.
The other requirement is, gaze-estimation-adas-0002 model has three inputs, we don’t know which one is for what data so application needs to provide ‘model-proc’ file with description of these input layouts (format, precision, etc.) as expected. But since current function doesn't support such many inputs, the pipeline still doesn't work even if model-proc file is provided.
Mark Liu

Hi @sonln5,
Do you have any feedback to our answers? Let me know if you want this to be a feature request.
Or if you don't have further questions, I will close it.
Mark

Hi @sonln5 ,
Let me close this for now and feel free to open new issue.
Mark


Anonymous user can't download resource bag or files for public resources

Throws error

+1

This has been resolved.


Refactor layout window

Refactoring of the layout engine.
This should allow a BufferControl to be at least 100x larger. (Editing a buffer with about 200,000 lines works fine now.)
TODO:

scroll offsets when line wrapping is on. (+ maybe key bindings.)
cleanup WindowRenderInfo
Test wide character (Asian) input

Merged in other commit.


New boarding protocol

This PR adds the reverse boarding protocol letting to generate a static onboarding address. Once the fund are confirmed on the address, the user will co-sign it with the ASP while claiming the utxo in a round.
TL;DR

add REVERSE_BOARDING_EXIT_DELAY config parameter.
add ReverseBoardingAddress RPC returning a taproot address Alice & ASP or Alice after x.
allow registering a "reverse boarding utxo" in RegisterPayment. Expect the utxo to be signed in FinalizePayment via "signedRoundTx" field.
allow a Round to be finalized without forfeits transactions.
make the connector output optional.
update CLI and sdk.

please @altafan @tiero @sekulicd @bordalix  review
it closes #237

Remember toi update the PR description, so its useful for the future


Move controller constants into correct files

This has been a pretty major source of rebase pain - let's move these constants into the files where they're actually used.

I'm fine with moving these, just curious how this alleviates rebase pain? Just because the single file gets touched all the time, or ??

Yeah - i routinely hit merge conflicts because this const block has all the constants, so if i change one for broker i will hit a conflict if someone else changed one for binding

LGTM.


Trouble with automated build-all.py on Linux vagrant VM with Jenkins

The Jenkins build using the Linux vagrant VM dies trying to build docs on OpenMM:
gmake[4]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
gmake[4]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
/home/vagrant/miniconda/conda-bld/work/openmm-6.2/docs-source/usersguide/header.rst:: WARNING: document isn't included in any toctree
gmake[5]: *** [OpenMMDeveloperGuide.pdf] Error 1
gmake[4]: *** [latexpdf] Error 2
make[3]: *** [sphinx-docs/developerguide/latex/OpenMMDeveloperGuide.pdf] Error 2
make[3]: *** Waiting for unfinished jobs....
gmake[5]: *** [OpenMMUsersGuide.pdf] Error 1
gmake[4]: *** [latexpdf] Error 2
make[3]: *** [sphinx-docs/userguide/latex/OpenMMUsersGuide.pdf] Error 2
make[2]: *** [docs-source/CMakeFiles/sphinxpdf.dir/all] Error 2
make[1]: *** [docs-source/CMakeFiles/sphinxpdf.dir/rule] Error 2
make: *** [sphinxpdf] Error 2

I'm wondering if some prereqs for building the docs are missing here.

Here's another issue that I'm having: https://github.com/conda/conda-build/issues/289
Either I'm doing something stupid, or the conda SAT solver is leaking "irrelevant" data between channels / environments.

Ugh, I'm running into more sphinx trouble:
! LaTeX Error: File `xstring.sty' not found.

Looks like that was due to an incomplete texlive installation.  Trying to fix by a second attempt.
I think we're really going to need to use your provisioning script to package up and locally store a new vagrant box for speed, then reprovision this with a quick conda update each time we build

After fixing the texlive installation, we have great success!
https://jenkins.choderalab.org/job/conda-omnia-release-linux-vagrant/11/console
Here's the complete list of binstar packages for osx-64 and linux-64:
https://binstar.org/organization/omnia/dashboard/channels/jenkins

Here are the remaining issues I noted:

cvxpy with python 2.7 cannot link liblapack because it is not present on this vagrant VM.  Perhaps the lapack dependency is missing?:

BUILD START: cvxpy-0.2.15-np18py27_0
...
building 'base' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linux-x86_64-2.7/src/C
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/vagrant/miniconda/envs/_build/include/python2.7 -c src/C/base.c -o build/temp.linux-x86_64-2.7/src/C/base.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/vagrant/miniconda/envs/_build/include/python2.7 -c src/C/dense.c -o build/temp.linux-x86_64-2.7/src/C/dense.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/vagrant/miniconda/envs/_build/include/python2.7 -c src/C/sparse.c -o build/temp.linux-x86_64-2.7/src/C/sparse.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/src/C/base.o build/temp.linux-x86_64-2.7/src/C/dense.o build/temp.linux-x86_64-2.7/src/C/sparse.o -L/usr/lib -L/home/vagrant/miniconda/envs/_build/lib -lm -llapack -lblas -lpython2.7 -o build/lib.linux-x86_64-2.7/cvxopt/base.so
/usr/bin/ld: cannot find -llapack
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
...

@rmcgibbo has suggested we just automatically build packages (and dependencies) for the omnia 1.0 release, so this will be excluded from that once I get that working.

The ecos tests failed for Python 3.x:

TEST START: ecos-1.0.5-py33_0
Fetching package metadata: ...
Solving package specifications: ...............===== testing package: ecos-1.0.5-py33_0 =====
import: u'ecos'
Traceback (most recent call last):
  File "/home/vagrant/miniconda/conda-bld/test-tmp_dir/run_test.py", line 25, in <module>
    import ecos
  File "/home/vagrant/miniconda/envs/_test/lib/python3.3/site-packages/ecos.py", line 1, in <module>
    import _ecos
ImportError: /home/vagrant/miniconda/envs/_test/lib/python3.3/site-packages/_ecos.cpython-33m.so: undefined symbol: X

This might also be excluded by just building primary packages for omnia 1.0.

Same checkout problems with pyhmc as with the osx platform:

BUILD START: pyhmc-0.1.1-np18py27_0
Fetching package metadata: ...
Solving package specifications: .Initialized empty Git repository in /home/vagrant/miniconda/conda-bld/git_cache/rmcgibbo_pyhmc.git/
Host key verification failed.

Again, this won't be included in omnia 1.0, so no big deal here.

pymbar is not Python 3.x compatible (we already know this)

So it looks like we're in pretty good shape!
@kyleabeauchamp : This may mean we want to switch gears away from your manual building of packages.  Perhaps you could test out the jenkins channel?

Yeah, at this point it sounds like we can use either approach now.
Do you know why there's no py33 and py34 builds of openmm?

Good catch.
Looked through the console logs:
BUILD START: openmm-6.2-py33_0
Fetching package metadata: ...
Solving package specifications: ..
Error: Unsatisfiable package specifications.
Generating hint:
 |                                                                       |   0%
[1/1                 ] |#################################################| 100%
[1/1                 ] |                                                 |   0%
[1/5                 ] |#########                                        |  20%
[2/5                 ] |###################                              |  40%
[3/5                 ] |#############################                    |  60%
[4/5                 ] |#######################################          |  80%
[5/5                 ] |#################################################| 100%
[      COMPLETE      ] |#################################################| 100%

Hint: the following combinations of packages create a conflict with the
remaining packages:
  - sphinxcontrib-bibtex
  - python 3.3*
BUILD START: openmm-6.2-py33_0
Fetching package metadata: ...
Solving package specifications: ..
Error: Unsatisfiable package specifications.
Generating hint:
 |                                                                       |   0%
[1/1                 ] |#################################################| 100%
[1/1                 ] |                                                 |   0%
[1/5                 ] |#########                                        |  20%
[2/5                 ] |###################                              |  40%
[3/5                 ] |#############################                    |  60%
[4/5                 ] |#######################################          |  80%
[5/5                 ] |#################################################| 100%
[      COMPLETE      ] |#################################################| 100%

Hint: the following combinations of packages create a conflict with the
remaining packages:
  - sphinxcontrib-bibtex
  - python 3.3*
BUILD START: openmm-6.2-py34_0
Fetching package metadata: ...
Solving package specifications: ..
Error: Unsatisfiable package specifications.
Generating hint:
 |                                                                       |   0%
[1/1                 ] |#################################################| 100%
[1/1                 ] |                                                 |   0%
[1/5                 ] |#########                                        |  20%
[2/5                 ] |###################                              |  40%
[3/5                 ] |#############################                    |  60%
[4/5                 ] |#######################################          |  80%
[5/5                 ] |#################################################| 100%
[      COMPLETE      ] |#################################################| 100%

Hint: the following combinations of packages create a conflict with the
remaining packages:
  - sphinxcontrib-bibtex
  - python 3.4*
BUILD START: openmm-6.2-py34_0
Fetching package metadata: ...
Solving package specifications: ..
Error: Unsatisfiable package specifications.
Generating hint:
 |                                                                       |   0%
[1/1                 ] |#################################################| 100%
[1/1                 ] |                                                 |   0%
[1/5                 ] |#########                                        |  20%
[2/5                 ] |###################                              |  40%
[3/5                 ] |#############################                    |  60%
[4/5                 ] |#######################################          |  80%
[5/5                 ] |#################################################| 100%
[      COMPLETE      ] |#################################################| 100%

Hint: the following combinations of packages create a conflict with the
remaining packages:
  - sphinxcontrib-bibtex
  - python 3.4*

Is this the same issue you were running into?

Could this be because we're just building packages in arbitrary order?  Perhaps there's a build order that doesn't run into this issue?  Or should packages for each python version be built in a separate VM?

This does like similar to the issue I've observed.  Hopefully we'll get some feedback from continuum today.


Remind users to be kind when commenting

Minor feature, similar in spirit to netiquette and the now defunct rgh-sponsor-button.
For now I made it a "private" feature because it's innocuous and "bug-free"
Before

After

I'll roll this into netiquette actually, the description still matches:

Adds unobtrusive netiquette reminders.

How do I disable it?

@doc-sheet I came here looking for the same thing.
You can toggle netiquette off in the extensions options:

To give some context, I actually love kindness and compassion. I'm an avid fan of meditation and have spent many hours doing nothing but reorient my mind towards loving kindness 💗. So why in the world would I want to disable this?! For me, getting reminded to "be kind" feels a little uncomfortable unless I am being unkind. By default, I try to be kind! No doubt, not what the author intended but nevertheless how I feel. If the comment makes you smile instead, or revise something unkind you wrote, great, keep it on! Whether this is a good feature in general, no idea. Depends on if your user-base acts more kind because of it or less so.

You can toggle netiquette off

I'm ok with netiquette it's quite useful. I just don't like this particular feature.

I want to thank whoever thought of this (@fregante? 💖). "Commenting" and "being kind" are usually found far from each other. I believe what is best in humanity lies in the intersection and it's easy to forget, especially in challenging times. Thanks for the reminded. Saw this and really moved me, and made my day.
Thanks 💖

Yes, I saw that today also and it made a really good impression -- THANKS!!!

If you find "Be kind" to be passive aggressive, you might want to think about why you see it that way. It's not a reprimand, it's not an order. It's an invitation to be mindful, in a similar spirit to "Be safe" and "Take care"


Update README.md

adding e to yq command, otherwise it won't work

pinging @MikeEdgar because I can not add you as reviewer

What version of yq are you using? e is assumed as of 4.18.1: https://mikefarah.gitbook.io/yq/#notice-for-v4.x-versions-prior-to-4.18.1

you are right, with the latest version,4.25.1, it works


Group resource on windows is reporting inconsistent member changes

The group resource used on a windows machine appears to be looking at a different id to gather initial state, which makes accurate before/after diffing of changed users challenging.
{
  "chef_server_fqdn": "manage.blah",
  "end_time": "2015-04-30T23:29:41Z",
  "id": "8532ef19-4edb-455f-b5ec-34809d6845b3",
  "message_type": "run_converge",
  "message_version": "0.1.0",
  "node_name": "opscode1",
  "organization_name": "opscode",
  "run_id": "d110a65d-6063-4844-976c-9d25bd9e3377",
  "run_list": [
    "recipe[wingroup]"
  ],
  "start_time": "2015-04-30T23:29:39Z",
  "status": "success",
  "total_resource_count": 10,
  "resources": [
    {
      "cookbook_name": "wingroup",
      "cookbook_version": "0.1.3",
      "delta": "",
      "duration": "7",
      "final_state": {
        "members": [
          "Administrator",
          "random"
        ]
      },
      "initial_state": {
        "members": [
          "S-1-5-21-294568438-2080408112-401244387-500",
          "S-1-5-21-294568438-2080408112-401244387-1002",
          "S-1-5-21-294568438-2080408112-401244387-501"
        ]
      },
      "resource_id": "Administrators",
      "resource_name": "Administrators",
      "resource_result": "modify",
      "resource_type": "group"
    }
  ],
  "updated_resource_count": 1
}

@jaym, does this look familiar? I'm guessing this is because of the use of SIDs that I added.

Yes, this is a reporting issue, most likely caused by my changes to use sids internally.

This is a fairly easy fix:
diff --git i/lib/chef/provider/group/windows.rb w/lib/chef/provider/group/windows.rb
index 46d8afc..2770e09 100644
--- i/lib/chef/provider/group/windows.rb
+++ w/lib/chef/provider/group/windows.rb
@@ -39,7 +39,9 @@ class Chef

           members = nil
           begin
-            members = @net_group.local_get_members
+            members = @net_group.local_get_members.map do |member|
+              local_group_name_to_sid(member)
+            end
           rescue => e
             @group_exists = false
             Chef::Log.debug("#{@new_resource} group does not exist")
@@ -80,8 +82,7 @@ class Chef
         end

         def has_current_group_member?(member)
-          member_sid = local_group_name_to_sid(member)
-          @current_resource.members.include?(member_sid)
+          @current_resource.members.any?{|m| m.casecmp(member)==0}
         end

         def remove_group

that diff is so wrong :(

Closing this due to age. Please repro against the latest Chef Client if you feel this is still an issue.