File XXXX/autohic_results/3/XXXX.final.hic cannot be opened for reading

Hello,
I am using AutoHiC through docker.
I met an issue that looks like the one desribed in #5
[2024-03-26  16:04:00] hic_adv_model.py -> __init__ line:40 [INFO] : Create genome folder: /home/autohic/<PATH>/result/AutoHiC/autohic_results/3/png

File /home/autohic/<PATH>/result/AutoHiC/autohic_results/3/Pfai_hap1.final.hic cannot be opened for reading

However, in this case it was resolved by writing the fasta contig file in 80bp line, and mine is already in that format. I can't find any other difference between my format and that of the example dataset.
the command was:
nohup python3.9 autohic.py -c /home/autohic/cfg-autohic_Pfai.txt > /home/autohic/log4.txt 2>&1

Here is the log file and config file
cfg-autohic_Pfai.txt
log4.txt
I thank you in advance for any suggestion regarding the origin of the issue.
Best regards

If you've used AutoHiC before, please make sure to delete any previously generated results and run the program again. Also, be sure to review the logs in the results folder to address any potential issues.

Hello,
Many thanks for your advice, I will follow it from now on.
I rerun the same config file, after deleting completely the "results" folder and anything not the fastq files in the "rawdata" folder.
The resulting log looks very similar to me except for the two lines you pointed at.
Is there anything I forgot to delete?
Here are the 4 logs:
log5.txt
3d-dna.log
bwa_index.log
juicer.log
I notice that the last written (3d-dna) ends like this, does that means that this step is completed?
Analyzing the merged assembly
...trimming N overhangs
...adding gaps

My inputs look like this:
$ ls -lh rawdata/fastq/
total 7,2G
-rw-r--r-- 1 mcariou mcariou 3,5G mars  27 10:13 PfaiPoolC1B1_R1.fastq.gz
-rw-r--r-- 1 mcariou mcariou 3,7G mars  27 10:13 PfaiPoolC1B1_R2.fastq.gz

These were renamed to match the recommended naming: X_R1.fastq.gz and X_R2.fastq.gz
$ ls -lh references/
-rw-r--r-- 1 root    root    149M mars  22 16:41 Pfai_hap1.fasta
$ head references/Pfai_hap1.fasta
>h1tg000001l
GTACAATATTTGAGCTGAGACGAGCTGGCATCAAACGGAATCCAAATGTTCTTAGTACCCGCGTGTAGAGCTCGTCGAGC
TGAACAAACAAGTAGCAAACTTAACCGAATTGCAGGCCGCTTGCAGTCGTCCCAACTCAAACGCGCTCGGTTACAGTCAG
TTGTACCATATTTTCGATCTGAAGAGCGGCATCAAACGAATCCAAATGTTCTTAGTACCCGCGTTAGAGCTCGTCGAGCT
GAACAAACCAGTAACAAATTTAACCGAATTGCATGGGATCCCAGCTCGTTCCAACTCAAGCGTGCTCTCTTTTACAGTCA
GTTGTACAATATTTGAGCTGAGACGAGCTGGCATCAAACGGGATCCAAATGTTCTTAGTACCCGCGTGTAGAGCTCGTCG
AGCTGAACAAACAAATAGCAAATTTAACCGAATTGCATGGGATCCCAGCTCGTCCCAACTCAAGCGTGCTCTCTTTTACA

The genome contig file is a fasta with 80bp lines.
Many thanks in advance for your advices,
Best regards

Based on your current log, your operation appears to be correct. AutoHiC has detected and corrected an error, but there seems to be an issue when generating the fasta file.
Do you have /home/autohic/SPECIES/result/AutoHiC/logs/epoch_3.log file?
I suspect there may be an issue with your cfg-autohic.txt file. Please upload it so that I can investigate further. Thank you.

Thank you very much!
No, there are only 3 files in the logs:
/home/autohic/SPECIES/result/AutoHiC/logs/3d-dna.log,  /home/autohic/SPECIES/result/AutoHiC/logs/bwa_index.log  and /home/autohic/SPECIES/result/AutoHiC/logs/juicer.log.
Here is my config file:
cfg-autohic_Pfai.txt

Perhaps you should verify the permissions of the 3D-DNA file and check for the presence of a run-asm-pipeline-post-review.sh file.
Which version of AutoHiC are you using?

I recommend using version 1.3.1. I added an INFO section to assist with troubleshooting your issue.

I am sorry, what is an INFO section?
Regarding the permissions of the 3d-dna file, here are the files I downloaded from google drive (https://drive.google.com/drive/folders/1T9twnImt1CK_NrB9SBb-dg4dBENyhPTN), and put where I mounted the docker.

Is that alright?
Where would I find the run-asm-pipeline-post-review.sh file? Should it be in the same folder autohic.py is? In this case I don't have it.
Regarding the version, how can I check that? (not python3.9 autohic.py --version) I pulled the docker about a week ago (20/03/2024), so I supposed it might be the latest version.
Thanks again

If you are in Docker, please git clone again and then run AutoHiC. As usual, the previous results file needs to be deleted.

run-asm-pipeline-post-review.sh should in your /home/autohic/3d-dna/

Hello,

run-asm-pipeline-post-review.sh should in your /home/autohic/3d-dna/

Ah yes, it is, and the permission to run it seems ok.

If you are in Docker, please git clone again and then run AutoHiC. As usual, the previous results file needs to be deleted.

Thanks I cloned it and restarted the calcul, there are small differences in the logs, but the final stage seems similar:
log6.txt
3d-dna.log
bwa_index.log
juicer.log

Great, I should know what your problem is now. In your log file:
[2024-03-29  17:30:16] autohic.py -> whole line:241 [INFO] : Run command : bash /home/autohic/3d-dna ##### !!!!!!!!!!!!!!!/run-asm-pipeline-post-review.sh -r /home/autohic/SPECIES/result/AutoHiC/autohic_results/3/test.assembly /home/autohic/SPECIES/references/Pfai_hap1.fasta /home/autohic/SPECIES/result/AutoHiC/hic_results/juicer/Pfai_hap1/aligned/merged_nodups.txt > /home/autohic/SPECIES/result/AutoHiC/logs/epoch_3.log 2>&1
In your cfg-autohic_Pfai.txt file, there should be a problem with TD_DNA_DIR.
The file（cfg-autohic_Pfai.txt） should be edited to replace the downloaded file, but no additional lines should be added. Only modify the paths to the software and data.

TD_DNA_DIR is your 3d-dna install path

Oh right, it works!
Thank you very much! I thought I just added a commentary for lines I wasn't sure about in the config file. Never thought it would end up in a path.
Thank you very much again for the help and patience in troubleshooting!


add watermark on this package

hello and Thank you, because created this tool :)
Please add watermark feature to upload images and Set watermark path into config file .
i edite UploadController.php and add this Code :
$watermark = public_path().'/watermark.png';                 if(file_exists($watermark))                 {                     Image::make($file->getRealPath())                          ->orientate()                          ->insert(public_path().'/watermark.png', 'bottom-right', 10, 10)                          ->save($new_file_path, 90);                 }                 else                 {                     Image::make($file->getRealPath())                          ->orientate()                          ->save($new_file_path, 90);                 }
but if update your package , my code don't work .
thanks :)

Thank you @m-alinasab . At this moment, you can move you code to a event listener, which listens to Unisharp\Laravelfilemanager\Events\ImageWasUploaded event. See available events from the events document.


Community Exchange Introduction/Tracking:

👋 Hi @rawheel ,
I am your GitHub mentor for the GitHub Education, Community Exchange (CX) project. I'll be collaborating with you on preparing your repo for CX.
You mentioned in your submission that you wanted to submit a Learn + Collaborate repo. This means that you would like to teach students, step by step, how to build this project as well as invite other students to collaborate and add features to this repo. I will generate issues, which will provide guidance on how to prepare your repo for a Learn + Collaborate CX submission on June 1, 2022.
This issue will serve as a tracking issue to track all issues related to CX. I recommend creating a new branch for every issue and opening a pull request to track changes so we can effectively collaborate with each other and merge changes when you and I feel like those changes are ready to be merged on your primary branch.
If you have any questions or concerns, please feel free to leave a comment on this issue or any of the other issues that are generated.
I look forward to working with you :octocat:
CX Issues

[ ] https://github.com/rawheel/MyUnfollowers-App/issues/5
[ ] https://github.com/rawheel/MyUnfollowers-App/issues/6
[ ] https://github.com/rawheel/MyUnfollowers-App/issues/7
[ ] https://github.com/rawheel/MyUnfollowers-App/issues/8
[ ] https://github.com/rawheel/MyUnfollowers-App/issues/9
[ ] https://github.com/rawheel/MyUnfollowers-App/issues/10
[ ] https://github.com/rawheel/MyUnfollowers-App/issues/11

Hey @ericdrosado, Hoping you're doing great.
I just got free from my midterms and sure I will consider these CX Issues and act accordingly. Excited and looking forward to working with you too. :)

I hope midterms went well @rawheel . Let me know if there is anything I can help with.

Hey @ericdrosado, midterms went great thanks for asking, I've been busy with other deadlines related to my final year project.
I've worked on a few issues you can check them and let me know if there are any suggestions. I'll be working on the left ones and can you guide me is there any form I'll have to fill to submit this repo on 1st June?

On June 1st I'll send a link to CX beta where you can upload your repo.

sure, I've my project presentations today. will be working on it once I get back home.

@rawheel I'll be delaying the invitation to later today or Friday at the latest. I just wanted to let you know.
I hope your presentations went well!

@ericdrosado Ahh thanks very much man, I'm working on it will update you very soon.

@rawheel you are welcome to change your submission type to a Collaborate repo versus a Collaborate + Learn repo if it makes submission easier for you given your busy schedule.
I am going to send you the invitation since you have met all the requirements for a Collaborate repo.

@ericdrosado Sure, Thanks.


Add support for startOf(multiple, "interval") or startOf(Duration) to get a beginning of the interval as multiple units #5831

latest postgres (14+) above has a SQL function called date_bin can for example,
date_bin('15 minutes', timestamp)

to get beginning to a multiple of the interval 15 minutes
9.9.3. date_bin
but some applications still running older Postgres versions, or other SQL variants, want to simulate this feature from application layer with momentjs:
.startOf(15, "minute")
.startOf(moment.duration(2, 'd'))    <= Duration

convert object to unix ms timestamp and duration to ms, then startOf = function (mom, dur) { return moment(+mom - (+mom % dur.asMilliseconds())) }


Multi-part support

Allow some way of multipart support to allow file uploading

Duplicate of #586

Thanks @stubailo will look into it


Disable comments that show what template is rendered

Why was this change made?
Because this breaks dropzone in development
Fixes #1506
How was this change tested?
Which documentation and/or configurations were updated?

yay!


Null Object Refrence error

Describe your bug here.
Every time i put custom dialogue character or i put new dialogue in the song and play it it gets me like message it says Null Object Refrences.
Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
No i didn't change anything in the scripts
And here is the evidence for my error
https://user-images.githubusercontent.com/94835099/142845323-cbe062d0-a161-40bb-be5a-7110a2111e43.mp4

And Here is the evidence that i have for this error

Starting ideas:
Maybe the image is not a png? You also need an xml.
Images are supposed to be located at: your fnf folder/mods/images/dialogue
Name both with the same name.
(Also, you should renember to put the dialogue character json on your fnf folder/mods/images/dialogue if you fix the issue)

1- My image is png
2- My image have a xml
3- They are the same name
4- i will try this
thx for your comment!

OMG ITS ACTULLY WORKING! THANK YOU SO MUCH!

Then close your issue omfg


video don't stop on safari and chrome - mobile if you use only the middle play button

Expected behaviour
when I click the video (not on the control bars) the video starts and stops.
Actual behaviour
when I click the video (not on the control bars) the video starts but won't stop
Environment
This is happening here as well https://plyr.io/

Browser: Safari, Chrome
Operating System: iOS
mobile only

Console errors (if any)
GET https://sfiles-a.akamaihd.net/http_only/video/iPhoneXAdaptstoYourFaceApple.mp4 net::ERR_NAME_NOT_RESOLVED
tpc.googlesyndication.com/pagead/js/loader20.html?https://player.aniview.com/script/6.1/AVmanager.js%3FAV_PUBLISHERID=58c25bb0073ef448b1087ad6:1 Uncaught (in promise) MediaError {code: 4, message: 'MEDIA_ELEMENT_ERROR: Format error'}
Link to where the bug is happening
https://plyr.io/

we have the same issue on ios mobliles only
is there any solutions

Same issue


Add set rows for BaseAlertSearchQuery

Pull request checklist
Please check if your PR fulfills the following requirements:

[x] Docs have been reviewed and added / updated if needed (for bug fixes / features)
[x] Tests have been added that prove the fix is effective or that the feature works.
[x] New and existing tests pass locally with the changes.
[x] Code follows the style guidelines of this project (PEP8, clean code, linter).
[x] A self-review of the code has been done.

What is the ticket or issue number?
CBAPI-4676
Pull Request Description

Add set rows for BaseAlertSearchQuery
Does this introduce a breaking change?

[ ] Yes
[x] No

How Has This Been Tested?

Unit and manual

Looks good to me. Noticed this the other day when I looked at testing.


[Discuss]About introducing the lightGBM and post-processing

Hi there,
I am really thankful for your sharing at CrowdAI.
I myself is now in the industry of Satellite imagery transition. And our team has studied the ML solution of this for more than a year now. Our unet solution for our clients can also reach 0.93+ (IoU >= 0.5) result at present with some morphology post-processing (not for this CROWDAI competiton, but for our own business project with our own datasets).
And so far, we are exploring a way to improve the quality of the outputs. Say, one of most significant differece between masks produced by CNN and Man-made labels is the "Straightness". For example, ai masks usually have round corners and curve contour while man-made labels usually are standard rectangles with 90 degree coner and straght outlines.
We are now searching for solution for this problem. The directions are focus on post-processing and model ensembling. Same as yours, we also introduced CRF post-processing in our solution, however, the quality of the CRF-enabled outputs varies a lot. Some of them are extremely straight and perfectly match our GT, while some of them full of noises.
So, we recently started the research about result ensemble tech. One of our current idea is that we use lightgbm on top of serveral of our differect models and the CRF-enabled result. Since while "CRF-enabled" results have more noise and error-classification on pixels, it also represent a more "stragiht" style on the masks. So maybe, the ensemble of CRF and our models can help.
As i noticed that you guys mentioned "lightgbm-based" post-processing, actually we want hear more about your ideas about how to utilize lightgbm on this problem so that maybe we could work together to solve this problem?
Regards
Ziyi

Hi @ziyigogogo I am really happy that you noticed our work!
Quick brag/disclaimer: it turns out that with different post-processing params (erode:1 dilate:2) + TTA + score heuristics we were able to get 0.9428 precision 0.9542 recall. Without heuristics (that we want substitute with lgbm) we get 0.936 precision.
In our current solution we are not using CRF since it was very slow (do you know of any good/fast implementation). What is the boost from CRF that you are getting?
Now on the subject of using lgbm, our procedure is:

apply thresholds to the unet output (after TTA) from 0.05 all the way up to 0.95 producing 19 binary images.
label objects on those binary images
for each object extract features (based on shape and probability values in the masked region)
train lgbm that predicts IOU for each of those objects with the ground truth
predict IOU (via lgbm) for each object extracted for each threshold and based on that information apply non max suppresion with set threshold (chosen via CV procedure) to get the best objects (and get the scores from the masked region for those objects)
(6. apply weights based on probability threshold)

Currently lgbm step is done with heuristics but we should have it very soon.
What is important is that our approach doesn't (unfortunately) deal with the round vs rectangle problem.
That being said my idea to adjust our approach to deal with that would be the following:

after step 2. apply a set of morphological transformations with different selem parameters that make corners/edges stronger and run it through lgbm predicting IOU
adjust/add loss to lgbm that penalizes objects that are not cornery/edgy
train a network that predicts IOU minimizing mse and some auxilary loss that penalizes corner regions more ( you can use our distance weighted cross entropy loss implementation but simply have "corner mask"). Input to this network would simply be a one channel with masked probabilities that belong to the object region (potentially cropped and resized to make training more efficient)
train a network that takes probabilty map per masked region and produces binary map wich is minimized with soft dice + corner/edge weighted cross entropy.

I will get back to this as soon as we have lgbm implementation open for you to see and discuss further.

Hi,@jakubczakon,
Our team had a little break for the past 3 days, so sorry for the late response.
Thanks a lot for your detail procedure and idea, I will discuss this post with my teammates today and maybe do some quick implementation based on this. Once we draw any progress, i will post back.
As your question "do you know of any good/fast implementation", since I saw your CRF related code here line284-302. I believe we are using the same package(pydensecrf) which maybe the only open source package available now. So, the answer is sorry, we currently dont have a faster crf implementation.
Another question "What is the boost from CRF that you are getting", I think i have described this above, maybe you did not get me due to my poor standard of English，haha! Let me directly use a image, , as you can see, for this very example, by apply crf, we got a more "rectangle" like mask. But still a lot to go since the quality of crf post-processing varies a lot(it only works good  on some images). That's why our team wants to utilize some tree-like network(maybe lgbm) to pick a better result.
Finally, looking forward for your up-coming release. Thanks a lot!
Regards

@ziyigogogo merged lgbm (and random forest) second level models to master with #152


RDS Create DBCluster From Snapshot

Is your feature request related to a problem?
More or less. The ACK RDS controller can now create a DBInstance from a snapshot, but it still cannot create a DBCluster from a cluster snapshot. We were looking forward to not needing to using AdoptedResource for this.
Describe the solution you'd like
Just like RDS Create DBInstance From Snapshot, have a dbSnapshotIdentifier or maybe dbClusterSnapshotIdentifier property in the DBCluster CRD that takes the ARN of a cluster snapshot and calls RestoreDBClusterFromSnapshot.

Since the above code is merged, you can try latest code with SnapshotIdentifier. I will also write a tutorial for it. Note: updating the SnapshotIdentifier after it's set won't have effect for now which is a limitation currently

I'm adding the tutorial here https://github.com/aws-controllers-k8s/community/pull/1396

the tutorial is also merged, going to close this issue. feel free to reopen if any issue is found


"Expression produces a union type that is too complex to represent" when using Spacer

Current Behavior

Expected Behavior
No response
Tamagui Version
1.78.0 and 1.79.1 (so I would assume 1.78.0+)

Platform (Web, iOS, Android)
Web

Reproduction
https://codesandbox.io/p/github/ArekBartnik/tamagui-button-outlined-problem (don't look at the name, I've reused reproduction from another reported bug :))

The error is visible in `pages/index.tsx` file.

System Info
macOS Sonoma

I'm having the same issue.

Same here

It's not confined to web BTW.  It only seems to occur with the <Spacer />


Remove remaining use of setup-cloud@v0 action

tests:
https://github.com/apache/beam/actions/runs/9961872013/job/27524386990
https://github.com/apache/beam/actions/runs/9961885669/job/27524433237
Please add a meaningful description for your change here

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

R: @ahmedabu98


Use sparse checkout in release, ci and live tests

This PR updates the majority of release, ci and live test pipeline jobs to use our sparse checkout template. This shaves 2-4 minutes off each job, by replacing a full git clone with one that: only grabs the root of the tree at the relevant commit, and only grabs the relevant files (service directory, all xml files, all markdown files, and in FromSource test cases, all directories of all source dependencies). For some projects with long test runs, this will not be noticeable (e.g. storage), for other projects, this amounts to almost 50% of the test run time (e.g. appconfiguration). For release, this update will remove 12-15 minutes of total time, since a lot of the release steps (pushing tags, packages, docs) have a lot of waiting time in between due to checkouts.

/azp run java - appconfiguration - ci

/azp run java - storage - ci

/azp run java - storage

/azp run java - appconfiguration

/azp run java - appconfiguration - tests

/azp run java - eventgrid - tests

/azp run java - eventgrid

/azp run java - eventhubs

/azp run java - eventhubs - tests

/azp run java - eventgrid

/azp run java - eventgrid - tests

/azp run java - eventgrid

/azp run java - eventgrid

/azp run java - eventgrid

/azp run java - eventgrid

/azp run java - appconfiguration

/azp run java - appconfiguration - tests

/azp run java - eventgrid

/azp run java - core - ci


Great work

This is an outstanding project and thank you for your hard work.
I have been looking for a replacement for Yfinancials for some time as Yahoo has poor data quality. I happen to rely on Investing too.
And I particularly like the symbol search feature.
Excellent work.

Thanks a lot @lefig! Stay tuned since later this week I will be releasing investpy's new version which includes new features and useful functionalities that you may like.


James.Web.* namespace

Let's create a new James.Web.* namespace for all things related to web.

Perhaps create a new package is better...

I'll create a new package/project for Web related stuff.


Fix unit of Real output signal p_S

Fix unit of Real output signal p_S
Improve support for tools that not not feature unit propagation by explicitly providing units for Real outputs
See #2000

@rfranke What do you think about the proposed unit changes?

@rfranke Now, that one month passed, what do you think about the proposed unit changes?


error: no matching function for call to ‘v8::Value::ToBoolean(v8::Localv8::Context)’

NPM version (npm -v): 6.14.12
Node version (node -v): v14.16.1
Node Process (node -p process.versions): {
node: '14.16.1',
v8: '8.4.371.19-node.18',
uv: '1.40.0',
zlib: '1.2.11',
brotli: '1.0.9',
ares: '1.16.1',
modules: '83',
nghttp2: '1.41.0',
napi: '7',
llhttp: '2.1.3',
openssl: '1.1.1k',
cldr: '37.0',
icu: '67.1',
tz: '2020a',
unicode: '13.0'
}
Node Platform (node -p process.platform): linux
Node architecture (node -p process.arch): x64
node-sass version (node -p "require('node-sass').info"):
node-sass	5.0.0	(Wrapper)	[JavaScript]
libsass  	3.5.5	(Sass Compiler)	[C/C++]
npm node-sass versions (npm ls node-sass<EMAIL_ADDRESS>

When I tried to install node-sass using npm install node-sass I got this error:
In file included from ../../../../../nan/nan_converters.h:67:0,
                 from ../../../../../nan/nan.h:202,
                 from ../src/binding.cpp:1:
../../../../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
../../../../../nan/nan_converters_43_inl.h:18:51: error: no matching function for call to ‘v8::Value::ToBoolean(v8::Local<v8::Context>)’
       val->To ## TYPE(isolate->GetCurrentContext())                            \
                                                   ^
../../../../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
 X(Boolean)
 ^
In file included from /home/luispatr/.node-gyp/14.16.1/include/node/node.h:67:0,
                 from ../../../../../nan/nan.h:51,
                 from ../src/binding.cpp:1:
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:2848:18: note: candidate: v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const
   Local<Boolean> ToBoolean(Isolate* isolate) const;
                  ^~~~~~~~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:2848:18: note:   no known conversion for argument 1 from ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
In file included from ../../../../../nan/nan_converters.h:67:0,
                 from ../../../../../nan/nan.h:202,
                 from ../src/binding.cpp:1:
../../../../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
../../../../../nan/nan_converters_43_inl.h:37:57: error: no matching function for call to ‘v8::Value::BooleanValue(v8::Local<v8::Context>)’
   return val->NAME ## Value(isolate->GetCurrentContext());                     \
                                                         ^
../../../../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
 X(bool, Boolean)
 ^
In file included from /home/luispatr/.node-gyp/14.16.1/include/node/node.h:67:0,
                 from ../../../../../nan/nan.h:51,
                 from ../src/binding.cpp:1:
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:2858:8: note: candidate: bool v8::Value::BooleanValue(v8::Isolate*) const
   bool BooleanValue(Isolate* isolate) const;
        ^~~~~~~~~~~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:2858:8: note:   no known conversion for argument 1 from ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
In file included from ../../../../../nan/nan_new.h:189:0,
                 from ../../../../../nan/nan.h:203,
                 from ../src/binding.cpp:1:
../../../../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
../../../../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Object>&)’
                           , obj));
                                ^
In file included from /home/luispatr/.node-gyp/14.16.1/include/node/node.h:67:0,
                 from ../../../../../nan/nan.h:51,
                 from ../src/binding.cpp:1:
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:4445:31: note: candidate: static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)
   static MaybeLocal<Function> New(
                               ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:4445:31: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
In file included from ../../../../../nan/nan_new.h:189:0,
                 from ../../../../../nan/nan.h:203,
                 from ../src/binding.cpp:1:
../../../../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
../../../../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
   return v8::StringObject::New(value).As<v8::StringObject>();
                                     ^
In file included from /home/luispatr/.node-gyp/14.16.1/include/node/node.h:67:0,
                 from ../../../../../nan/nan.h:51,
                 from ../src/binding.cpp:1:
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:5854:23: note: candidate: static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)
   static Local<Value> New(Isolate* isolate, Local<String> value);
                       ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:5854:23: note:   candidate expects 2 arguments, 1 provided
In file included from ../../../../../nan/nan_new.h:189:0,
                 from ../../../../../nan/nan.h:203,
                 from ../src/binding.cpp:1:
../../../../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
   return v8::StringObject::New(value).As<v8::StringObject>();
                                                          ^
../../../../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
   return v8::StringObject::New(value).As<v8::StringObject>();
                                                            ^
In file included from ../src/binding.cpp:1:0:
../../../../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
../../../../../nan/nan.h:1034:53: error: no matching function for call to ‘v8::Value::ToString()’
       v8::Local<v8::String> string = from->ToString();
                                                     ^
In file included from /home/luispatr/.node-gyp/14.16.1/include/node/node.h:67:0,
                 from ../../../../../nan/nan.h:51,
                 from ../src/binding.cpp:1:
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:2810:44: note: candidate: v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const
   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
                                            ^~~~~~~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:2810:44: note:   candidate expects 1 argument, 0 provided
In file included from ../src/binding.cpp:1:0:
../../../../../nan/nan.h:1044:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’
         length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                                                          ^
In file included from /home/luispatr/.node-gyp/14.16.1/include/node/node.h:67:0,
                 from ../../../../../nan/nan.h:51,
                 from ../src/binding.cpp:1:
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3037:7: note: candidate: int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const
   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
       ^~~~~~~~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3037:7: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
In file included from ../src/binding.cpp:1:0:
../../../../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
../../../../../nan/nan.h:1818:64: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, const v8::Local<v8::Value>&)’
     New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
                                                                ^
In file included from /home/luispatr/.node-gyp/14.16.1/include/node/node.h:67:0,
                 from ../../../../../nan/nan.h:51,
                 from ../src/binding.cpp:1:
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                     ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3670:37: note:   candidate expects 3 arguments, 2 provided
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                     ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3673:37: note:   candidate expects 3 arguments, 2 provided
In file included from ../src/binding.cpp:1:0:
../../../../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
../../../../../nan/nan.h:1824:42: error: no matching function for call to ‘v8::Object::Set(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’
     New(persistentHandle)->Set(key, value);
                                          ^
In file included from /home/luispatr/.node-gyp/14.16.1/include/node/node.h:67:0,
                 from ../../../../../nan/nan.h:51,
                 from ../src/binding.cpp:1:
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                     ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3670:37: note:   candidate expects 3 arguments, 2 provided
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                     ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3673:37: note:   candidate expects 3 arguments, 2 provided
In file included from ../src/binding.cpp:1:0:
../../../../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
../../../../../nan/nan.h:1830:44: error: no matching function for call to ‘v8::Object::Set(uint32_t&, const v8::Local<v8::Value>&)’
     New(persistentHandle)->Set(index, value);
                                            ^
In file included from /home/luispatr/.node-gyp/14.16.1/include/node/node.h:67:0,
                 from ../../../../../nan/nan.h:51,
                 from ../src/binding.cpp:1:
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                     ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3670:37: note:   candidate expects 3 arguments, 2 provided
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                     ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3673:37: note:   candidate expects 3 arguments, 2 provided
In file included from ../src/binding.cpp:1:0:
../../../../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
../../../../../nan/nan.h:1836:61: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
         New(persistentHandle)->Get(New(key).ToLocalChecked()));
                                                             ^
In file included from /home/luispatr/.node-gyp/14.16.1/include/node/node.h:67:0,
                 from ../../../../../nan/nan.h:51,
                 from ../src/binding.cpp:1:
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3717:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3717:43: note:   candidate expects 2 arguments, 1 provided
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3720:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3720:43: note:   candidate expects 2 arguments, 1 provided
In file included from ../src/binding.cpp:1:0:
../../../../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
../../../../../nan/nan.h:1842:55: error: no matching function for call to ‘v8::Object::Get(const v8::Local<v8::String>&)’
     return scope.Escape(New(persistentHandle)->Get(key));
                                                       ^
In file included from /home/luispatr/.node-gyp/14.16.1/include/node/node.h:67:0,
                 from ../../../../../nan/nan.h:51,
                 from ../src/binding.cpp:1:
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3717:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3717:43: note:   candidate expects 2 arguments, 1 provided
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3720:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3720:43: note:   candidate expects 2 arguments, 1 provided
In file included from ../src/binding.cpp:1:0:
../../../../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
../../../../../nan/nan.h:1847:57: error: no matching function for call to ‘v8::Object::Get(uint32_t&)’
     return scope.Escape(New(persistentHandle)->Get(index));
                                                         ^
In file included from /home/luispatr/.node-gyp/14.16.1/include/node/node.h:67:0,
                 from ../../../../../nan/nan.h:51,
                 from ../src/binding.cpp:1:
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3717:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3717:43: note:   candidate expects 2 arguments, 1 provided
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3720:43: note: candidate: v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)
   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
                                           ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3720:43: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/c++/7/cassert:44:0,
                 from /home/luispatr/.node-gyp/14.16.1/include/node/node_object_wrap.h:26,
                 from ../../../../../nan/nan.h:53,
                 from ../src/binding.cpp:1:
../../../../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
../../../../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
     assert(persistent().IsNearDeath());
                         ^
In file included from ../../../../../nan/nan.h:2657:0,
                 from ../src/binding.cpp:1:
../../../../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
../../../../../nan/nan_object_wrap.h:67:18: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘MarkIndependent’
     persistent().MarkIndependent();
                  ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/7/cassert:44:0,
                 from /home/luispatr/.node-gyp/14.16.1/include/node/node_object_wrap.h:26,
                 from ../../../../../nan/nan.h:53,
                 from ../src/binding.cpp:1:
../../../../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
../../../../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
     assert(wrap->handle_.IsNearDeath());
                          ^
In file included from ../src/binding.cpp:1:0:
../../../../../nan/nan.h: In instantiation of ‘void Nan::imp::SetMethodAux(T, v8::Local<v8::String>, v8::Local<v8::FunctionTemplate>, ...) [with T = v8::Local<v8::Object>]’:
../../../../../nan/nan.h:2353:20:   required from ‘void Nan::SetMethod(HandleType<T>, const char*, Nan::FunctionCallback) [with T = v8::Object; HandleType = v8::Local; Nan::FunctionCallback = void (*)(const Nan::FunctionCallbackInfo<v8::Value>&)]’
../src/binding.cpp:350:42:   required from here
../../../../../nan/nan.h:2337:3: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>&, v8::Local<v8::Function>)’
   recv->Set(name, GetFunction(tpl).ToLocalChecked());
   ^~~~
In file included from /home/luispatr/.node-gyp/14.16.1/include/node/node.h:67:0,
                 from ../../../../../nan/nan.h:51,
                 from ../src/binding.cpp:1:
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3670:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                     ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3670:37: note:   candidate expects 3 arguments, 2 provided
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3673:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                     ^~~
/home/luispatr/.node-gyp/14.16.1/include/node/v8.h:3673:37: note:   candidate expects 3 arguments, 2 provided
binding.target.mk:131: recipe for target 'Release/obj.target/binding/src/binding.o' failed
make: *** [Release/obj.target/binding/src/binding.o] Error 1
make: Leaving directory '/home/luispatr/Documents/airsonic-ui/node_modules/@angular-devkit/build-angular/node_modules/node-sass/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/luispatr/Documents/airsonic-ui/node_modules/@angular-devkit/build-angular/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Linux 5.4.0-72-generic
gyp ERR! command "/usr/bin/node"<EMAIL_ADDRESS>"rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/luispatr/Documents/airsonic-ui/node_modules/@angular-devkit/build-angular/node_modules/node-sass
gyp ERR! node -v v14.16.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1

Hello!
Try this, after that my Gulp is run.
npm uninstall node-sass
npm cache clear --force
Maybe this help you.

Which linux distribution is this?

Can't reproduce with:
[saper@fedora0 test]$ npm -v
6.14.12
[saper@fedora0 test]$ node -v
v14.16.1
[saper@fedora0 test]$ node -p process.versions
{
  node: '14.16.1',
  v8: '8.4.371.19-node.18',
  uv: '1.40.0',
  zlib: '1.2.11',
  brotli: '1.0.9',
  ares: '1.16.1',
  modules: '83',
  nghttp2: '1.43.0',
  napi: '7',
  llhttp: '2.1.3',
  openssl: '1.1.1k',
  cldr: '37.0',
  icu: '67.1',
  tz: '2019c',
  unicode: '13.0'
}
[saper@fedora0 test]$ uname -r
5.11.14-200.fc33.x86_64

Freshly updated Fedora 33
[saper@fedora0 test]$ npm install<EMAIL_ADDRESS>npm WARN deprecated<EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated<EMAIL_ADDRESS>this library is no longer supported

><EMAIL_ADDRESS>install /home/saper/space/test/node_modules/node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v5.0.0/linux-x64-83_binding.node
Download complete..] - :
Binary saved to /home/saper/space/test/node_modules/node-sass/vendor/linux-x64-83/binding.node
Caching binary to /home/saper/.npm/node-sass/5.0.0/linux-x64-83_binding.node

><EMAIL_ADDRESS>postinstall /home/saper/space/test/node_modules/node-sass
> node scripts/build.js

Binary found at /home/saper/space/test/node_modules/node-sass/vendor/linux-x64-83/binding.node
Testing binary
Binary is fine
npm WARN saveError ENOENT: no such file or directory, open '/home/saper/space/test/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/home/saper/space/test/package.json'
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license field.

+<EMAIL_ADDRESS>added 195 packages from 144 contributors and audited 195 packages in 25.593s

7 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Upgrading from node 15.14.0 to 16.0.0 exposed this error for me also.  To confirm, I tried creating a brand new rails app and it also fails with:
[1/4] 🔍  Resolving packages...
warning @rails/webpacker > node-sass ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning @rails/webpacker > node-sass > node-gyp ><EMAIL_ADDRESS>request has been deprecated, see https://github.com/request/request/issues/3142
warning @rails/webpacker > node-sass > request ><EMAIL_ADDRESS>this library is no longer supported
warning @rails/webpacker > webpack > watchpack > watchpack-chokidar2 ><EMAIL_ADDRESS>Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning @rails/webpacker > webpack > watchpack > watchpack-chokidar2 > chokidar ><EMAIL_ADDRESS>fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning @rails/webpacker > webpack > micromatch > snapdragon > source-map-resolve ><EMAIL_ADDRESS>https://github.com/lydell/resolve-url#deprecated
warning @rails/webpacker > webpack > micromatch > snapdragon > source-map-resolve ><EMAIL_ADDRESS>Please see https://github.com/lydell/urix#deprecated
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
[-/3] ⠁ waiting...
[-/3] ⠁ waiting...
error /Users/drama/Sites/test_app/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: /Users/drama/Sites/test_app/node_modules/node-sass
Output:
Building: /usr/local/Cellar/node/16.0.0/bin/node /Users/drama/Sites/test_app/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok

@atstockland Node 16 is currently supported, and is being tracked in https://github.com/sass/node-sass/issues/3077

Having the same error on
Linux *** 3.10.0-1160.53.1.el7.x86_64 #1 SMP Fri Jan 14 13:59:45 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux .
node -v
v14.20.0
npm -v
6.14.17
CentOS Linux release 7.9.2009 (Core)
cc -v
Using built-in specs.
COLLECT_GCC=cc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)


feature: extend Response API

We should specify concrete broker Response classes (like KafkaResponse) to make them supporting all broker features (Publisher.publish options)
Another words, KafkaResponse should has the following signature:
class KafkaResponse(Response):
    def __init__(
        self,
        body: "SendableMessage",
        *,
        headers: Optional["AnyDict"] = None,
        correlation_id: Optional[str] = None,
        # Kafka specific
        timestamp_ms: Optional[int] = None,
        key: Optional[bytes] = None,
        ...
    ) -> None:
        ...

Another brokers Response classes should be extended the same way

Do I understand correctly that it is necessary to change all "SpecificBroker".Response classes, transfer variables that are in the "SpecificBroker".publisher.use case to the init method ("SpecificBroker".Response)?
And why is the body: "SendableMessage" parameter specified in Response, and in the publish methods we have message: "SendableMessage"

@Flosckow yes, you undestood all things correctly.
About message VS body. I used message in broker.publish and publisher.publish interfaces due they should be used by user directly and it is explicit argument name for such usage. In the Response class I used body name due Response is whole object to publish (with body, headers and other options).
But, you point is correct and we should think about it again.

Ok, I'll wait for an answer. Сan you link this pull request? https://github.com/airtai/faststream/pull/1607


Bugfix/home page typo

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: jy007262567 sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Command Interception

When can we expect the simple command interception to be implemented in EF Core. In its absence, are there any work around of implementation of IsDeleted type of feature in EFCore?

@satyajit-behera we haven't decided if we want to have command interception that looks like the one we did in EF6 but here are a few related things:

Issue #626 covers all lifecycle hooks which could include some means for command or query interception
We have been thinking a lot about the concept of filtering applied to a model and DbContext, which should make it easier to implement soft-deletes than interception. We are using #7413 to track that.
Although it requires using and replacing some of our internal service types, there is already a way to achieve command interception. @ajcvickers could you please point to the test that does this?

Closing as a duplicate of #636 and #7413.

@divega Thanks.
@ajcvickers Please let me know how I can achieve this using a different mechanism. Thanks.

@divega Not sure what you are referring to; I haven't done this in EF Core. I think @anpete might have done something at one point. @satyajit-behera If I was going to start somewhere, I would probably investigate replacing SqlServerConnection, or whatever the RelationalConnection class is for the provider you are targeting.

@ajcvickers ok, I guess I had it mixed up in my notes. @anpete do you know of a test that does service replacement to achieve something similar to command interception? I had this in my notes from triage but it might have been a misunderstanding.

@divega https://github.com/aspnet/EntityFramework/blob/1145ef9b3dd46a07a84cb04b11141ecc8bfc62d2/test/Microsoft.EntityFrameworkCore.Sqlite.FunctionalTests/BadDataSqliteTest.cs


adde techpays.eu

Summary of your changes
added techpays.eu site

[x] My change follows the Contributing Guidelines
[x] I have added only one new link to the list.
[x] I have checked that the link that I added does NOT exist in the project already.
[x] I have sorted the link alphabetically under the related section.

@sdmg15 please review

@sdmg15 can this PR be approved today so it counts towards hacktoberfest goal?


Chore/kill external icon dependencies

This may be a better alternative to automate this:

https://www.smooth-code.com/open-source/svgr/

There is also this pattern from Vue:

https://vuejs.org/v2/cookbook/editable-svg-icons.html

And this webpack loader:

https://github.com/kisenka/svg-sprite-loader

Our current approach could be improved with Dynamic Imports (Code splitting) w/ eager loading; but that would break our embedded UMD.js package for Viewer?

icons.svg ported. Time to add/replace direct use of fa-* icons

[ ] Finish StudyList sort logic

[ ] Add sort.svg

[ ] Remove fa-* references from extensions and Viewers
[ ] Remove icons.svg references from extensions and Viewers
[ ] Push ohif-core changes
[ ] Merge, release, and bump versions across all packages


Using a generator in njit can sometimes lead to a potential memory leak.

[x] I have tried using the latest released version of Numba (most recent is
visible in the change log (https://github.com/numba/numba/blob/main/CHANGE_LOG).
[x] I have included a self contained code sample to reproduce the problem.
i.e. it's possible to run as 'python bug.py'.

Environment
python 3.8
numba 0.57.0
numpy 1.24.3
Reporting a bug
Using a generator in njit can sometimes lead to a potential memory leak. I will provide a minimal reproducible example below:
from numba import njit

@njit
def gen_item():
    for k in range(10_0000):
        yield [i for i in range(5)]

@njit
def f1():
    return list(gen_item())

@njit
def f2():
    ls = []
    for i in range(10_0000):
        ls.append([j for j in range(5)])
    return ls

for _ in range(5000):
    f1()

Function f1 and f2 are used to generate some list of list. But f1 uses generator while f2 don't. When I use f1 ,the memory usage will keep increasing, and it's not freed even after finishing. As for f2, the memory will be freed when the loop finished..
Not sure if this is about generator.

This is most likely a duplicate of issues like:

https://github.com/numba/numba/issues/5350
https://github.com/numba/numba/issues/6993

@852023301 thank you for the comment. Can you add also, how you are measuring the potential memory leak?

In fact, I wrote a code that uses psutil to record the memory usage of each loop. It can be seen that Figure 1 shows that the memory cost of f1 increases linearly, while Figure 2 shows that the memory cost of  f2 does not increase linearly and the growth rate is significantly lower.

from numba import njit
import os
import psutil
import matplotlib.pyplot as plt

pid = os.getpid()

p = psutil.Process(pid)

@njit
def gen_item():
    for k in range(100_0000):
        yield [i for i in range(5)]

@njit
def f1():
    return list(gen_item())

@njit
def f2():
    ls = []
    for i in range(100_0000):
        ls.append([j for j in range(5)])
    return ls

mem_usage = []
x_label = range(100)

for _ in x_label:
    f1()
    mem_usage.append(p.memory_full_info().uss / 1024 ** 3)

plt.plot(x_label,mem_usage)
plt.xlabel('Number of cycles')
plt.ylabel('Memory usage per cycle(G)')
plt.title("Memory usage ")
# plt.savefig('2.png')
plt.show()


base_path/api/v1 doesn't work

Right now, base_path applies to the UI, but doesn't actually accept API connections. If I proxy facette to localhost:8080/facette, the UI will try to access localhost:8080/facette/api/v1 and this will simply return the HTML UI instead of the API endpoint.

Hi @clarfon,
Thanks for pointing this out! This is now fixed.
I'll will ship the fix in the 0.5.1 release.


Picker on iOS needs explicit width set, documentation doesn't explain it

Description
Picker reference doesn't indicate that it requires width to be set explicitly. See: https://snack.expo.io/r1orbz1NZ for working example. Remove the width and notice it doesn't work.
Solution
Explain that width is required for Picker on iOS.

Hey, guys! I am new to Open Source and want to dive into this issue. I also do not have any react-native experience, How should I go about solving this one?

@brentvatne: this seems to fix it: https://github.com/facebook/react-native/compare/master...joshyhargreaves:fix_need_for_explicit_size_picker_ios?expand=1

@akshaynaik404, wonderful it's great that you're getting involved 💯 . 😊
Your best place to start is to start building the react-native project from source and running the , RNTester example project. For an issue like this you can start playing around with the relevant native source files!
RCTPicker is where you'd start looking at here. Perhaps you'd put a breakpoint in the init method and verify you had the right class from loading the PickerExample in the RNTester project.
Let me know how that goes for you and if you have any issues :).

@brentvatne : I don't really have any idea though, RCTDatePicker also seems to be initialised in the same way (with a default frame of 0,0,0,0).

May actually have been a red herring, RNTester example seems to work without an explicit width set.

@joshyhargreaves and @brentvatne - What's the plan?  I just verified this is an issue in React Native 0.46.2
I'll be happy to update the docs, or work with objective C to implement Josh's code etc.  Looks like this has had 2 weeks to sizzle, so feel free to ask me to implement if needed!
Cheers! 🍻

Aha @gantman so my fix was in fact complete bogus, didn’t fix anything. Unless we have a fix, then probably no harm in documenting the defect for the time being.
I’m still curious as why setting the width is actually necessary from a technical perspective...

I might throw some energy into it, and fall back to just documenting.  Will report back.

More than happy to work with you on this! I was starting by asking the question, why is it necessary for RCTPicker vs other ‘Native’ components

@joshyhargreaves - how about a bandaid to make a default width until we have time to uncover?  I don't feel documenting this is a better path than a default width.  Thoughts?

@GantMan - the problem with a default width, if it is just something arbitrary, is that if we set that and then decide to change it, then it's a breaking change and people will potentially need to update their apps. I'd like to have a better solution than guessing an arbitrary width before actually making a code change

Closing now that the docs have been moved. Feel free to re-open at https://github.com/facebook/react-native-website


MLForecast - Support historic covariates out of the box

Description
It would be nice to support historic covariates out of the box like in the Darts API or the Neuralforecast API.
We could supply them either in the same dataframe (like mlforecast already supports for static covariates) or a separate one.
I recently asked about in the Slack channel, and was told we could generate them from lagged version of the future covariates, but it would be nicer an simpler to use if we could just supply them in the training dataframe, and also in the predict method.
Use case
Use case would be predicting future target values while using historic exogenous data. Initial intended models would be lightGBM and XGBoost regressors.

I have the same question. Can I construct the features before training and hence I can incorporate those features into feature engineering process.

In my opinion those APIs are more restrictive, since historic means "use a specific lag of these features" (output_chunk_length in darts and h in neuralforecast).
If you want to turn a feature into historic in mlforecast you can just use a lag that is longer than your forecasting horizon, for example:
import pandas as pd
from mlforecast import MLForecast
from mlforecast.utils import generate_series, generate_prices_for_series
from sklearn.linear_model import LinearRegression

# generate data. the prices span the full range of training dates (so it's a future exog)
series = generate_series(2, equal_ends=True)
prices = generate_prices_for_series(series, horizon=0)

# turn to historic
prices_lag5 = prices.rename(columns={'price': 'price_lag5'})
prices_lag5['ds'] += 5 * pd.offsets.Day()
prices_lag10 = prices.rename(columns={'price': 'price_lag10'})
prices_lag10['ds'] += 10 * pd.offsets.Day()
historic_prices = prices_lag5.merge(prices_lag10, on=['unique_id', 'ds'])

# merge with training set. this drops some rows but if you have more history you wouldn't need to
train = (
    series
    .merge(prices_lag5, on=['unique_id', 'ds'])
    .merge(prices_lag10, on=['unique_id', 'ds'])
)

# use the regular API for training and forecasting
mlf = MLForecast(
    models=[LinearRegression()],
    freq='D',
)
mlf.fit(train, static_features=[])
mlf.predict(h=5, X_df=prices)

Since h=5 here we can use any lag>=5 as "historic" (5 and 10 in this example).
This doesn't seem that hard. It would be harder to add a new argument to determine which lag to take, a new argument to provide the historic features, etc.

Thanks @jmoralez! I will close this as the procedure seems simple enough. We may reopen later if needed.


Show feedback that extensions are processing a paste event

Repro:

Set "editor.experimental.pasteActions.enabled": true
Print screen (I have 3 monitors such that the screenshot is 7200x2560px)
Paste in a markdown file, nothing happens for 2-4 seconds

@Tyriar Do you remember seeing this notification:

Do you perhaps have do not disturb mode enabled?

@mjbvz do not disturb is not on and I don't see any notification when I try again just now

I haven't been able to reproduce this with a 8000x8000 image in the clipboard. After a small delay (which we have configured), I always see the progress notification
It's possible that reading the clipboard event itself is taking a long time. @Tyriar If you are still seeing this problem, could you try profiling the window when this happens to see if this is the case? It would likely show up as a long running paste command
PS: Performance of large file paste should also be improved in general by #175809.


Please check HTTPProxySocket class again

I have checked the HTTPProxySocket class many times.
I think it can not work correctly.
Please check it more times.

It would be much better if you could be more specific about "not work correctly".

here is the fixing. it's ugly. but it can work.
override public func readData() {
    guard !isCancelled else {
        return
    }

    // Return the first header we read when the socket was opened if the proxy command is not CONNECT.
    if ((writeStatus == .forwarding) && isConnectCommand) {
        delegate?.didRead(data: currentHeader.toData(), from: self)
        readStatus = .readingContent
        return
    }

    switch scanner.nextAction {
    case .readContent(let length):
        readStatus = .readingContent
        if length > 0 {
            socket.readDataTo(length: length)
        } else {
            socket.readData()
        }
    case .readHeader:
        readStatus = .readingHeader
        socket.readDataTo(data: Utils.HTTPData.DoubleCRLF)
    case .stop:
        readStatus = .stopped
        disconnect()
    }

}

public override func respondTo(adapter: AdapterSocket) {
    super.respondTo(adapter: adapter)

    guard !isCancelled else {
        return
    }

    if ((readStatus != .pendingFirstHeader) && (readStatus != .readingContent)) {
        return
    }
    readStatus = .invalid

    if isConnectCommand {
        writeStatus = .sendingConnectResponse
        write(data: Utils.HTTPData.ConnectSuccessResponse)
    } else {
        writeStatus = .forwarding
        observer?.signal(.readyForForward(self))
        delegate?.didBecomeReadyToForwardWith(socket: self)
    }
}

It is still quite confusing, you can speak Chinese if you want to, and it'd be better if you could provide it as a pull request.

http://photo.weibo.com/2831387475/wbphotos/large/mid/4053727213621600/pid/a8c38b53gw1fatx8tm3cjj20ob0afwhy

I have updated it now.

What do you want to do?
Return the header every time the Tunnel tries to read some thing? Why?

because the adapter readdata method will never be called if we do not coding like this.

Oh, you changed the respondTo.
I do not understand why you say it was wrong, have you tried it?
Now you are calling didRead even before the Tunnel tries to read some thing, which is obviously wrong.

Yes. In factly, I just copy and paste your old implementation before readStatus and writeStatus. But it works fine.

It is working fine with my version?

No. It's my modified version works fine.

How are you using it? Without Tunnel?

Tunnel::didConnectWith will call ProxySocket::respondTo, you know.

If we use your version, the adapterSocket::readdata will never be called. It's the key point.

Is NEKitDemo working?

I'm not using your Demo. sorry. you can test it yourself.

I'm using it and it's fine, have you tried the latest version?
I do not know how you are using it, only with HTTPProxyServer?

Yes. Only HTTPProxySocket  class.

I do not know how you are using HTTPProxySocket but obvious you are using it wrong, respondTo do not mean adapter is ready for forwarding data, it just means the adapter connected to remote, that's all. See how to do it right in Tunnel.

It is not strictly following the standard, because it should reply only when it successfully connected to target host, that's something should be fixed, but has nothing to do with what you are doing.

OK. I just point out the issue. You make the final decision.

Fixed


Segmentation fault (core dumped)  - program crash

Someone?
'TypeError: setValue(self, int): argument 1 has unexpected type 'float'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/labelImg/labelImg.py", line 965, in scroll_request
bar.setValue(bar.value() + bar.singleStep() * units)
TypeError: setValue(self, int): argument 1 has unexpected type 'float'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/libs/canvas.py", line 530, in paintEvent
p.drawLine(self.prev_point.x(), 0, self.prev_point.x(), self.pixmap.height())
TypeError: arguments did not match any overloaded call:
drawLine(self, QLineF): argument 1 has unexpected type 'float'
drawLine(self, QLine): argument 1 has unexpected type 'float'
drawLine(self, int, int, int, int): argument 1 has unexpected type 'float'
drawLine(self, QPoint, QPoint): argument 1 has unexpected type 'float'
drawLine(self, Union[QPointF, QPoint], Union[QPointF, QPoint]): argument 1 has unexpected type 'float'
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: Painter already active
Segmentation fault`
why?

ubuntu22.04
pyqt5
python3.10

Did you use following code to install pip install labelImg ? Because there is a bug to install with pip.

you need to use python3.8

Is there a fix coming any time soon?

I met the same problem, can't create any ractangle for labeling at all
 p.drawLine(self.prev_point.x(), 0, self.prev_point.x(), self.pixmap.height())
TypeError: arguments did not match any overloaded call:
  drawLine(self, QLineF): argument 1 has unexpected type 'float'
  drawLine(self, QLine): argument 1 has unexpected type 'float'
  drawLine(self, int, int, int, int): argument 1 has unexpected type 'float'
  drawLine(self, QPoint, QPoint): argument 1 has unexpected type 'float'
  drawLine(self, Union[QPointF, QPoint], Union[QPointF, QPoint]): argument 1 has unexpected type 'float'

I'm running into the same thing now that I upgraded to Ubuntu 22.04.
installed via pip
Python 3.10.6
PyQt5                   5.15.7
PyQt5-Qt5               5.15.2
PyQt5-sip               12.11.0
labelImg                1.8.6

Same here:
Python 3.10.6
labelImg 1.8.6
Creating a rectangle (just press w) makes the program crash with that error. Any fix ?

It's a duplicate of this. There is also a workaround.

estou com o mesmo problema:
Traceback (most recent call last):
  File "/home/Joao_Pedro_Uchoa/.local/lib/python3.10/site-packages/libs/canvas.py", line 530, in paintEvent
    p.drawLine(self.prev_point.x(), 0, self.prev_point.x(), self.pixmap.height())
TypeError: arguments did not match any overloaded call:
  drawLine(self, QLineF): argument 1 has unexpected type 'float'
  drawLine(self, QLine): argument 1 has unexpected type 'float'
  drawLine(self, int, int, int, int): argument 1 has unexpected type 'float'
  drawLine(self, QPoint, QPoint): argument 1 has unexpected type 'float'
  drawLine(self, Union[QPointF, QPoint], Union[QPointF, QPoint]): argument 1 has unexpected type 'float'
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: Painter already active
Falha de segmentação (imagem do núcleo gravada)

I faced the same issue. The error was because of a dependency conflict in Ubuntu 22.04. Creating a virtual environment for labelImg solved this problem.

Same as @esraa-abdelmaksoud and this comment.
Installing a separate environment was enough to not see the error again.
My setup: Ubuntu 22.04 and python 3.11.5
conda create -n labelImg python=3.8
pip3 install labelImg


feat(backend-common): introduce metrics for the backend

Add a /metrics endpoint that exposes metrics about the backend. It provides general runtime metrics (memory, gc, utilization) as well as request metrics.
We are preparing for a bit more production like operations, health checks are already there, but metrics is something we are missing.
It looks like Prometheus / OpenMetrics is the format of choice to implement metrics in a backend right now. But it should be easy to find an adapter to convert it to other formats (e.g. graphite).
:heavy_check_mark: Checklist

[ ] All tests are passing yarn test
[ ] Screenshots attached (for UI changes)
[ ] Relevant documentation updated
[ ] Prettier run on changed files
[ ] Tests added for new functionality
[ ] Regression tests added for bug fixes

Cool. So, this unconditionally adds metrics to all backends everywhere without configurability, right? Would it be sensible to be able to enable with a config object (similar to cors) in the builder, or is that not necessary? I'm not familiar with the best practices here :)
Also is it always on /metrics? I don't see a path being specified.

Also is it always on /metrics? I don't see a path being specified.

That is the default by the library and I wouldn't make it configurable. One normally configures that in the scrape config, but there /metrics would also be the default.
I wonder if there is a good location in the backstage documentation to mention that health checks and metrics endpoints exist?

So, this unconditionally adds metrics to...
Yes, this is added unconditionally. I could add a configuration to disable it. One threat could be, that the full instance is public available, in that case the metrics endpoint would expose unwanted details about the deployment.

In general, another option would be to expose a way to register middlewares, but right now I like that everything is "build-in".

@freben  I made it configureable (on/off), but looks like the build is currently broken since https://github.com/spotify/backstage/pull/2140/checks?check_run_id=1037100094

Yep, there is something up with how the github workflows are set up with caching, I believe. We are looking into it.

Hey! The issue with windows builds on github has been resolved. You may want to update this PR on top of the latest master.
For reference: https://github.com/spotify/backstage/pull/2152

Yeah, build is green now!


Settings

Adding three functions to compare parameters
compareParameters : return True if all opts are the same between two parameters
compareStructureParameter  : return True if structures are the same between two parameters
compareValuesParameter : return True if values are the same between two parameters
These functions use respectively the three functions getOpts, getStruct and getValues that are inspired by the Parameter.getValues function which returns an ordered dict.
TODO:
If the struct is the same, should we make an order dic containing bool information to find mismatch in values or in opts?

The syntax could also be simplified to only compare selected opts but it just requires a bit of work to avoid buggy features. I may look into that later to have a single function to make the OrderedDict.

I noted a maybe not so unexpected behavior:

if one would load settings in a daq_viewer from a different detector, the settings tree would correctly update
if one would then press init detector, the detector would be initialized from the settings tree and not from the daq_type, detector combo box.
So when we load settings, should these two values be updated directly? Or should they be discarded to only be included in the settings tree (with the push button + LED, etc...) ? Or should this button not be accessible for daq_viewer/move?

as you say it's not really unexpected, it's just that normally the settings update/loading is only done from the selection of the detector/actuator type. I believe the load settings button should not be appearing in that particular case (as you suggested) but only the save/update.  Could you also work on the documentation to explain your new feature related to the parameter manager? I've added a (empty) section in the developer documentation about this that would need to be completed. Could you describe your part of the thing?


[1.0] Would suggest changing xhr to fetch()

The Fetch API is specifically mentioned in the spec, is now supported in stable Chrome, and is in Firefox 39. It's a simpler interface, so would reduce the size of the loader a bit for browsers that support it. There's a polyfill for other browsers https://github.com/github/fetch

While this would be nice, the fetch implementation is far bigger than the XHR implementation here, so I don't think the benefits outweigh the costs. The XHR implementation is not a major contributor to the code footprint either.


CI sync with lollllz repo (also for learn)

In GitLab by @cfunk1210 on Jul 30, 2020, 14:53
Automatic push to lollllz repo on master (or perhaps any) push to this system.  That way we don't need to do it together.
For short term, just sync-ing the two repo so easier to push to it.

In GitLab by @waxlamp on Nov 24, 2020, 14:34
Do we still need to do this? It would be simpler to push the master branch to the lollllz repo manually whenever it's required, rather than develop CI actions to do it automatically.


最新的版本我的应用里面加载大量图片的时候800多兆就崩溃了不知道怎么优化

As I know, SDImageCache will auto purge cached image on UIApplicationDidReceiveMemoryWarningNotification.
And you can use [SDImageCache clearMemory] if you still want to clear memory.


outer_type = model_field.outer_type_ AttributeError: 'FieldInfo' object has no attribute 'outer_type_'

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
fieldInfo object has no attribute outer type
i cannot able to convert it from field instead dictonary
Example Code
def as_form(cls: Type[BaseModel]) -> Type[BaseModel]:
    new_parameters = []

    for field_name, model_field in cls.__fields__.items():
        outer_type = model_field.outer_type_
        default_value = model_field.default if not model_field.required else None

        new_parameters.append(
            inspect.Parameter(
                model_field.alias,
                inspect.Parameter.POSITIONAL_ONLY,
                default=Form(default_value),
                annotation=outer_type,
            )
        )

    async def as_form_func(**data):
        return cls(**data)

    sig = inspect.signature(as_form_func)
    sig = sig.replace(parameters=new_parameters)
    as_form_func.__signature__ = sig

    setattr(cls, 'as_form', as_form_func)
    return cls

Python, Pydantic & OS Version
pydantic version: 2.4.2
        pydantic-core version: 2.10.1
          pydantic-core build: profile=release pgo=false
                 install path: X:\sad\practice\Office\Backend\Electroapi\.venv\Lib\site-packages\pydantic
               python version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
                     platform: Windows-10-10.0.22621-SP0
             related packages: email-validator-2.0.0.post2 fastapi-0.103.2 pydantic-settings-2.0.3 typing_extensions-4.8.0

@JacobHayes bro what have changed now how can i make it form field ?

I’m still updating my projects to pydantic v2 myself, but if you look at ‘pydantic/field.py‘ I’m guessing you’ll find out the replacement (if it’s not already more clearly stated in the migration documentation).
I’m guessing it’s now just ‘.annotation‘ (although, that may be subtly different). If that is right, I’m guessing you’ll have other issues to figure out (like ‘.required‘ - which is probably ‘Optional‘ around the annotation).

@JacobHayes thnxi  able to fix it model_field.annotation  replace outer_type   and required is is_required  alias will be just field_name


Replace usage of static client credentials for components running in seed talking to the shoot API server

How to categorize this issue?
/area security
/kind enhancement
/priority 2
What would you like to be added:
Today, all of the components running in the seed clusters and talking to the shoot's API server use a kubeconfig with a static client certificate issued by the cluster's certificate authority (example).
Instead, let's start using similar concepts compared to projected ServiceAccount tokens supported since Kubernetes v1.12.
Concretely, we have to use the TokenRequest API of the shoot's API server to issue short-lived tokens for the respective components.
The tokens should be stored in dedicated Secrets in the shoot namespace in the seed cluster so that they can be mounted to the respective Pods.
Similar to how the kubelet issues a new token when the lifetime reaches 80%, we should refresh such tokens regularly and update them in the respective Secrets in the seed.
This also allows us to use the same kubeconfig for all components which plays well together with what is proposed in #3598.
Also, it helps reducing the load of the Garden cluster since no client certificates/kubeconfigs would be generated anymore for such components, hence, reducing the size of the ShootState and also the size of the etcd backup.
For example, the following kubeconfig could be generated by gardenlet and stored in the kubeconfig Secret in the shoot namespace:
apiVersion: v1
kind: Secret
metadata:
  name: kubeconfig
  namespace: shoot--foo--bar
type: Opaque
stringData:
  kubeconfig.yaml: |
    apiVersion: v1
    kind: Config
    current-context: shoot--foo--bar
    clusters:
    - cluster:
        server: https://kube-apiserver
      name: shoot--foo--bar
    contexts:
    - name: shoot--foo--bar
      context:
        user: shoot--foo--bar
        cluster: shoot--foo--bar
    users:
    - name: shoot--foo--bar
      user:
        tokenFile: /var/run/secrets/gardener.cloud/shoot/token

Also, let's say the short-lived token was stored in the some-component-shoot-token Secret in the shot namespace:
apiVersion: v1
kind: Secret
metadata:
  name: some-component-shoot-token
  namespace: shoot--foo--bar
type: Opaque
stringData:
  token: some-token

Then the PodSpec would look as follows:
apiVersion: v1
kind: Pod
spec:
  volumes:
  - name: kubeconfig
    secret:
      secretName: kubeconfig
  - name: shoot-token
    secret:
      secretName: some-component-shoot-token
  containers:
  - name: foo
    volumeMounts:
    - name: kubeconfig
      mountPath: /var/run/secrets/gardener.cloud/kubeconfig
      readOnly: true
    - name: shoot-token
      mountPath: /var/run/secrets/gardener.cloud/shoot
      readOnly: true
    command:
    - /foo
    - --kubeconfig=/var/run/secrets/gardener.cloud/kubeconfig/kubeconfig.yaml
...

Why is this needed:
In order to eliminate static credentials requiring costly manual rotation which doesn't scale.
Projected ServiceAccount tokens can be configured with expirationSeconds and are regularly auto-rotated and re-mounted by the kubelet without further do.
Clients are expected to regularly reload the token, however, the client-go supports reloading the tokens specified in tokenFiles since v10.0.0, (see https://github.com/kubernetes/kubernetes/pull/70606), and most of the components are either already using this version or could be updated.
Target Picture:
New in this picture is: Secret with short-lived token. Also the pod spec is adapted to mount the token and the component-kubeconfig points to the mounted tokenFile.
In the Shoot the ServiceAccount needs to be added and referenced by the existing rolebinding.

Open Questions:

[x] Do all components support auto reloading tokens from disk -> Seems like yes supported in client-go since v1.13.0.
[x] Does the kubelet auto-remount secrets if the data of the secret changes -> yes
[x] Do we want to reuse a component for our controller (like the grm) or create a new component which includes this token functionality. -> we use the grm for now
[x] How is the controller itself authenticated against the KAPI?
[x]  Adapt all components running in the Seed targeting the Shoot to use a non-static token.
[x] We create a significant amount of API requests on the Seed API server when updating tokens of all components in the Shoot namespaces upon token expiration. Will this have scaling performance implications on the Seed APIServer?
[x] How often do we want to rotate the tokens? What to choose for expiration time?
[x] A TokenRequest also includes an audiences. We are currently unsure what this field does.

Tasks:

Prepare gardener-resource-manager

[x] https://github.com/gardener/gardener/pull/4757
[x] https://github.com/gardener/gardener/pull/4817
[x] https://github.com/gardener/gardener/pull/4867
[x] https://github.com/gardener/gardener/pull/5084

Adapt gardener/gardener components

[x] https://github.com/gardener/gardener/pull/4931
[x] https://github.com/gardener/gardener/pull/5007
[x] https://github.com/gardener/gardener/pull/5008
[x] https://github.com/gardener/gardener/pull/5009
[x] https://github.com/gardener/gardener/pull/5010
[x] https://github.com/gardener/gardener/pull/5012
[x] https://github.com/gardener/gardener/pull/5121
[x] https://github.com/gardener/gardener/pull/5138
[x] https://github.com/gardener/gardener/pull/5153
[ ] dependency-watchdog is not yet adapted due to https://github.com/gardener/dependency-watchdog/issues/36
[x] https://github.com/gardener/gardener/pull/5162
[x] https://github.com/gardener/gardener/pull/5163

Adapt gardener/gardener-extension-* components

[x] shoot-cert-service: https://github.com/gardener/gardener-extension-shoot-cert-service/pull/103
[x] shoot-dns-service: https://github.com/gardener/gardener-extension-shoot-dns-service/pull/96
[x] shoot-oidc-service: https://github.com/gardener/gardener-extension-shoot-oidc-service/pull/16
[x] provider-alicloud: https://github.com/gardener/gardener-extension-provider-alicloud/pull/405
[ ] provider-aws: https://github.com/gardener/gardener-extension-provider-aws/pull/467
[ ] provider-azure: https://github.com/gardener/gardener-extension-provider-azure/pull/421
[ ] provider-gcp: https://github.com/gardener/gardener-extension-provider-gcp/pull/368
[ ] provider-openstack: https://github.com/gardener/gardener-extension-provider-openstack/pull/369
[x] provider-vsphere: https://github.com/gardener/gardener-extension-provider-vsphere/pull/192
[x] provider-equinix-metal: https://github.com/gardener/gardener-extension-provider-equinix-metal/pull/182
[x] external-dns-management: https://github.com/gardener/external-dns-management/pull/237

/assign @BeckerMax @rfranzke
/in-progress

@rfranzke , I like this pic you drew because it help us understand how to rotate shoot kubeconfig token easily. Do you have plan to add this token rotation process in the gardener doc?

@jia-jerry There are already other, probably more detailed pics in the docs: https://github.com/gardener/gardener/blob/master/docs/concepts/resource-manager.md#tokenrequestor


Added instructions for Void Linux onto getting_started.org

Hi,
I added instructions for installing doom in Void Linux.
Regards,
AK

There are 2 emacs packages in Void: emacs-x11 and emacs-gtk3 that can be considered. emacs-gtk3 tends to crash a lot while running in daemon mode, compared to emacs-x11 (at least in my experience).
emacs-common will get pulled in as a dependency when installing either of the packages above, so we don't need to explicitly install it manually.

oh ok. i use emacs-gtk3 and it is pretty smooth

See https://github.com/hlissner/doom-emacs/pull/4709#issuecomment-788068213


Add Ghent local site to the site

where is the belgium-ghent-university.md file?

I haven't made it yet since we don't have any more information right now. I'll add it once we know more (If it's necessary we can leave this PR open for a bit)

you don't need much information, look at the CRG or italy page for now

Done!

@nf-core-bot fix linting

@nf-core-bot fix linting pretty please

Thanks @mashehu I'll wait for the preview and then I'll merge if it's good :)


[BUG] Inconsistent Callout Icon Text Spacing

Thank you so much for sharing this superb theme. Your theme is so perfect and beautiful I deleted 99% of my custom CSS. So I feel terrible nitpicking, but as you can see from the screengrab, the spacing between the callout icon and the text is inconsistent. Thanks again for sharing your beautiful theme and your impeccable taste with the rest of us.

Hello! First of all, thank you for letting me know and for your kind words. I checked the information you provided and tried to make some adjustments, but I couldn't find any major issues on my end (please refer to Image 1!). If there are other problems you are referring to, please let me know in more detail!

Also, thanks to your report, I was able to take a closer look at the Callout icon, and as a result, I have fixed the issue where the icon was slightly lower than the text (please refer to Image 2!). Thank you!

I've also fixed some minor visual issues through updates, so please make sure to check them out!
Have a great day and thank you so much.

Thank you so much for looking into this and for the quick update!
I made a fresh new vault and tested it with the updated theme. 😅 But unfortunately, I am still seeing the same issue. Maybe this is a platform-specific issue? Only on Mac? Anyway, it's not a big deal. I still love the theme so much, and I got used to the way the callouts look.
Here is a screen recording
Unlisted YouTube video.
https://youtu.be/ERMj67N1QC0
macOS Ventura 13.3.1
Obsidian v1.2.2 (Installer version: v1.1.9)

Same


import error

from TGConvertor.manager.manager import SessionManager
Traceback (most recent call last):
File "D:\MyProjects\project\app.py", line 7, in
from BotCore.handlers.main_router import router
File "D:\MyProjects\project\BotCore\handlers_init_.py", line 1, in
from . import (
File "D:\MyProjects\project\BotCore\handlers\accoutns_init_.py", line 1, in
from . import (
File "D:\MyProjects\project\BotCore\handlers\accoutns\AccountsAddForm.py", line 5, in
from TGConvertor.manager.manager import SessionManager
File "D:\MyProjects\project\venv\lib\site-packages\TGConvertor_init_.py", line 8, in
from .manager import manager
File "D:\MyProjects\project\venv\lib\site-packages\TGConvertor\manager\manager.py", line 6, in
from .sessions.pyro import PyroSession
File "D:\MyProjects\project\venv\lib\site-packages\TGConvertor\manager\sessions\pyro.py", line 53, in
class PyroSession:
File "D:\MyProjects\project\venv\lib\site-packages\TGConvertor\manager\sessions\pyro.py", line 70, in PyroSession
user_id: None | int = None,
TypeError: unsupported operand type(s) for |: 'NoneType' and 'type'

install python 3.10 and above

Fixed, update the library


Remove image reference

Q
A

Bug fix?
[Yes ]

New feature?
[ ]

New sample?
[ ]

Related issues?
fixes #X, partially #Y, mentioned in #Z

What's in this Pull Request?
Just removed reference to FieldLookupRendererDialog image in documentation

Codecov Report

Merging #44 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev      #44   +/-   ##
=======================================
  Coverage   83.01%   83.01%
=======================================
  Files          10       10
  Lines         318      318
  Branches       67       74    +7
=======================================
  Hits          264      264
  Misses         35       35
  Partials       19       19

Continue to review full report at Codecov.

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

What is the reason for removing the image?

@estruyf it's only because I didn't look properly...sorry, my bad. Closing PR
It's the same image as the one in the IFrameDialog control and I thought it was just a copy paste issue. Looking at the image again, I can see that it refers to Armenia item details and it shows that the Title property is displayed by the FieldLookupRenderer

No problem 🙂


add add_kwargs to vector stores / vectorstoreindex

This PR adds add_kwargs to both the inner VectorStore class as well as the outer VectorStoreIndex class - we pass any additional kwargs in from_documents towards vector store insert during initialization.
This allows users to specify kwargs when inserting a document/node (whether during from_documents or just insert)
Will help with row-level features like access control etc

@jerryjliu
Your code confuses me. It appears that the VectorStoreIndex.build_index_from_nodes method does not receive the insert_kwargs parameter from the caller, and the BaseIndex.build_index_from_nodes abstract method does not have the insert_kwargs parameter. I'm in dire need of forcing a flush in MilvusVectorStore after adding nodes, but I don't know how to do it.


:memo: better progress bar

Description

Related Issue

Type of Change

[ ] 📚 Examples / docs / tutorials / dependencies update
[ ] 🔧 Bug fix (non-breaking change which fixes an issue)
[X] 🥂 Improvement (non-breaking change which improves an existing feature)
[ ] 🚀 New feature (non-breaking change which adds functionality)
[ ] 💥 Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🔐 Security fix

Checklist

[X] I've read the CODE_OF_CONDUCT.md document.
[X] I've read the CONTRIBUTING.md guide.
[X] I've updated the code style using make codestyle.
[X] I've written tests for all new methods and classes that I created.
[X] I've written the docstring in Google format for all the methods and classes that I used.

Codecov Report

Merging #6 (75d4a25) into master (b7ba145) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master       #6   +/-   ##
=======================================
  Coverage   81.65%   81.65%
=======================================
  Files           4        4
  Lines         169      169
=======================================
  Hits          138      138
  Misses         31       31

Impacted Files
Coverage Δ

ez_parallel/multiprocess.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


[0.5.x] Support customising hot file / build path

This PR introduces a new configuration option to specify the location of the hot file. This is really just an escape hatch from our normal conventions.
// vite.config.js

export default defineConfig({
    plugins: [
        laravel({
            hotFile: 'storage/vite.hot',
            // ...
        }),
    ],
});

// *.blade.php

{{ Vite::useHotFile(storage_path('vite.hot'))->withEntryPoints(['resources/js/app.js']) }}

This PR depends on: https://github.com/laravel/framework/pull/43620
The ability to customise the build directory (as seen in the above linked PR) is already possible without the need for additional changes to the plugin:
// vite.config.js

export default defineConfig({
    plugins: [
        laravel({
            buildDirectory: 'foo/bar',
            // ...
        }),
    ],
});

// *.blade.php

{{ Vite::useBuildDirectory('foo/bar')->withEntryPoints(['resources/js/app.js']) }}

Note that by design the build directory is always relative to the public directory but the hot path is used as is.

Documentation PR: https://github.com/laravel/docs/pull/8146


could not train dataset: pymongo.errorsDocumentTooLarge

Describe the bug
Bug occurs at the end of every training session, interupting the flow of normal model saving:
On a training set of 3 examples:
[ nemesyst.py ] [ info ] [ neuralNetwork ]
	sumError: 8017.5625
	numExamples: 3
	numValidExamples 3
	meanError: 2672.5208333333335
[ nemesyst.py ] [ error ] [ helpers.py ] could not train dataset:
<class 'pymongo.errors.DocumentTooLarge'> BSON document too large (25295161 bytes) - the connected server supports BSON document sizes up to 16793598 bytes.

To Reproduce
Steps to reproduce the behavior:

Go to any commit later than: df0962f04261f262703bf3789a159e7c2fac5e7e
Run any model
Wait for model to complete training
See error at the end of training

Expected behavior
Clean training and model to be successfully saved to database
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS & version: Arch Linux
Version of Nemesyst: commit(5a58bd9aa804b16bb442a3b1c518c35cc2026cd9)
Version of Python: v3.7

Additional context
I believe it may have been the commit(4e3741c7f69cd19d433898364d869c1a1a722029) where the inter layer dimensionality is introduced. Maybe the models are now too big to fit in a database if this dim exceeds a certain value?

https://github.com/DreamingRaven/Nemesyst/pull/28

Since this is a hard cap on document size by mongoDb, It will be low priority for now until a suitable hack can be found to do this anyway. The first thing that comes to mind is splitting the binary model from the rest of the model data into a different reference document by itself, but then this still has a limit on it. The only truly unlimited way to do this would be to split the model itself into as many documents as are required with references to the same model, that are then put back together at point of need.

https://github.com/DreamingRaven/Nemesyst/issues/31 Is how we are going to solve this problem.


'require' it is not recognized as 'require_statement'

Hi,
require is recognized as identifier.  Can you add require_statement (like include_statement)?
Example:
class myclass (
) {
  require foo::bar
  include foo::bar
}

updated