free(): invalid pointer

While running my project on Linux x86_64, I have strange crash.
free(): invalid pointer

Same code on macOS arm64 runs fine.
I used valgrind to narrow down the issue:
... many lines of errors ...
2023-08-14 16:37:01.708940: I tensorflow/cc/saved_model/loader.cc:229] Restoring SavedModel bundle.
==2496383== Thread 24 reqwest-interna:
==2496383== Invalid read of size 8
==2496383==    at 0x5954FB4: OPENSSL_free (in /home/mdenty/tldr-rs/tldr-rs/target/x86_64-unknown-linux-gnu/debug/build/tensorflow-sys-7883383401eb69f9/out/libtensorflow_framework.so.2)
==2496383==    by 0x597A204: x509_verify_param_zero (in /home/mdenty/tldr-rs/tldr-rs/target/x86_64-unknown-linux-gnu/debug/build/tensorflow-sys-7883383401eb69f9/out/libtensorflow_framework.so.2)
==2496383==    by 0x597A276: X509_VERIFY_PARAM_free (in /home/mdenty/tldr-rs/tldr-rs/target/x86_64-unknown-linux-gnu/debug/build/tensorflow-sys-7883383401eb69f9/out/libtensorflow_framework.so.2)
==2496383==    by 0x58DBFFC: bssl::ssl_crypto_x509_ssl_ctx_free(ssl_ctx_st*) (in /home/mdenty/tldr-rs/tldr-rs/target/x86_64-unknown-linux-gnu/debug/build/tensorflow-sys-7883383401eb69f9/out/libtensorflow_framework.so.2)
==2496383==    by 0x58D0B65: ssl_ctx_st::~ssl_ctx_st() (in /home/mdenty/tldr-rs/tldr-rs/target/x86_64-unknown-linux-gnu/debug/build/tensorflow-sys-7883383401eb69f9/out/libtensorflow_framework.so.2)
==2496383==    by 0x58D0CA7: SSL_CTX_free (in /home/mdenty/tldr-rs/tldr-rs/target/x86_64-unknown-linux-gnu/debug/build/tensorflow-sys-7883383401eb69f9/out/libtensorflow_framework.so.2)
==2496383==    by 0xF1B2FD: <openssl::ssl::SslContext as core::ops::drop::Drop>::drop (lib.rs:241)
==2496383==    by 0xF1F099: core::ptr::drop_in_place<openssl::ssl::SslContext> (mod.rs:497)
==2496383==    by 0xEBBECA: core::ptr::drop_in_place<openssl::ssl::connector::SslConnector> (mod.rs:497)
==2496383==    by 0xEBBEAA: core::ptr::drop_in_place<native_tls::imp::TlsConnector> (mod.rs:497)
==2496383==    by 0xEBBE9A: core::ptr::drop_in_place<native_tls::TlsConnector> (mod.rs:497)
==2496383==    by 0xD4B26B: core::ptr::drop_in_place<reqwest::connect::Inner> (mod.rs:497)
==2496383==  Address 0x60f8 is not stack'd, malloc'd or (recently) free'd
==2496383==
==2496383==
==2496383== Process terminating with default action of signal 11 (SIGSEGV)
==2496383==  Access not within mapped region at address 0x60F8
==2496383==    at 0x5954FB4: OPENSSL_free (in /home/mdenty/tldr-rs/tldr-rs/target/x86_64-unknown-linux-gnu/debug/build/tensorflow-sys-7883383401eb69f9/out/libtensorflow_framework.so.2)
==2496383==    by 0x597A204: x509_verify_param_zero (in /home/mdenty/tldr-rs/tldr-rs/target/x86_64-unknown-linux-gnu/debug/build/tensorflow-sys-7883383401eb69f9/out/libtensorflow_framework.so.2)
==2496383==    by 0x597A276: X509_VERIFY_PARAM_free (in /home/mdenty/tldr-rs/tldr-rs/target/x86_64-unknown-linux-gnu/debug/build/tensorflow-sys-7883383401eb69f9/out/libtensorflow_framework.so.2)
==2496383==    by 0x58DBFFC: bssl::ssl_crypto_x509_ssl_ctx_free(ssl_ctx_st*) (in /home/mdenty/tldr-rs/tldr-rs/target/x86_64-unknown-linux-gnu/debug/build/tensorflow-sys-7883383401eb69f9/out/libtensorflow_framework.so.2)
==2496383==    by 0x58D0B65: ssl_ctx_st::~ssl_ctx_st() (in /home/mdenty/tldr-rs/tldr-rs/target/x86_64-unknown-linux-gnu/debug/build/tensorflow-sys-7883383401eb69f9/out/libtensorflow_framework.so.2)
==2496383==    by 0x58D0CA7: SSL_CTX_free (in /home/mdenty/tldr-rs/tldr-rs/target/x86_64-unknown-linux-gnu/debug/build/tensorflow-sys-7883383401eb69f9/out/libtensorflow_framework.so.2)
==2496383==    by 0xF1B2FD: <openssl::ssl::SslContext as core::ops::drop::Drop>::drop (lib.rs:241)
==2496383==    by 0xF1F099: core::ptr::drop_in_place<openssl::ssl::SslContext> (mod.rs:497)
==2496383==    by 0xEBBECA: core::ptr::drop_in_place<openssl::ssl::connector::SslConnector> (mod.rs:497)
==2496383==    by 0xEBBEAA: core::ptr::drop_in_place<native_tls::imp::TlsConnector> (mod.rs:497)
==2496383==    by 0xEBBE9A: core::ptr::drop_in_place<native_tls::TlsConnector> (mod.rs:497)
==2496383==    by 0xD4B26B: core::ptr::drop_in_place<reqwest::connect::Inner> (mod.rs:497)
==2496383==  If you believe this happened as a result of a stack
==2496383==  overflow in your program's main thread (unlikely but
==2496383==  possible), you can try to increase the size of the
==2496383==  main thread stack using the --main-stacksize= flag.
==2496383==  The main thread stack size used in this run was 8388608.
==2496383==
==2496383== HEAP SUMMARY:
==2496383==     in use at exit: 330,598,102 bytes in 3,286,816 blocks
==2496383==   total heap usage: 19,176,100 allocs, 15,889,286 frees, 1,451,011,642 bytes allocated
==2496383==
==2496383== LEAK SUMMARY:
==2496383==    definitely lost: 352 bytes in 3 blocks
==2496383==    indirectly lost: 13 bytes in 3 blocks
==2496383==      possibly lost: 2,111,031 bytes in 41,965 blocks
==2496383==    still reachable: 328,486,706 bytes in 3,244,845 blocks
==2496383==                       of which reachable via heuristic:
==2496383==                         length64           : 691,442 bytes in 13,414 blocks
==2496383==                         newarray           : 2,408,360 bytes in 8,441 blocks
==2496383==                         multipleinheritance: 576 bytes in 1 blocks
==2496383==         suppressed: 0 bytes in 0 blocks
==2496383== Rerun with --leak-check=full to see details of leaked memory
==2496383==
==2496383== Use --track-origins=yes to see where uninitialised values come from
==2496383== For lists of detected and suppressed errors, rerun with: -s
==2496383== ERROR SUMMARY: 1888 errors from 35 contexts (suppressed: 0 from 0)
fish: Job 1, 'valgrind target/x86_64-unknown-…' terminated by signal SIGSEGV (Address boundary error)

As you can see the problem arises when reqwestdrops a connection : core::ptr::drop_in_place<reqwest::connect::Inner>
where it calls OPENSSL_free inside tensorflow!
My program is a web server running rocket for inference with tensorflow, the reqwest is just to call itself and preload the model.
If I remove the preloading part (and all calls to reqwest), valgrind stops yelling at me.
So, as a workaround, I've just put the offending line of code and disabled / enable it at runtime.
    if std::env::var("INIT_WITH_FAKE").unwrap_or("false".to_owned()) == String::from("true") {
        init_with_fake_data();
    }

You could try to disabling the default-features and enabling rustls-tls.

Tested: it works. For future reference, added default-features = false, and rustls-tls in the feature list.
reqwest = { version = "0.11.13", default-features = false, features = [
    "blocking",
    "stream",
    "multipart",
    "rustls-tls",
] }


cilium: fixing segfault in (*policyWatcher).CCNPWatch()

Signed-off-by: Wazir Ahmed<EMAIL_ADDRESS>

Merging this PR without proper review since the fix is needed by other teams who are depended on Cilium VM. Any comments on this PR will be addressed later in the future PRs.


e2e Tests: Create tests for embedded pages

Create tests that visit the IFRAME pages and validate that they load as expected.

Closing this - we are working to retire the embedded pages.


subnamespace support?

We support categories in blocks, can we support 1 level subnamespace in TypeScript?

Won't fix for now.


Add some convenience shortcuts for specifying basemaps when using ipyleaflet

I do this a lot...
ag3.plot_samples_interactive_map(basemap=ipyleaflet.basemaps.OpenStreetMap.Mapnik)

...but I can never remember the exact location of the Mapnik basemap inside ipyleaflet. It would be easier if I could do this...
ag3.plot_samples_interactive_map(basemap="mapnik")

...and have similar shortcuts for other basemaps.

I suppose we could switch on type(basemap) == str.

Closed by merged PR #372. We can open separate issues for a dropdown and custom marker icon support.


Websocket: UI #1

Description
It's time to support the WebSocket for Proxyman.
This UI ticket should be implement at the same time with this Websocket ticket: https://github.com/ProxymanApp/proxyman-windows-linux/issues/297
It's important because we implement the model and display it on the app for testing UI.
How to test WebSocket

Open Proxyman for macOS
Clone this repo: https://github.com/NghiaTranUIT/websocket-usercases
Start Proxyman for macOS on port 9090
npm i
npm run start_ws
Observe the WebSocket flow on the app

Repeat with npm run start_wss for Secure WebSocket  (WSS)
Repeat with/without enabling the SSL Proxying on the WSS -> Verify we can see the content of the Secure Websocket

Acceptance Criteria
1. UI

Able to filter the WebSocket with the WebSocket filter button
If it's a WebSocket -> Use ws or wss in the protocol
Able to show Request/Response of the Websocket

2. Websocket Tab

Show a list of WebSocket messages as a table
By default, only display two columns: Data and Time

Can Right-Click on the TableView Header -> Show the Custom Column -> Toggle to show/hide column
Support Type and Length column if it's enabled
The display Columns data should be persisted for the next launch.

3. Screenshot and Video

https://github.com/ProxymanApp/proxyman-windows-linux/assets/5878421/0c3f337a-3ea9-44f3-8ebb-db7687248986
4. WebSocket Message Previewer

It's the Monaco Editor
Please note that a WebSocket message Opcode is defined:

public enum WebSocketOpcode: UInt8, Codable {
  case continuationFrame = 0x0
  case textFrame = 0x1
  case binaryFrame = 0x2
  case connectionClose = 0x8
  case ping = 0x9
  case pong = 0xA
}

Ping @NghiaTranUIT to get the file WebsocketMessageReceipt, so you can understand how it's displayed 👍
If it's a TextFrame: Detect if it's a JSON (Try to parse it) -> Auto prettify it

Update requirement
1. Columns

Able to sort the time when clicking on the Time columns
New WebSocket message should be appended at the top or at the end (Depending on how the Time Column is sorted (ASC or DESC))

https://github.com/ProxymanApp/proxyman-windows-linux/assets/5878421/35f48f60-2e21-419e-a449-5d7a7a64646c
2. Filter options

By default, the All is selected:
All: Show both client & server web socket messages
Sent: Only show the Client message
Receive: Only show Server Message
⚠ Make sure that the new message should be displayed correctly too.

This option isn't persisted to the next launch. However, it should be stored in memory, so when we select another Websocket, this option remains.

3. Preview Options

Don't need to implement the Tree View. We don't support it for now
Support Hex or Preview Mode (Monaco Editor)


getting-started/bookshelf: add /errors and /logs and more region tags

Summary of changes:

Added the /errors and /logs endpoints for the tutorial, which send an error to Error Reporting and log a message, respectively.
Renamed config.go to bookshelf.go, since it's more descriptive.
Switched the logging to have notice-level and error-level loggers. I'm not sure about this API, but wasn't sure of a better one. I wanted an easy way to check+control logs from tests and using log.Logger (from the stdlib) is easy to mock out.
Removed the Close function. The firestore.Client is passed by the caller, so the caller should be responsible for calling Close. The memory db doesn't really need Close, either, since it's just a map.

Questions:

The APIs for appError, appErrorf, and Execute (template) are a little weird with having to pass around a Bookshelf and http.Request. Ideas for another API? It seems useful to have the request information.
cloud.google.com/go/logging supports attaching an http.Request then automatically pulling information out of it. But, combining that API with using log.Logger is a little awkward. Could make Bookshelf.logger and Bookshelf.errLogger of type func(r *http.Request) *log.Logger. That way, we can use it like b.logger(r).Println(...), which would add in the request info, but it's a little difficult to understand at first glance. Especially because we can't use logger.StandardLogger any more, we would need to copy that part of the logging package out and adapt it to add request info (to get easy severity settings).

I decided this was too complicated and didn't add the http.Request to the logs.

Thanks!


Duplicate videos in europython-2011

It looks like some of the videos from the europython 2011 event are duplicated such as
http://pyvideo.org/europython-2011/5-years-of-bad-ideas.html
http://pyvideo.org/europython-2011/5-years-of-bad-ideas-0.html
and the corresponding data files
https://github.com/pyvideo/data/blob/master/europython-2011/videos/5-years-of-bad-ideas-0.json
https://github.com/pyvideo/data/blob/master/europython-2011/videos/5-years-of-bad-ideas.json
In all cases, it looks like most of the metadata is identical with the exception of the video urls (and thumbnail urls). Looks like there are ~50 videos that have duplicates
My suggestion would be to merge the data files and use the most recently uploaded video as the video url. If that sounds reasonable to people, I'll go ahead make the changes and open a PR 😄

Thanks for the issue @smilin-desperado and your PR offer, I will put you as assignee of the issue.
What I have done when I found something like this, is merge the data files and use all the videos.
Example:

Delete http://pyvideo.org/europython-2011/5-years-of-bad-ideas-0.html
Edit video section in http://pyvideo.org/europython-2011/5-years-of-bad-ideas.html like this:

  "videos": [
    {
      "length": 0,
      "type": "youtube",
      "url": "http://www.youtube.com/watch?v=8e0l_Dt28MQ"
    },
    {
      "length": 0,
      "type": "youtube",
      "url": "http://www.youtube.com/watch?v=bpjHa0G9X5w"
    }
  ]

If you put the most recent first, the second will be a backup option for the user.


Add Privacy Policy

@micchickenburger , I'm assigning this one to you as the UI is scaled and you'll want to implement the actual policy when ready.


Figure out why at least parts of the Checker Framework build apparently run twice

For example, in https://github.com/jspecify/nullness-checker-for-checker-framework/actions/runs/3185722197/jobs/5195599320 (which comes after https://github.com/jspecify/nullness-checker-for-checker-framework/pull/39), I see the following twice:
running "./gradlew assemble" for checker-framework

That apparently includes actual work being done twice for (for example):
> Task :checker-qual-android:javadoc

I think it's because the Checker Framework build runs a shell script that reentrantly runs the build. I'd love to get rid of that shell script and make everything Gradle.


Improve fromTemplate.test.ts to avoid intermittent error on CI

Why do we need this improvement?
There is some error that occurs sporadically when running tests on CI since some days ago, always during the Test NodeJS PR - macos-latest job:
1 failing

1) template
      should install template
        should install template:
    Error: Timeout of 100000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/runner/work/cli/cli/test/integration/bundle/bundle.test.ts)
     at listOnTimeout (node:internal/timers:569:17)
     at processTimers (node:internal/timers:512:7)

Besides, the error displayed points to bundle.test.ts instead of fromTemplate.test.ts, where the error is actually happening.
cc @Souvikns
How will this change help?
This change will avoid the CI fails intermittently for the reason described on the error, so we don't need to trigger manually the GH workflow again to make the CI pass.
Screenshots
No response
How could it be implemented/designed?
The timeout set for that test might be increased or some other change should be applied to the make the test pass.
🚧 Breaking changes
No
👀 Have you checked for similar open issues?

[X] I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

[X] I have read the Contributing Guidelines

Are you willing to work on this issue?
None

Can second. Have faced this issue multiple times till now.

Hello @Shurtu-gal, I am interested in working on this issue. So as suggested in the issue, do I increase the timeout period or do I need to look for a more rigorous fix to the issue?

Hello @Shurtu-gal, I am interested in working on this issue. So as suggested in the issue, do I increase the timeout period or do I need to look for a more rigorous fix to the issue?

Although increasing timeout should work as per theory, it would be better if we solve the underlying problem unless macos requires more time. Also some logs mention failure in installation as well.
ref: https://github.com/asyncapi/cli/actions/runs/8750042993/job/24012793752#step:10:419

I think it is happening due to this test specifically. It is testing the --install flag and it installs a new template over the internet which is very slow and flaky.
https://github.com/asyncapi/cli/blob/6ba4b47dae33cc04ffa9de1e5786810cae21bff6/test/integration/generate/fromTemplate.test.ts#L152

I am not fully familiar with the codebase of cli but is it possible that we cache the template and check it against the cache and install it if they are not the same.

Is there any particular reason though because of which the template generation is happening so slowly only for MacOS?

This seems like common in other projects, For example: https://github.com/asyncapi/parser-js/actions/runs/9348904713/job/25729559713?pr=999

This seems like common in other projects, For example: https://github.com/asyncapi/parser-js/actions/runs/9348904713/job/25729559713?pr=999

Maybe github is downgrading the mac instances or lowering the quota. Can never know 🤷🏻.


Create ur.js

Please add Urdu language translation which i have commited.

Please read the contributing guidelines and create files under /src instead.  Don't forget unit tests please.

@yethrosh any progress on this?

Hello, I want to contribute for urdu language so, can I continue with this PR and complete this?
Thanks.

@narainsagar go for it. Looks like this one isn't going to be moved ahead so we're happy to have someone else do it.

@yethrosh let me know if you're writing tests for this & update this PR? otherwise I have started on it..
FYI: I will be keeping your name in the authors list as well because I am (somehow) using your written ur.js code from this PR..
Thanks.

FYI: @maggiepint I was off for few weeks and Looks like someone had already taken this on #3641 and it looks quite good to me as well.  So I think better to continue with that..
And @maggiepint, I've opened a new PR for sindhi translation support on #3659.
Cheers,

Closing due to new PRs


Goland can not find wsl file path

Windows Version
10.0.19045.4780
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
Linux version <IP_ADDRESS>-microsoft-standard-WSL2
Distro Version
Ubuntu 22.04
Other Software
Goland version：2024.02 and 2024.01
My Goland as well as idea can't read the path of wsl and can't discover the wsl VM, I reinstalled many times wsl and Goland no way, I also followed gateway also can't find wsl. i can't find any path of wsl in the jet home product but can return to the wsl VM directly from win, I tried many wsl VMs including 22.04. can you help me, the whole net is not retrieving the information including chatgpt

I am also make a issue in Goland https://youtrack.jetbrains.com/issue/GO-17404/Goland-can-not-find-wsl-path-instance
Repro Steps
1.Previously I was able to access the wsl2 VM in Goland and I was using it until I got annoyed with an error.
First I accidentally overwrote the path variable when I installed the software.
Secondly I went searching how to fix it going to the winddow registry to look for environment variables to reply to.
Finally I was completely unable to access the wsl path in Goland, I tried reinstalling many versions of wsl and Goland. but I was never able to recover, for wsl I installed unbutn22.02 and wsl install default installs in general, for Goland I installed 2024.01 and 2024.02.
I searched the whole web without how to solve it, I really hope to ask you guys for help, thank you!
Translated with DeepL.com (free version)
Expected Behavior
How should I get my Goland to recognize the wsl path again, is there any solution, is it something to do with environment variables and how do I set them up?
Actual Behavior
there is nothing
Diagnostic Logs
Here are the contents of my environment variables

can you help me？I really need a help

i solveit PATH should have the following entries "C:\Windows\System32" and "C:\Windows\System32\WindowsPowerShell\v1.0\


Configurable invoker count for handling blocking controller functions

Allows the number of invoker actors be configured from application.conf. The default is still 3, but should probably be increased as I'm sure many applications use blocking APIs. I'm sure there's plenty more worked planned on the actors setup, but this change allows for master production deployment for those of us that like living on the bleeding edge.

Thanks for the patch. We are in the process of upgrading to akka 2.0 where everything will be configurable via application.conf. I would close this for now but please let us know if anything like this is needed after the upgrade. Thanks again.


Configuration Issue.

I guess the only way to really say this is that the config options are not working in the slightest, and I mean everything. Could it be due to the fact I'm on a server? Really hope there's a fix for this because I do indeed enjoy this mod.

On a server, you need to modify its config file directly. Changing settings on the client doesn't do anything since they will be synchronized from server to client upon connecting - with the exception of client-side settings like the opacity of the enchantment effect on worn backpacks.
You could use the GUI to change any settings to what you'd like, then copy the config/WearableBackpacks.cfg file from your client to the server directory. You will need to restart the server once for it to read the new settings.
I hope this helps / works.

I don't know how to do any of this, sorry for being a pain.

You could try to look up a walk-through on how to edit / copy server side options or config files. Good luck. Will close for now.


webpack building prints tons of unexpectedly found "\n ... when pnpm host builds webpack

pnpm host build prints tons of unexpectedly found "\n ... on webpack building

Hey, this is a known issue that we are tracking internally, but thanks for filing a report!


Tile 21339 from 20231231: only 1 standard star on petal 5 causing loss of whole petal - possible to reprocess?

Looks like only 1 stdstar on p5 causes the whole petal to be flagged.  Is there any point ignoring that and trying to process it anyway?

This is the same issue as https://github.com/desihub/desisurveyops/issues/82  .  We can discuss making progress on 82 at today's telecon but let's just mark this tile as good for the moment; that's clearly a long term item.  Can you reQA as good, Dustin?

Done!


Check if server is configured on web app init and forward to onboarding

Issue: #784
Point to the ERB onboarding for now while we're waiting on the webapp oboarding to be complete

[x] I have run rspec and corrected all errors
[x] I have run rubocop and corrected all errors
[x] I have tested this change locally and tried to launch the server as well as access a project, and with that at least one build
[x] If there is an existing issue, make sure to add Fixes ... as part of the PR body to reference the issue you're solving

@taquitos with @nakhbari on vacation, we should probably take this over. Looks like we caused some merge conflicts though 😢

Alright, I resolved the merge conflicts 👍

Cool, so to avoid having this PR open any longer, I'm gonna make a call here and merge this. As this is an unauthenticated request, I'm in favor of exposing as little information as we can for now. So having a boolean value is okay and does what we need it for. As we implement the onboarding, we can refine or add new API endpoints 👍


Uncaught Can't find buttonInnerHTML file

[Enter steps to reproduce:]

...
...

Atom: 1.45.0 x64
Electron: 4.2.7
OS: Microsoft Windows 10 Pro
Thrown From: Atom Core
Stack Trace
Uncaught Can't find buttonInnerHTML file
At G:\Udemy\atom\app-1.45.0\resources\app\static\<embedded>:11

undefined

Commands
  4x -3:14.4.0 core:backspace (input.hidden-input)
     -3:13.5.0 intentions:highlight (input.hidden-input)
     -3:13.1.0 core:save (input.hidden-input)
     -2:01.0 intentions:highlight (input.hidden-input)
     -2:00.7.0 core:save (input.hidden-input)
     -1:59.7.0 intentions:highlight (input.hidden-input)
     -1:59.4.0 core:save (input.hidden-input)
     -1:51.4.0 core:copy (span.)
     -0:32.7.0 intentions:highlight (input.hidden-input)
     -0:32.4.0 core:save (input.hidden-input)
  5x -0:20.4.0 intentions:highlight (input.hidden-input)
     -0:19.8.0 emmet:encode-decode-data-url (input.hidden-input)
     -0:19 core:backspace (input.hidden-input)
     -0:17.5.0 core:move-right (input.hidden-input)
  2x -0:16.3.0 core:backspace (input.hidden-input)
     -0:03.5.0 autocomplete-plus:confirm (input.hidden-input)

Non-Core Packages
atom-beautify 0.33.4
atom-html-preview 0.2.6
atom-ternjs 0.20.0
autoclose-html 0.23.0
busy-signal 2.0.1
csslint 1.2.0
emmet 2.4.3
hyperclick 0.1.5
intentions 1.1.5
language-ejs 0.4.0
linter 2.3.1
linter-eslint 8.5.5
linter-ui-default 1.8.1
pigments 0.40.2
Sublime-Style-Column-Selection 1.7.5

Thanks for reaching out!
We require the template to be filled out on all new issues and pull requests. We do this so that we can be certain we have all the information we need to address your submission efficiently. This allows the maintainers to spend more time fixing bugs, implementing enhancements, and reviewing and merging pull requests.
Thanks for understanding and meeting us half way 😀


Updated blogs with a images

👷 Deploy Preview for balkantransport processing.
🔨 Explore the source changes: b99579289a6c23999a768e2cc871bc0225550e85
🔍 Inspect the deploy log: https://app.netlify.com/sites/balkantransport/deploys/6123e8feeb2c3800079edbcc


Add code highlighting to lv-code

Change lv-code to be only inline, and extract complete multi line code block for docs only. Then use prism-js

Nah, good without formatting


Multi-version plotting & SMOKE_TEST

This PR introduces including plots in the examples in light and dark version.
The requirement is that suitable .svg files are contained in the corresponding example folders. These need to be named like the example itself, together with "_light" and "_dark". Note that both of these files need to be present.
In addition, this PR changes the botorch_analytical.py example to show how corresponding files can be created automatically using a pre-defined .json. Furthermore, the file is changed in such a way to demonstrate the use of a SMOKE_TEST environment variable.

@AdrianSosic @Scienfitz I force pushed the newest version. Please have a very quick look if this is gucci for you and ping me if this can be merged. Explicitly re-asking due to the upload of the svg files and how the potential override of files is handled.

@AdrianSosic I am finally done with this. Some things have changed a bit:

The plots are not created if SMOKE_TEST is set, the function then just returns: If we just want to test the code, there is no need to create plots. Also, this avoids some complicated handling of the paths and stuff due to the files being executed as python files and jupyter files.
I have included a warning if no kwargs are given.


Early stopping in model

How can we implement early stopping ?

It's all Keras/TF under the hood so just use standard Keras SDK

I have figured it out, just have to use in the callback. Thanks for the help.


Add Sphinx-copybutton extension to copy code with a click

As a fellow trainer who stumbled with correct copy-paste mousing dexterity on occasion, I decided to install this in the Pyramid docs.
https://sphinx-copybutton.readthedocs.io/en/latest/
Would this be useful, and if so would you accept a PR for the Plone Training docs?

Sorry for liking but without any further action.
Copy button is now part of future PR of branch https://github.com/plone/training/tree/ksuess-theme-playground


[5.7] Cleaner package discovery output

This is a little opinionated but I think that there is no need to repeat Discovered Package:
Before

After

Easier to read, harder to parse.

I think it's fine as is. Thanks.


Service behind NordVPN started TIMING OUT (used to work, now doesn't)

NOTE: This configuration worked for about a year. It was surviving docker/docker-compose updates as well as traefik ones under v1. I noticed it stopped working today and only thing which happened was I upgraded the host of new docker version (via apt update/upgrade).
UPDATE: I downgraded docker-ce and docker-ce-cli to the previous version and issue is still present. I am isolating problem to the traefik itself? But still makes me wonder what has changed since it stopped working by itself..
I am having service (some client) as a docker container accessing the Internet via nordvpn container (network_mode: container:nordvpn). So far everything works as expected. However, routing to the service via its FQDN registered through labels in docker-compose service section stopped working (gateway timeout). Tried via file settings in toml file but with the same result. If I remove the NordVPN step all works as expected but stops right after I put it back on.. Tried some other different service/client with exactly the same behavior.
Error in the browser is Gateway timed out. Domain is successfully registered inside acme.json file.
Just a note, there is no other option accessing the service this way only via registering it on the particular subdomain. When network_mode: container:nordvpn is used no ports or exposed are allowed. Also you cannot access host network from the container as well - docker limitation on the linux.
I tried upgrading nordvpn and client to the latest version and did not change.
INFO:
traefik:v1.7.24 (was happening at 1.7.20 as well)
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:        10
Codename:       buster

uname -a
Linux caradhras 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux

docker -v
Docker version 19.03.8, build afacb8b7f0

docker-compose -v
docker-compose version 1.25.3, build d4d1b42b

Here is the debug output while accessing the service at client.example.com:
traefik       | time="2020-04-19T00:32:04Z" level=debug msg="'502 Bad Gateway' caused by: read tcp <IP_ADDRESS>:55982-><IP_ADDRESS>:52880: read: connection reset by peer"
traefik       | time="2020-04-19T00:32:04Z" level=debug msg="vulcand/oxy/forward/http: Round trip: http://<IP_ADDRESS>:52880, code: 502, Length: 11, duration: 31.519073882s tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:client.example.com"
traefik       | time="2020-04-19T00:32:04Z" level=debug msg="vulcand/oxy/forward/http: completed ServeHttp on request" Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"http\",\"Opaque\":\"\",\"User\":null,\"Host\":\"<IP_ADDRESS>:52880\",\"Path\":\"\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/1.1\",\"ProtoMajor\":1,\"ProtoMinor\":1,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\"],\"Accept-Encoding\":[\"gzip\"],\"Accept-Language\":[\"en-GB,en;q=0.9,sk-SK;q=0.8,sk;q=0.7,en-US;q=0.6,cs;q=0.5\"],\"Cache-Control\":[\"max-age=0\"],\"Cdn-Loop\":[\"cloudflare\"],\"Cf-Connecting-Ip\":[\"<IP_ADDRESS>\"],\"Cf-Ipcountry\":[\"CZ\"],\"Cf-Ray\":[\"586285f3cedbfc9d-VIE\"],\"Cf-Request-Id\":[\"0231720c5f0000fc9d8489f200000001\"],\"Cf-Visitor\":[\"{\\\"scheme\\\":\\\"https\\\"}\"],\"Connection\":[\"Keep-Alive\"],\"Cookie\":[\"__cfduid=dc23e9ddb2199cdf12c21581894613bf91587253874\"],\"Referer\":[\"https://client.example.com/\"],\"Sec-Fetch-Dest\":[\"document\"],\"Sec-Fetch-Mode\":[\"navigate\"],\"Sec-Fetch-Site\":[\"same-origin\"],\"Sec-Fetch-User\":[\"?1\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36\"],\"X-Forwarded-For\":[\"<IP_ADDRESS>\"],\"X-Forwarded-Proto\":[\"https\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"client.example.com\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"<IP_ADDRESS>:58136\",\"RequestURI\":\"/\",\"TLS\":null}"
traefik       | time="2020-04-19T00:32:04Z" level=debug msg="vulcand/oxy/forward: completed ServeHttp on request" Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"http\",\"Opaque\":\"\",\"User\":null,\"Host\":\"<IP_ADDRESS>:52880\",\"Path\":\"\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/1.1\",\"ProtoMajor\":1,\"ProtoMinor\":1,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\"],\"Accept-Encoding\":[\"gzip\"],\"Accept-Language\":[\"en-GB,en;q=0.9,sk-SK;q=0.8,sk;q=0.7,en-US;q=0.6,cs;q=0.5\"],\"Cache-Control\":[\"max-age=0\"],\"Cdn-Loop\":[\"cloudflare\"],\"Cf-Connecting-Ip\":[\"<IP_ADDRESS>\"],\"Cf-Ipcountry\":[\"CZ\"],\"Cf-Ray\":[\"586285f3cedbfc9d-VIE\"],\"Cf-Request-Id\":[\"0231720c5f0000fc9d8489f200000001\"],\"Cf-Visitor\":[\"{\\\"scheme\\\":\\\"https\\\"}\"],\"Connection\":[\"Keep-Alive\"],\"Cookie\":[\"__cfduid=dc23e9ddb2199cdf12c21581894613bf91587253874\"],\"Referer\":[\"https://client.example.com/\"],\"Sec-Fetch-Dest\":[\"document\"],\"Sec-Fetch-Mode\":[\"navigate\"],\"Sec-Fetch-Site\":[\"same-origin\"],\"Sec-Fetch-User\":[\"?1\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36\"],\"X-Forwarded-For\":[\"<IP_ADDRESS>\"],\"X-Forwarded-Proto\":[\"https\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"client.example.com\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"<IP_ADDRESS>:58136\",\"RequestURI\":\"/\",\"TLS\":null}"
traefik       | time="2020-04-19T00:32:04Z" level=debug msg="vulcand/oxy/roundrobin/rr: completed ServeHttp on request" Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"Proto\":\"HTTP/1.1\",\"ProtoMajor\":1,\"ProtoMinor\":1,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\"],\"Accept-Encoding\":[\"gzip\"],\"Accept-Language\":[\"en-GB,en;q=0.9,sk-SK;q=0.8,sk;q=0.7,en-US;q=0.6,cs;q=0.5\"],\"Cache-Control\":[\"max-age=0\"],\"Cdn-Loop\":[\"cloudflare\"],\"Cf-Connecting-Ip\":[\"<IP_ADDRESS>\"],\"Cf-Ipcountry\":[\"CZ\"],\"Cf-Ray\":[\"586285f3cedbfc9d-VIE\"],\"Cf-Request-Id\":[\"0231720c5f0000fc9d8489f200000001\"],\"Cf-Visitor\":[\"{\\\"scheme\\\":\\\"https\\\"}\"],\"Connection\":[\"Keep-Alive\"],\"Cookie\":[\"__cfduid=dc23e9ddb2199cdf12c21581894613bf91587253874\"],\"Referer\":[\"https://client.example.com/\"],\"Sec-Fetch-Dest\":[\"document\"],\"Sec-Fetch-Mode\":[\"navigate\"],\"Sec-Fetch-Site\":[\"same-origin\"],\"Sec-Fetch-User\":[\"?1\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36\"],\"X-Forwarded-For\":[\"<IP_ADDRESS>\"],\"X-Forwarded-Proto\":[\"https\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"client.example.com\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"<IP_ADDRESS>:58136\",\"RequestURI\":\"/\",\"TLS\":null}"

And from access.log:
MY_PUBLIC_IP - - [18/Apr/2020:23:49:17 +0000] "GET / HTTP/1.1" 504 15 "https://client.example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36" 333 "Host-client-example-com-1" "http://<IP_ADDRESS>:52880" 30000ms

Any directions/feedback will be appreciated since I am clueless now :/

Hi! I'm Træfiker :robot: the bot in charge of communication regulation.
Thanks for your interest in Traefik!
We dedicate the issue tracker to bug reports and feature requests only. My advanced AI has spotted that your issue might be a configuration problem or relates to something that doesn't look like a bug.
To confirm this, please join our Community Forum and reach out to us on the Traefik section.
In case I'm wrong (well, that would be embarrassing :sweat_smile:), my developers will re-open the issue and fix me!
In the meantime, you can double check Traefik's documentation.

anybody even bother to even read this problem?? thanks


Improvement optimization for decimal operator

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

run buildall

run buildall


Future Talent Ready

[Enter feedback here]

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: f815c98d-c54b-a6cb-b77b-27c9fa99b3a3
Version Independent ID: f78699f2-a847-f5cc-54bb-2730faf0b755
Content: Build solutions with availability zones - Azure Architecture Center
Content Source: docs/high-availability/building-solutions-for-high-availability.yml
Service: architecture-center
Sub-service: azure-guide
GitHub Login: @EdPrice-MSFT
Microsoft Alias: edprice

@Ranu311 As there was no response. We will go ahead and close this issue.

Please do not closed this.. Actually, I have completed all still showing in
progress pls help me in this
On Mon, 4 Apr, 2022, 5:44 pm MayankBargali-MSFT, @.***>
wrote:

Closed #3370
https://github.com/MicrosoftDocs/architecture-center/issues/3370.
—
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/architecture-center/issues/3370#event-6362494463,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARCFI6RREK5IYLQN7ZEBLXTVDLMJBANCNFSM5R65HWQA
.
You are receiving this because you were mentioned.Message ID:
<MicrosoftDocs/architecture-center/issue/3370/issue_event/6362494463@
github.com>


Add Singapore and Taiwan

These are two countries commonly cited as having implemented successful measures against COVID-19.

Thanks @exclipy! I rolled this in to #99.


Update ORDO subsets

Based on @joeflack4 and @twhetzel work in https://github.com/monarch-initiative/mondo-ingest/pull/510
This commit updates the ORDO subsets in Mondo which were outdated for years. They are needed for the new ORDO RD distiniction.

Seems to me the error is due to an unnormalised Mondo?

Amazzzzzing! Thanks for checking all that so diligently!


Fix package.repository

bors r+

bors r+

Codecov Report

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

@@          Coverage Diff           @@
##           master      #2   +/-   ##
======================================
  Coverage    0.00%   0.00%
======================================
  Files          16      16
  Lines        2096    2096
  Branches      979     979
======================================
  Misses       2086    2086
  Partials       10      10

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 c82c389...c50b689. Read the comment docs.


Site, Region -> Location: Add all properties (geo fields, etc) of Site to Location

Include docs update for Site, Region in Location

Closed via #2964


Fix Docker Client Not Throwing Error Bug

****** Building ghcr.io/ucsd-ets/datascience-notebook, (not skipped)
ERROR:Unrecognized error;
init() missing 1 required positional argument: 'build_log'
ERROR:couldn't build ghcr.io/ucsd-ets/datascience-notebook:2023.4-docker-adapter-fix
INFO:*** Build-and-Test main loop: ghcr.io/ucsd-ets/datascience-notebook success ? False
There was a problem while building one of the images. Please consult logs.
Error: Process completed with exit code 1.
It seems like it's not triggering the build error, but it is triggering one of the generic errors when there's a faulty build


Add additional capabilities to layer on the base ones

Hi there!  One of your open issues mentions adding the possibility of adding more desiredCapabilities to the current session.
https://github.com/HashNuke/hound/issues/18
I had a similar need and came up with the following that still allows the tests to pass.  Thanks for your consideration.

@darksheik Thanks a lot. I'll check this out and merge it during the weekend. I'll also have to get the tests fixed. Selenium has been acting weird from the recent release.

@darksheik Thank you ~! Merged.


Add cri-o(and related pkgs) copr install method

This change adds 'crio_use_copr' variable to use copr pkgs
for cri-o install, instead of PAAS CRI-O repo. This is also
make it default because this repo no longer updated.

@dougbtv thank you for your review! Merged.


New Youtube Codes

How to update the new youtube codes?

There are 2 ways:
1- webscraping youtube comments with AI to get everything that looks like code and try (few attempts per video)
2- Adding codes manually in a JSON, so that the owner does it, or the community helps each other, in a raw.githubusercontent, like this guy here made:
https://github.com/Freddywhest/MemeFiBot-New/commit/be8e8c9ee467c1148ec4f5500d5dc1f7874a89e9#diff-13c0669a0daf7273bc4e71a5a6bc4272837d88f3fbe2079eae259d3ac5adc770R74
https://raw.githubusercontent.com/Freddywhest/WuykzEas0LDTwIhjYNYES5v7yZcQcK0B/refs/heads/main/iXcwT1vfYWUm7iZwCc3DJ4q9R71BBjy5jbYBQkSEnyYy6.json
I modified the bot (a lot workaround, to make it work with query_id and not user api and api hash)

#34 Made changes to the script to address this issue. But we will have to add the codes manually.


Make it easier to run the ruff

I would appreciate if a command ruff . can be there to lint all the files in the current working directory.

Hmm, ruff . should already work. What happens when you run that command?

Hmm, ruff . should already work. What happens when you run that command?

Ah it's already there, i think it might be better to write it in the document. So, I have made a pull request for it.

Closed by #2307.


adding XHTML file extension as an XML grammar

This request is a proposed resolution for https://github.com/Glavin001/atom-beautify/issues/755

Published to v0.28.22


Invalid token format

Steps to reproduce
var botClient = new Telegram.Bot.TelegramBotClient("461585999:AAF-5LthqW8mNVo-LEs14b9oV2z6PFCJRcA");
Why does it give "Invalid token format" error?

Did you get your token from @Botfather on Telegram?

It's the confusion "1" with "l", thank you.


Unsupported image format on Star Swarm

I'm currently working on GRVK which implements the Mantle API over Vulkan. The Star Swarm demo partially runs, however the game is trying to create images with the following properties:

format: VK_FORMAT_R32_UINT
type: VK_IMAGE_TYPE_3D
tiling: VK_IMAGE_TILING_LINEAR
usage: VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_STORAGE_BIT

AMDVLK doesn't support that combination, however 1D and 2D seem to work. I'd like to know if this could be fixed.
Edit: updated the usage flags as they were incorrect.

I missed some, here's the full list:

R32_UINT 3D linear TRANSFER_SRC | TRANSFER_DST | SAMPLED_BIT | STORAGE_BIT
BC4_UNORM_BLOCK 2D linear TRANSFER_SRC | TRANSFER_DST
BC7_UNORM_BLOCK 2D linear TRANSFER_SRC | TRANSFER_DST

I write a simple code to create an image with your create-info in vkcube, there is no error.
Could you give more detail about your demo code?


Adding note about billing for endpoints.

Adding note about billing for endpoints.

@ardalis : Thanks for your contribution! The author, @juliako, has been notified to review your proposed change.

@GitHubber17 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Feature/stylecop code analyzer

Additional clean up of the Headstart solution.
Updating namespaces to follow Pascal case naming convention, along with folder structure.
Added Cosmos test project to solution.
Removed unused legacy orchestration test project from repository.

Cosmos test project from solution as tests were folded into the Library Tests project.


feat(#534): Annotation Default Values Support

In this PR I added annotation default values support. Now we can correctly disassemble and assemble all annotations with their corresponding default values.
To check this I also added more examples to 'annotations' integration test.
Closes: #534.
History:

feat(#534): identify the problem with annotations default values
feat(#534): use DirectivesAnnotationDefault to read annotations default values
feat(#534): disassemble annotation default value
feat(#534): assemble annotation default values
feat(#534): identify the problem with annotation array default value
feat(#534): fix problem with empty array default value
feat(#534): add an empty array name in case of null value
feat(#534): add one more puzzle
feat(#534): disable spring-fat integration test
feat(#534): fix all qulice suggestions
feat(#534): downgrade jacoco limits

PR-Codex overview
This PR adds default values to annotations, refactors code for readability, and updates coverage ratios.
Detailed summary

Added writeTo method to BytecodeAnnotationValue
Added default values to JeoMethodAnnotation
Added defvalue method to XmlBytecode
Updated NestedAnnotation to target methods
Added defvalue method to XmlMethod
Refactored DirectivesMethodVisitor and DirectivesAnnotationVisitor
Updated coverage ratios in pom.xml
Added defvalue method to BytecodeMethod
Refactored DirectivesMethod for readability

The following files were skipped due to too many changes: src/main/java/org/eolang/jeo/representation/xmir/XmlDefaultValue.java, src/main/java/org/eolang/jeo/representation/bytecode/BytecodeDefaultValue.java, src/main/java/org/eolang/jeo/representation/directives/DirectivesDefaultValue.java

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@rultor merge


Support for RFC 4648 base32?

It would be convenient for me personally if this library supported a variant of ulid that was encoded in RFC 4648 base32 instead of Crockford's base32.  (Obviously, this would violate the ulid spec.)

Agreed with @RobThree


AssertionError: error in getting vqd Issue

Describe the bug
AssertionError: error in getting vqd
when i run the query "site:linkedin.com Anna Storåkers" to search profile in python.
the error is occurring. Only on the code. in the browser the query is working well.
Debug log
Add logging.basicConfig(level=logging.DEBUG) to the beginning of your script and attach log to the issue.
Screenshots
If applicable, add screenshots to help explain your problem.

Specify this information

OS windows
environment : python3.10.6
duckduckgo_search version latest version few days ago updated

try using a proxy server

residential proxy i used
but one more thing, the result is really limited here

30~50 result per one query

That's the way it should be.
Now the text search on duckduckgo.com gives a maximum of about 50 results, although it used to be about 200.

Thank you for your support. How can i increase the result count? do you know about another search engine? I need more, and more results. Actually i am gonna use google search engine. but the google custom search is high price and we can't use that for industry.
So i am looking for search engine that is programmable and having more results

Just send several different queries, but phrase them differently (synonym words or other phrases, but with the same meaning). And then aggregate all the results.

but there are performance problems, i am gonna make some search engine depend on the duckduckgo search engine. but if i increase them, and apply proxy, in this case it might slow down. could you kindly share your contact info. I am really interested in your library. and checked the github repo code carefully.

i have really urgent project. i used your library and i need your help.
gmail or telegram or linkedin?

which communication app is available for you?

I've sent you an e-mail

i just invited you on google chat


Interpreter is currently broken on FreeBSD

Attempting to run this snippet in the interpreter currently fails on FreeBSD:
$ crystal i
icr:1:0> require "json"
=> nil
icr:2:0> JSON.parse %({"a": 1})
undefined reference to `iconv_open' (Crystal::Loader::LoadError)

Interpreter specs are also failing with similar errors:
$ LLVM_CONFIG=/usr/local/bin/llvm-config14 bin/crystal spec --error-trace spec/compiler/interpreter/integration_spec.cr
Failures:

  1) Crystal::Repl::Interpreter integration does CSV
     Failure/Error: interpret(<<-CODE, prelude: "prelude").should eq((1..6).sum.to_s)

       Unhandled exception: undefined reference to `iconv_open' (Crystal::Loader::LoadError)
         from src/compiler/crystal/loader.cr:79:27 in 'find_symbol'
         from src/compiler/crystal/interpreter/context.cr:394:5 in 'c_function'
         from src/compiler/crystal/interpreter/compiler.cr:1969:17 in 'compile_lib_call'
...
  2) Crystal::Repl::Interpreter integration does JSON
     Failure/Error: interpret(<<-CODE, prelude: "prelude").should eq("6")

       Unhandled exception: undefined reference to `iconv_open' (Crystal::Loader::LoadError)
...
  3) Crystal::Repl::Interpreter integration does JSON::Serializable
     Failure/Error: interpret(<<-CODE, prelude: "prelude").should eq("3")

       Unhandled exception: undefined reference to `iconv_open' (Crystal::Loader::LoadError)
         from src/compiler/crystal/loader.cr:79:27 in 'find_symbol'
...
  4) Crystal::Repl::Interpreter integration does IO.pipe (checks that StaticArray is passed correctly to C calls)
     Failure/Error: interpret(<<-CODE, prelude: "prelude").should eq(%("hello"))

       Unhandled exception: undefined reference to `iconv_open' (Crystal::Loader::LoadError)
         from src/compiler/crystal/loader.cr:79:27 in 'find_symbol'

The problem is that in FreeBSD iconv_XXXX are compatibility symbols, not visible via dlsym(3). Haskell project had the same issue and https://gitlab.haskell.org/ghc/ghc/-/issues/20354 provides extensive background and analysis, I believe similar fix can be applied to Crystal.

Are you able to link against a non-system libiconv using -Duse_libiconv?

No, because libiconv doesn't export __iconv:
$ LLVM_CONFIG=/usr/local/bin/llvm-config14 bin/crystal spec -Duse_libiconv spec/compiler/interpreter/integration_spec.cr
Showing last frame. Use --error-trace for full trace.

There was a problem expanding macro 'macro_37987820752'

Code in src/crystal/iconv.cr:59:5

 59 | {% if flag?(:freebsd) || flag?(:dragonfly) %}
      ^
Called macro defined in src/crystal/iconv.cr:59:5

 59 | {% if flag?(:freebsd) || flag?(:dragonfly) %}

Which expanded to:

 > 1 |
 > 2 |       if @skip_invalid
 > 3 |         return LibC.__iconv(@iconv, inbuf, inbytesleft, outbuf, outbytesleft, LibC::ICONV_F_HIDE_INVALID, out invalids)
                           ^------
Error: undefined fun '__iconv' for LibC

What about if that macro guard on line 59 also includes !flag?(:use_libiconv)? GNU libiconv shouldn't ever require the use of __iconv.

With !flag?(:use_libiconv), it links but specs fail in the same way.
Another solution would be to load __bsd_XXXX symbols when one of the iconv_XXXX is requested. Something like
     def find_symbol?(name : String) : Handle?
       {% if flag?(:freebsd) %}
         case name
         when "iconv" then name = "__bsd_iconv"
         when "iconv_close" then name = "__bsd_iconv_close"
         when "iconv_open" then name = "__bsd_iconv_open"
         when "__iconv" then name = "__bsd___iconv"
         end
       {% end %}
       @handles.each do |handle|
         address = LibC.dlsym(handle, name)
         return address if address
       end
     end

... or use normal symbol resolution and return iconv_XXXX symbols already linked in the executable (is there a way to get an address of LibC function in Crystal?)

Wait, does BSD have different function names for iconv? If so, the solution might be to use those at the lib definition.

FreeBSD libc has its own iconv implementation, these functions are exported with __bsd_ prefix (e.g. __bsd_iconv_open). But yes, this also fixes interpreters specs:
diff --git a/src/lib_c/x86_64-freebsd/c/iconv.cr b/src/lib_c/x86_64-freebsd/c/iconv.cr
index 7614fc00f..0bac91b17 100644
--- a/src/lib_c/x86_64-freebsd/c/iconv.cr
+++ b/src/lib_c/x86_64-freebsd/c/iconv.cr
@@ -3,10 +3,10 @@ require "./stddef"
 lib LibC
   type IconvT = Void*

-  fun iconv(x0 : IconvT, x1 : Char**, x2 : SizeT*, x3 : Char**, x4 : SizeT*) : SizeT
-  fun iconv_close(x0 : IconvT) : Int
-  fun iconv_open(x0 : Char*, x1 : Char*) : IconvT
+  fun iconv = __bsd_iconv(x0 : IconvT, x1 : Char**, x2 : SizeT*, x3 : Char**, x4 : SizeT*) : SizeT
+  fun iconv_close = __bsd_iconv_close(x0 : IconvT) : Int
+  fun iconv_open = __bsd_iconv_open(x0 : Char*, x1 : Char*) : IconvT

   ICONV_F_HIDE_INVALID = 0x0001
-  fun __iconv(x0 : IconvT, x1 : Char**, x2 : SizeT*, x3 : Char**, x4 : SizeT*, flags : UInt32, invalids : SizeT*) : SizeT
+  fun __iconv = __bsd___iconv(x0 : IconvT, x1 : Char**, x2 : SizeT*, x3 : Char**, x4 : SizeT*, flags : UInt32, invalids : SizeT*) : SizeT
 end


[Example] Dart - Uploading images

Create an example that shows how to upload images using the Cloudinary Dart SDK
If it makes sense, this can be a script that can be executed via the terminal.
The example can be the same as the Node.js SDK example, but using the Dart SDK.
https://github.com/cloudinary-community/cloudinary-examples/tree/main/examples/node-image-upload

I'm new to Dart but happy to help with this

that would be great! thank you @adityaoberai, reviewing the other one now 🙌

@colbyfayock the PR is ready to review


mistake in rbd.in causes it to fail

I see this file:  https://github.com/ceph/ceph/commits/6a57358add1157629a6d1f72ae48777e134c99e6/src/ocf/rbd.in
commit 6a57358add1157629a6d1f72ae48777e134c99e6
Has the latest commit from over a year ago appears to have a problem, for example the command changes in the diff don't even work.  See for an example:  https://lists.clusterlabs.org/pipermail/users/2019-February/016292.html

@unixman99 I think you wanted to open this issue against ceph/ceph and not ceph/ceph-ansible right ?


report scheduler - various issues

[x] scheduled html-Report does not contain any objects, just rules  (while interactively exported report is complete with objects)
[x] firefox only? seconds should be removed (also causes no match if seconds <> 0)
[x] reports do not get (reliably) scheduled - see error (@abarz722 - tenant-related)

==> /var/log/fworch/middleware.log <==
Dec  6 17:37:52 orctstfits202 fworch.middleware-server[376161]: Error - Report Scheduling (ReportScheduler.cs in line 188): Generating scheduled report "current-rules-fi3" lead to exception.
Dec  6 17:37:52 orctstfits202 fworch.middleware-server[376161]:  ---
Dec  6 17:37:52 orctstfits202 fworch.middleware-server[376161]: Exception thrown:
Dec  6 17:37:52 orctstfits202 fworch.middleware-server[376161]:  IndexOutOfRangeException
Dec  6 17:37:52 orctstfits202 fworch.middleware-server[376161]: Message:
Dec  6 17:37:52 orctstfits202 fworch.middleware-server[376161]:  Index was outside the bounds of the array.
Dec  6 17:37:52 orctstfits202 fworch.middleware-server[376161]: Stack Trace:
Dec  6 17:37:52 orctstfits202 fworch.middleware-server[376161]:  at FWO.Middleware.Controllers.AuthManager.GetTenantAsync(UiUser user)
Dec  6 17:37:52 orctstfits202 fworch.middleware-server[376161]:    at FWO.Middleware.Server.ReportScheduler.<>c__DisplayClass14_0.<<GenerateReport>b__0>d.MoveNext() in /usr/local/fworch/middleware/files/FWO.Middleware.Server/ReportScheduler.cs:line 133

all fixed (by reverting wkhtmlpdf


Tito homepage now 404s, link to github repo

Approved by @joelddiaz in #3003
PR made originally by @slashterix


originalEvent object needs preventDefault fn

preventDefault function expected by jQuery 2.2.1
not sure if:
ok(evt.originalEvent.isDefaultPrevented, 'prevented original event');

should be added to test.

Thanks @bbarry

I've added the extra check in 9341da0


OSError: Can't load config for 'prithivida/grammar_error_correcter'

Hi, I have been using your code for the last few days. Suddenly, it started to crash.
Have a look at the code and error given below:
Code (Link: https://huggingface.co/prithivida/grammar_error_correcter_v1):
from gramformer import Gramformer
import torch

def set_seed(seed):
  torch.manual_seed(seed)
  if torch.cuda.is_available():
    torch.cuda.manual_seed_all(seed)

set_seed(1212)

gf = Gramformer(models = 2, use_gpu=False) # 0=detector, 1=highlighter, 2=corrector, 3=all

influent_sentences = [
    "Matt like fish",
    "the collection of letters was original used by the ancient Romans",
    "We enjoys horror movies",
    "Anna and Mike is going skiing",
    "I walk to the store and I bought milk",
    "We all eat the fish and then made dessert",
    "I will eat fish for dinner and drank milk",
    "what be the reason for everyone leave the company",
]

for influent_sentence in influent_sentences:
    corrected_sentence = gf.correct(influent_sentence)
    print("[Input] ", influent_sentence)
    print("[Correction] ",corrected_sentence[0])
    print("-" *100)

Error
404 Client Error: Not Found for url: https://huggingface.co/prithivida/grammar_error_correcter/resolve/main/config.json
---------------------------------------------------------------------------
HTTPError                                 Traceback (most recent call last)
/usr/local/lib/python3.7/dist-packages/transformers/configuration_utils.py in get_config_dict(cls, pretrained_model_name_or_path, **kwargs)
    491                 use_auth_token=use_auth_token,
--> 492                 user_agent=user_agent,
    493             )

7 frames
/usr/local/lib/python3.7/dist-packages/transformers/file_utils.py in cached_path(url_or_filename, cache_dir, force_download, proxies, resume_download, user_agent, extract_compressed_file, force_extract, use_auth_token, local_files_only)
   1278             use_auth_token=use_auth_token,
-> 1279             local_files_only=local_files_only,
   1280         )

/usr/local/lib/python3.7/dist-packages/transformers/file_utils.py in get_from_cache(url, cache_dir, force_download, proxies, etag_timeout, resume_download, user_agent, use_auth_token, local_files_only)
   1441             r = requests.head(url, headers=headers, allow_redirects=False, proxies=proxies, timeout=etag_timeout)
-> 1442             r.raise_for_status()
   1443             etag = r.headers.get("X-Linked-Etag") or r.headers.get("ETag")

/usr/local/lib/python3.7/dist-packages/requests/models.py in raise_for_status(self)
    942         if http_error_msg:
--> 943             raise HTTPError(http_error_msg, response=self)
    944

HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/prithivida/grammar_error_correcter/resolve/main/config.json

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
<ipython-input-10-0f43e537fe87> in <module>
     10
     11
---> 12 gf = Gramformer(models = 2, use_gpu=False) # 0=detector, 1=highlighter, 2=corrector, 3=all
     13
     14 influent_sentences = [

/usr/local/lib/python3.7/dist-packages/gramformer/gramformer.py in __init__(self, models, use_gpu)
     14
     15     if models == 2:
---> 16         self.correction_tokenizer = AutoTokenizer.from_pretrained(correction_model_tag)
     17         self.correction_model     = AutoModelForSeq2SeqLM.from_pretrained(correction_model_tag)
     18         self.correction_model     = self.correction_model.to(device)

/usr/local/lib/python3.7/dist-packages/transformers/models/auto/tokenization_auto.py in from_pretrained(cls, pretrained_model_name_or_path, *inputs, **kwargs)
    400         kwargs["_from_auto"] = True
    401         if not isinstance(config, PretrainedConfig):
--> 402             config = AutoConfig.from_pretrained(pretrained_model_name_or_path, **kwargs)
    403
    404         use_fast = kwargs.pop("use_fast", True)

/usr/local/lib/python3.7/dist-packages/transformers/models/auto/configuration_auto.py in from_pretrained(cls, pretrained_model_name_or_path, **kwargs)
    428         """
    429         kwargs["_from_auto"] = True
--> 430         config_dict, _ = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
    431         if "model_type" in config_dict:
    432             config_class = CONFIG_MAPPING[config_dict["model_type"]]

/usr/local/lib/python3.7/dist-packages/transformers/configuration_utils.py in get_config_dict(cls, pretrained_model_name_or_path, **kwargs)
    502                 f"- or '{pretrained_model_name_or_path}' is the correct path to a directory containing a {CONFIG_NAME} file\n\n"
    503             )
--> 504             raise EnvironmentError(msg)
    505
    506         except json.JSONDecodeError:

OSError: Can't load config for 'prithivida/grammar_error_correcter'. Make sure that:

- 'prithivida/grammar_error_correcter' is a correct model identifier listed on 'https://huggingface.co/models'

- or 'prithivida/grammar_error_correcter' is the correct path to a directory containing a config.json file
![Screenshot from 2021-07-01 18-36-07](https://user-images.githubusercontent.com/4704211/124133526-5a9da900-da9b-11eb-9733-61df46ab01e1.png)

Possible Solution:
Rename this link from: https://huggingface.co/prithivida/grammar_error_correcter/ to: https://huggingface.co/prithivida/grammar_error_correcter_v1/
Please help me fix this. thank you

That's by design
'prithivida/grammar_error_correcter' is not available anymore. Check the read me.
You can do the following either manually change the model tag to
'prithivida/grammar_error_correcter_v1'
Or do a brand new install of the Gramformer in a new virtual environment or conda env.


fix(docs): space added to layout section top

Nice work folks! I'm already starting a project using this lib
I got a small layout bug, just an extra space to match everything else.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Documentation Only
[ ] Refactor

Description, Motivation and Context
Just a  <Spacer y={2} /> component was added under the  <CarbonAd /> to follow the pattern of the other pages.
Screenshots - Animations

Hey @alexandesigner thank you so much 🙌🏻

Codecov Report

Merging #181 (9bfe169) into main (3664bd5) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #181   +/-   ##
=======================================
  Coverage   76.10%   76.10%
=======================================
  Files         140      140
  Lines        2272     2272
  Branches      680      680
=======================================
  Hits         1729     1729
  Misses        538      538
  Partials        5        5

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 3664bd5...9bfe169. Read the comment docs.


Boba Gateway - improve error handling and reporting of errors to ERROR_TRACKING_SERVICE

This is a longer term issue. Transactions can fail at many places for many different reasons - at the level of MetaMask, at the level of the L2, and at the level of the L1. Right now, we only handle the basics, but frequently leave people guessing about what actually happened when a transaction didn't go though.
ToDo: come up with a good system for dealing with errors, and reporting those errors to the user (and, ultimately, an analytics backend so we can track errors).  Step One is to report errors to the user, rather than writing to console.log. So every instance of
    try {
      await
      return true
    } catch (err) {
      return false
    }

needs to do something like this
    try {
      await
      return true
    } catch (error) {
      REPORT_TO_USER (error.message)
      REPORT_TO_ERROR_TRACKING_SERVICE (error.message)
      return false
    }

The old system (errorService.js) used to do this, but it has not been updated/checked in a long time.

WebWalletError this class only extends the existing error object with two more properties called originalError  and customErrorMessage
class has function called report  which just do nothing and return so looks like we have to add our sentry reporting here.
As error.report()  has been invoked in createAction catch method.

Please help me with sentry configuration I will get it added and raised the PR.


[Enhancement]: reg-event-fx :fx shorthand

What do you suggest?
Since any effect in the returned map for reg-event-fx can be added to the :fx effect, could you consider overloading reg-event-fx to take just the :fx vector as a response?
(reg-event-fx
  :example
  (fn []
    {:db {}
     :dispatch []}))

Can be written as
(reg-event-fx
  :example
  (fn []
    {:fx [[:db {}]
          [:dispatch []]]}))

So an overloaded reg-event-fx could accept this as a response, and assume :fx.
(reg-event-fx
  :example
  (fn []
    [[:db {}]
     [:dispatch []]]))

I won't implement this idea because  it is generally better if there is only one way of doing things, and, anyway, there's already a variety of ways you can implement this choice yourself already:

write and use an interceptor
write and use your own version of reg-event-fx

Here's what I mean by an interceptor that does the job (untested):
(def rewire-effects
  (re-frame.core/->interceptor
    :id     :rewire-effects
    :after  (fn [context]
               (assoc context :effects {:fx (:effects context)}))))

Then, write your own version of reg-effects-fx to install this interceptor immediately after the event handler is called (based on existing code for reg-effects-fx here)
(defn reg-event-fx2
  ([id handler]
   (reg-event-fx id nil handler))
  ([id interceptors handler]
   (events/register id [cofx/inject-db fx/do-fx std-interceptors/inject-global-interceptors interceptors rewire-effects (fx-handler->interceptor handler)])))

(untested)
Notice the use/placement of rewire-effects

That's neat, I will try that.
"I regret putting the syntax sugar for subscriptions into re-frame core".  This is interesting.  I just saw that expansion of syntactic sugar and thought this idea was in line with that.


In 0.74.0 denonavr logs the following warning: Not able to match sound mode, returning raw sound mode.

Home Assistant release with the issue:
 0.74.0
Last working Home Assistant release (if known):
0.73.2
Operating environment (Hass.io/Docker/Windows/etc.):

Docker
Component/platform:

https://www.home-assistant.io/components/media_player.denonavr/
Description of problem:
log contains the following warning:
Not able to match sound mode, returning raw sound mode.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
media_player:
  - platform: denonavr
    host: !secret denon_ip

Traceback (if applicable):

Additional information:

I'm getting this as well. My receiver is actually a Marantz SR7005.

See also #15590.


New version: Seewo.EasiNote version <IP_ADDRESS>28

This pull request is automatically generated by 🥟 Dumplings in #3053
Microsoft Reviewers: Open in CodeFlow

/AzurePipelines run


Reduce retries on fetching progress

Polling interval is 0.5s so connectivity retry we dont need to do for 10 minutes

 [🍓] Report error to client in case of a pod crash


Fix Op (aten::native_batch_norm) | feat(torchlib)

Fix #1803
Fix #1791
Add the conversion of scalar to tensor

Looks like we need to hack the training tests as well.


Errors in Bun: The Request.url getter can only be used on instances of Request

Describe the bug
Most likely it's an issue with Bun. It happens when integrating GraphQL Yoga with Express and using express.json() middleware. Also the bug occurs when integrating Yoga with Fastify
Your Example Website or App
https://codesandbox.io/p/devbox/bun-yoga-crckwv
Steps to Reproduce the Bug or Issue
import { createYoga } from 'graphql-yoga'
import express from 'express';

import { createSchema } from 'graphql-yoga'

export const schema = createSchema({
  typeDefs: `
    type Query {
      hello: String
    }
  `,
  resolvers: {
    Query: {
      hello: () => 'world'
    }
  }
})

const app = express()

// The Request.url getter can only be used on instances of Request
app.use(express.json({ limit: '1mb' }));

const yoga = createYoga({ schema })

app.use(yoga.graphqlEndpoint, yoga)

app.listen(4000, () => {
  console.log('Running a GraphQL API server at http://localhost:4000/graphql')
})

Call stack:
Unexpected response: "TypeError: The Request.url getter can only be used on instances of Request
    at get (:1:11)
    at onRequest (node_modules/graphql-yoga/esm/plugins/use-health-check.js:4:17)
    at iterate (node_modules/@whatwg-node/server/esm/utils.js:380:25)
    at handleRequest (node_modules/@whatwg-node/server/esm/createServerAdapter.js:51:46)
    at requestListener (node_modules/@whatwg-node/server/esm/createServerAdapter.js:127:25)
    at <anonymous> (native)
    at handle (node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (node_modules/express/lib/router/index.js:328:13)
    at <anonymous> (node_modules/express/lib/router/index.js:286:9)
    at next (node_modules/express/lib/router/index.js:280:10)
    at <anonymous> (node_modules/body-parser/lib/read.js:137:5)
    at runInAsyncScope (node:async_hooks:159:18)
    at invokeCallback (node_modules/raw-body/index.js:238:16)
    at done (node_modules/raw-body/index.js:227:7)
    at onEnd (node_modules/raw-body/index.js:287:7)
    at emit (node:events:183:48)
    at endReadableNT (node:stream:2392:27)
    at processTicksAndRejections (:7:39)

Expected behavior
No error occurs
Screenshots or Videos
No response
Platform

OS: macOS
Bun 1.1.30
@graphql-yoga/* version(s): 5.7.0

Additional context
No response

I also open the issue in Bun's repo: https://github.com/oven-sh/bun/issues/12368

It seems to be fixed with the latest Bun;
https://github.com/oven-sh/bun/issues/12368#issuecomment-2493973621

@ardatan I just tried again with bun 1.1.38, same issue (both with fastify and express when using body parser)


Add slash to links to avoid unnecessary redirects

Ref: https://github.com/JohnSundell/Publish/pull/79
Links to folder content generated by Publish don't seem to end with a trailing "/", which means there will be an additional HTTP redirect request to the resource with the path appended. You can see an example of this by going to https://swiftbysundell.com/articles/the-decade-of-swift in Safari: you will see it redirected to https://swiftbysundell.com/articles/the-decade-of-swift/, which is an unnecessary redirect.
This is more obvious when using curl:
marc@bix ~ % curl -v https://swiftbysundell.com/articles/the-decade-of-swift
  … blah blah blah …
< location: https://swiftbysundell.com/articles/the-decade-of-swift/
<
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<title>301 Moved Permanently</title>

Moved Permanently

The document has moved here.

* Connection #0 to host swiftbysundell.com left intact
* Closing connection 0

TBH, I have no idea of this patch is the correct solution to this inefficiency, but in the absence of an issue tracker, there's no other forum for describing the issue.

IMHO this is a necessary fix, but I have other thoughts on URLs/filenames that I want to explore first...
Related: https://github.com/BlueHouseLabs/Publish/pull/7


Deployment + Pipelines at Ensuresec Platform VM

deploy new version of the Integration Services
eventually adjust deployment pipeline
connect to VM an verify if Server Identity was created successfully

References: Sadjy, Razvan

https://github.com/marketplace/actions/kubectl-aws-eks

we decided to not update the simavi vm.


reposilitePlugins: init at 3.5.19

This is the first of a few PR's in preparation for the addition of a nixos/reposilite module.
This pr simply adds the 5 official reposilite plugins, packaged as jar files.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@ofborg eval


IIF as function

It would be of great help to have a function available which takes in three parameters (bool;variant;variant) and returns the first variant value when bool parameter is true, else return false.
This would make a lot of code a way shorter.
Alternatively it would be nice to have the construct
bool ? variant1 : variant2;
available (like in c#).

Nice idea to simplify some statements!

This belongs at aka.ms/bcideas. This is currently tracked by at least one idea over there: https://experience.dynamics.com/ideas/idea/?ideaid=d62c7a8d-7f56-ec11-a3ee-0003ff45ac6d


Bump versions of dependencies.

@chayev I changed the settings for requesting reviews. You had it basically ask you twice.

@chayev I changed the settings for requesting reviews. You had it basically ask you twice.

Let me know what change you made for future reference.

It turned off "also request individually".


Issue with pypr commands

First of all I want to say that I am sorry if I am missing something obvious here.
I have pypr installed from the lazy branch as was documented here:
          Thank you very much !

For anyone else wondering I used
pipx install git+https://github.com/hyprland-community/pyprland.git@onlylazy

To install it
Originally posted by @redsteadz in https://github.com/hyprland-community/pyprland/issues/19#issuecomment-1784065884
Here is my .config/hypr/hyprland.conf:

# -----------------------------------------------------
# Keyboard Layout
# -----------------------------------------------------
# $keyboardlayout=de
$keyboardlayout=us

# -----------------------------------------------------
# Monitor Setup
# See https://wiki.hyprland.org/Configuring/Monitors/
# -----------------------------------------------------
monitor=HDMI-A-1,1920x1080@60,0x0,1
monitor=eDP-1,1920x1080@60,1920x0,auto
# monitor=,2560x1440@120,auto,1
# monitor=,1920x1080,auto,1
#
# -----------------------------------------------------
# Autostart & Environment
# -----------------------------------------------------
source = ~/dotfiles/hypr/conf/environment.conf
source = ~/dotfiles/hypr/conf/autostart.conf

# -----------------------------------------------------
# Load pywal color file
# -----------------------------------------------------
source = ~/.cache/wal/colors-hyprland.conf

# -----------------------------------------------------
# Load configuration files
# -----------------------------------------------------
source = ~/dotfiles/hypr/conf/keyboard.conf
source = ~/dotfiles/hypr/conf/window.conf
source = ~/dotfiles/hypr/conf/decoration.conf
source = ~/dotfiles/hypr/conf/layouts.conf
source = ~/dotfiles/hypr/conf/misc.conf
source = ~/dotfiles/hypr/conf/keybindings.conf
source = ~/dotfiles/hypr/conf/windowrules.conf

# -----------------------------------------------------
# Animation
# -----------------------------------------------------
source = ~/dotfiles/hypr/conf/animations-low.conf
# source = ~/dotfiles/hypr/conf/animations-high.conf
#
#xwayland { use_nearest_neighbor = false }

exec-once = pypr
bind = SUPER,D,exec,pypr toggle discord
#windowrule = floa,^(discord)$
#windowrule = workspace special silent,^(discord)$

# <------- Here is the relevant part !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -------->
bind = SUPER,V,exec,pypr toggle volume
windowrule = float,^(pavucontrol)$
windowrule = workspace special silent,^(pavucontrol)$

here is my pyprland.json:
{
    "pyprland": {
        "plugins": [
            "scratchpads"
	]
    },
    "scratchpads": {
        "discord": {
            "command": "discord",
            "animation": "fromTop",
            "unfocus": "false"
        },
	"volume": {
	    "command": "pavucontrol",
	    "animation": "fromRight"
	}
    }
}

Through some debugging I noticed if i ran pypr inside the terminal discord and pavucontrol start up, but when i run pypr toggle volume in order to toggle pavucontrol I get an unhandled exception:
❯ pypr toggle volume
Unhandled exception:
Traceback (most recent call last):
  File "/home/anime_protagonist/.local/pipx/venvs/pyprland/lib/python3.11/site-packages/pyprland/command.py", line 242, in main
    asyncio.run(run_daemon() if len(sys.argv) <= 1 else run_client())
  File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/anime_protagonist/.local/pipx/venvs/pyprland/lib/python3.11/site-packages/pyprland/command.py", line 220, in run_client
    _, writer = await asyncio.open_unix_connection(CONTROL)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/streams.py", line 98, in open_unix_connection
    transport, _ = await loop.create_unix_connection(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/unix_events.py", line 259, in create_unix_connection
    await self.sock_connect(sock, path)
  File "/usr/lib/python3.11/asyncio/selector_events.py", line 634, in sock_connect
    return await fut
           ^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/selector_events.py", line 642, in _sock_connect
    sock.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused

The output for the show command is the same:
❯ pypr show volume
Unhandled exception:
Traceback (most recent call last):
  File "/home/anime_protagonist/.local/pipx/venvs/pyprland/lib/python3.11/site-packages/pyprland/command.py", line 242, in main
    asyncio.run(run_daemon() if len(sys.argv) <= 1 else run_client())
  File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/anime_protagonist/.local/pipx/venvs/pyprland/lib/python3.11/site-packages/pyprland/command.py", line 220, in run_client
    _, writer = await asyncio.open_unix_connection(CONTROL)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/streams.py", line 98, in open_unix_connection
    transport, _ = await loop.create_unix_connection(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/unix_events.py", line 259, in create_unix_connection
    await self.sock_connect(sock, path)
  File "/usr/lib/python3.11/asyncio/selector_events.py", line 634, in sock_connect
    return await fut
           ^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/selector_events.py", line 642, in _sock_connect
    sock.connect(address)
ConnectionRefusedError: [Errno 111] Connection refused

Any pypr commands will have the same problem with discord or any other scratchpad.
I also installed it with pipx install pyprland before all of this and the behaviour was the same.

same here with AUR package

Two remarks here:

lazy branch is merged into main, no need to use it anymore
please check https://github.com/hyprland-community/pyprland/wiki/Getting-started#troubleshoot before posting

There is a high chance you have a problem with your python setup (maybe not using the OS packaging system 100% ?).
Check the errors by logging the output of pypr, it is likely it has a problem, replace:
exec-once = pypr
with
exec-once = pypr --debug /tmp/pypr.log > /tmp/pypr_1.log >> /tmp/pypr_2.log
And check the log files, something is going wrong here.
Also I thought I had improved the logging in such case to indicate pypr daemon didn't start, which version are you running?

same here with AUR package

If you didn't install it with pip or pipx I'm very interested in the outcome of your test and the different logs for pypr & hyprland, since one fails to start the other...

Some exception wasn't caught, the error message you should get is:
"Failed to open control socket, is pypr daemon running ?"

same here with AUR package

If you didn't install it with pip or pipx I'm very interested in the outcome of your test and the different logs for pypr & hyprland, since one fails to start the other...

2023-11-11 23:32:40,997 [INFO] ipc :: Logger initialized for ipc :: common.py:70 2023-11-11 23:32:40,997 [INFO] startup :: Logger initialized for startup :: common.py:70 2023-11-11 23:32:40,998 [INFO] pypr :: Logger initialized for pypr :: common.py:70 2023-11-11 23:32:40,999 [CRITICAL] pypr :: Failed to load config. :: command.py:179 Traceback (most recent call last):   File "/usr/lib/python3.11/site-packages/pyprland/command.py", line 175, in run_daemon     await manager.load_config()  # ensure sockets are connected first     ^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/lib/python3.11/site-packages/pyprland/command.py", line 39, in load_config     self.config = json.loads(f.read())                   ^^^^^^^^^^^^^^^^^^^^   File "/usr/lib/python3.11/json/__init__.py", line 346, in loads     return _default_decoder.decode(s)            ^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/lib/python3.11/json/decoder.py", line 337, in decode     obj, end = self.raw_decode(s, idx=_w(s, 0).end())                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   File "/usr/lib/python3.11/json/decoder.py", line 353, in raw_decode     obj, end = self.scan_once(s, idx)                ^^^^^^^^^^^^^^^^^^^^^^ json.decoder.JSONDecodeError: Expecting ',' delimiter: line 15 column 1 (char 226)

Yes, I figured out after writing this that that branch was probably merged long ago as you mentioned.
So to recap, I am currently on the version installed with pipx install pyprland. About which version this is, I would assume the latest published one if I just fresh installed it.
And I have simplified my pyprland.json to contain only the volume scratchpad because the logs were polluted with discord related logs and I figured they would be more concise this way.
I simply ran pypr --debug /tmp/pypr.log > /tmp/pypr_1.log >> /tmp/pypr_2.log and here are the results of pressing super + V - spawn volume scratchpad only once :
pypr.log:
❯ cat pypr.log
2023-11-12 04:48:49,963 [INFO] ipc :: Logger initialized for ipc :: common.py:70
2023-11-12 04:48:49,963 [INFO] startup :: Logger initialized for startup :: common.py:70
2023-11-12 04:48:49,963 [INFO] pypr :: Logger initialized for pypr :: common.py:70
2023-11-12 04:48:49,965 [INFO] scratchpads :: Logger initialized for scratchpads :: common.py:70
2023-11-12 04:48:49,965 [INFO] scratchpads :: {'volume'} :: scratchpads.py:333
2023-11-12 04:48:49,966 [INFO] scratchpads :: volume is not running, restarting... :: scratchpads.py:345
2023-11-12 04:48:49,966 [INFO] scratchpads :: starting volume :: scratchpads.py:349
2023-11-12 04:48:49,966 [INFO] scratchpads :: scratch volume has pid 28180 :: scratchpads.py:381
2023-11-12 04:48:49,967 [INFO] scratchpads :: ==> Wait for volume spawning :: scratchpads.py:351
2023-11-12 04:48:50,067 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:48:50,469 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:48:51,371 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:48:52,974 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:48:55,477 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:48:57,309 [DEBUG] pypr :: CMD: run_toggle(['volume']) :: command.py:129
2023-11-12 04:48:57,310 [DEBUG] pypr :: scratchpads.run_toggle('volume',) :: command.py:73
2023-11-12 04:48:57,310 [DEBUG] scratchpads :: volume is visible = False :: scratchpads.py:464
2023-11-12 04:48:57,310 [DEBUG] ipc :: activewindow :: ipc.py:25
2023-11-12 04:48:57,310 [INFO] scratchpads :: Showing volume :: scratchpads.py:506
2023-11-12 04:48:57,310 [INFO] scratchpads :: volume is not running, restarting... :: scratchpads.py:345
2023-11-12 04:48:57,310 [INFO] scratchpads :: starting volume :: scratchpads.py:349
2023-11-12 04:48:57,311 [INFO] scratchpads :: scratch volume has pid 28193 :: scratchpads.py:381
2023-11-12 04:48:57,311 [INFO] scratchpads :: ==> Wait for volume spawning :: scratchpads.py:351
2023-11-12 04:48:57,411 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:48:57,813 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:48:58,715 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:48:59,079 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:49:00,317 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:49:02,821 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:49:03,982 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:49:03,984 [ERROR] scratchpads :: => Failed spawning volume as proc 28193 :: scratchpads.py:361
2023-11-12 04:49:03,984 [ERROR] scratchpads :: Failure starting volume :: scratchpads.py:338
2023-11-12 04:49:06,424 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:49:11,327 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:49:11,329 [ERROR] scratchpads :: => Failed spawning volume as proc 28193 :: scratchpads.py:361
2023-11-12 04:49:11,329 [ERROR] scratchpads :: Failed to show volume, aborting. :: scratchpads.py:508
2023-11-12 04:49:20,317 [INFO] pypr :: EVT: activewindow(Brave-browser,Issue with pypr commands · Issue #22 · hyprland-community/pyprland - Brave) :: command.py:99
2023-11-12 04:49:20,318 [INFO] pypr :: EVT: activewindowv2(55ed69cb0cf0) :: command.py:99
2023-11-12 04:49:20,318 [DEBUG] pypr :: scratchpads.event_activewindowv2('55ed69cb0cf0\n',) :: command.py:73
2023-11-12 04:49:21,318 [INFO] pypr :: EVT: activewindow(Alacritty,pypr --debug /tmp/pypr.log > /tmp/pypr_1.log >> /tmp/pypr_2.log) :: command.py:99
2023-11-12 04:49:21,318 [INFO] pypr :: EVT: activewindowv2(55ed69caf820) :: command.py:99
2023-11-12 04:49:21,318 [DEBUG] pypr :: scratchpads.event_activewindowv2('55ed69caf820\n',) :: command.py:73
2023-11-12 04:49:22,856 [INFO] pypr :: EVT: activewindow(Brave-browser,Issue with pypr commands · Issue #22 · hyprland-community/pyprland - Brave) :: command.py:99
2023-11-12 04:49:22,856 [INFO] pypr :: EVT: activewindowv2(55ed69cb0cf0) :: command.py:99
2023-11-12 04:49:22,856 [DEBUG] pypr :: scratchpads.event_activewindowv2('55ed69cb0cf0\n',) :: command.py:73
2023-11-12 04:50:03,286 [INFO] pypr :: EVT: activewindow(Alacritty,pypr --debug /tmp/pypr.log > /tmp/pypr_1.log >> /tmp/pypr_2.log) :: command.py:99
2023-11-12 04:50:03,286 [INFO] pypr :: EVT: activewindowv2(55ed69caf820) :: command.py:99
2023-11-12 04:50:03,286 [DEBUG] pypr :: scratchpads.event_activewindowv2('55ed69caf820\n',) :: command.py:73
2023-11-12 04:50:22,030 [CRITICAL] pypr :: cancelled :: command.py:187

And here is the pyprland version as stated by pipx:
❯ pipx list
venvs are in /home/anime_protagonist/.local/pipx/venvs
apps are exposed on your $PATH at /home/anime_protagonist/.local/bin
   package pyprland 1.4.4, installed using Python 3.11.5
    - pypr

And here is my updated pyprland.json for reference. (probably not relevant)
{
    "pyprland": {
        "plugins": [
            "scratchpads"
		]
    },
    "scratchpads": {
		"volume": {
			"command": "pavucontrol",
			"animation": "fromRight"
		}
    }
}

And about the pypr daemon running, yes there is a process running with command: ~/.local/pipx/venvs/pyprland/bin/python ~/.local/bin/pypr on htop.

json.decoder.JSONDecodeError: Expecting ',' delimiter: line 15 column 1 (char 226)

I'm not sure why you lost every newline, but check the line 15 of your config, there is a syntax error.

And about the pypr daemon running, yes there is a process running with command: ~/.local/pipx/venvs/pyprland/bin/python ~/.local/bin/pypr on htop.

The errors are completely different this time, looks like your environment is instable.
What did you do to solve pypr daemon not starting ?
Original issue is fixed I guess, now it looks like you have another problem: the volume app window isn't showing.
In the logs you see the PID of the program, in hyprctl clients you should see a window using this PID.
I don't know exactly why but the app takes more than 5s to start, which is not supported:
2023-11-12 04:48:57,311 [INFO] scratchpads :: ==> Wait for volume spawning :: scratchpads.py:351
2023-11-12 04:48:57,411 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:48:57,813 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:48:58,715 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:48:59,079 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:49:00,317 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:49:02,821 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:49:03,982 [DEBUG] ipc :: clients :: ipc.py:25
2023-11-12 04:49:03,984 [ERROR] scratchpads :: => Failed spawning volume as proc 28193 :: scratchpads.py:361

Do you have the issue for every app ?

Okay so I did not do anything since last night, logged in today, and i tried pypr show volume again, and it just worked im dumbfounded to be honest. I explained exactly what I did (nothing except reinstall from pipx again to have fresh install).

Im very confused maybe it needed a good old reboot after installing?

Because I really did not alter anything other than removing discord from my scratchpad config. And I dont think that was the issue.

I could close this if you do not need any more information from me. If it works I'll leave it alone. But the system shouldn't be instable its almost a fresh install.

Ok I did some digging around because I dont like leaving things like this. So basically I re-introduced discord into my pyprland.json  on super + d  and it worked fine together with the volume mixer. I then closed discord(as in closed not hidden with the scratchpad functionality) and now it can't restart. I'm back to that first error with the socket being closed. Im pretty sure this all was an issue with discord + the daemon dying cuz of discord for some reason, because I think it cannot re-open a scratchpad after the first time? Even though the first time i hit super + d it started up discord just fine for me. Im really not sure.

So after debugging I think there really is a specific issue with discord.
I had betterdiscord and I thought maybe thats the reason it fails to show it. I uninstalled betterdiscord and got left with regular discord (command is same for both). Volume scratchpad works fine, discord one shows the loading screen from discord fine. But then the real discord screen spawns, that one is unreactive to being shown or hidden.

I don't know pipx to be honest, but I know it's very easy to get confused with multiple "transparent" environments running in parallel.
I would recomment sticking to using the operating system packages or explicit python virtual environments.
About discord, I don't use the desktop app, but I know a couple of apps may manage the GUI separately to the daemon, making PID matching impossible.
So it could be that first time it uses the PID of the process you started, but second time after the window have been closed it will reuse the PID of the old process, not the one which has just been respawned...
There is a class matching feature you may play with to work around such issues.
I consider it closed.

Last 3 -4 reboots i've been getting this in the logs with pypr daemon not starting because of this.
❯ cat pypr.log
2023-11-12 17:11:02,874 [INFO] ipc :: Logger initialized for ipc :: common.py:70
2023-11-12 17:11:02,875 [INFO] startup :: Logger initialized for startup :: common.py:70
2023-11-12 17:11:02,875 [INFO] pypr :: Logger initialized for pypr :: common.py:70
2023-11-12 17:11:02,875 [CRITICAL] pypr :: Failed to load config. :: command.py:179
Traceback (most recent call last):
  File "/home/anime_protagonist/.local/pipx/venvs/pyprland/lib/python3.11/site-packages/pyprland/command.py", line 175, in run_daemon
    await manager.load_config()  # ensure sockets are connected first
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/anime_protagonist/.local/pipx/venvs/pyprland/lib/python3.11/site-packages/pyprland/command.py", line 39, in load_config
    self.config = json.loads(f.read())
                  ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/json/decoder.py", line 353, in raw_decode
    obj, end = self.scan_once(s, idx)
               ^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 11 column 9 (char 197)

This error is relatively clear, and line 11 of the JSON config file you had a syntax error.
Many users report similar issues, I'll add support for TOML in the future.

This error is relatively clear, and line 11 of the JSON config file you had a syntax error. Many users report similar issues, I'll add support for TOML in the future.

my problem were json config error, changed to toml format and all wark as expected. Tank you !!!!

 Everything works fine. Thank you so much for the help!


fused_act problem, ninja build stopped, because cannot open file 'python310.lib'

Thanks for the code.
Does anybody have had same problem with me?
I got problem on fused_act.py and upfirdn2d.py here is my error message:
File "E:\face\code\pytorchNo1\venv\lib\site-packages\torch\utils\cpp_extension.py", line 1740, in _run_ninja_build
subprocess.run(
File "C:\Users\YJJEON\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "E:\face\code\Barbershop-main\main.py", line 13, in
from models.Embedding import Embedding
File "E:\face\code\Barbershop-main\models\Embedding.py", line 3, in
from models.Net import Net
File "E:\face\code\Barbershop-main\models\Net.py", line 3, in
from models.stylegan2.model import Generator
File "E:\face\code\Barbershop-main\models\stylegan2\model.py", line 11, in
from models.stylegan2.op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d
File "E:\face\code\Barbershop-main\models\stylegan2\op_init_.py", line 1, in
from .fused_act import FusedLeakyReLU, fused_leaky_relu
File "E:\face\code\Barbershop-main\models\stylegan2\op\fused_act.py", line 11, in
fused = load(
File "E:\face\code\pytorchNo1\venv\lib\site-packages\torch\utils\cpp_extension.py", line 1144, in load
return _jit_compile(
File "E:\face\code\pytorchNo1\venv\lib\site-packages\torch\utils\cpp_extension.py", line 1357, in _jit_compile
_write_ninja_file_and_build_library(
File "E:\face\code\pytorchNo1\venv\lib\site-packages\torch\utils\cpp_extension.py", line 1469, in _write_ninja_file_and_build_library
_run_ninja_build(
File "E:\face\code\pytorchNo1\venv\lib\site-packages\torch\utils\cpp_extension.py", line 1756, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'fused': [1/1] "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64/link.exe" fused_bias_act.o fused_bias_act_kernel.cuda.o /nologo /DLL c10.lib
c10_cuda.lib torch_cpu.lib torch_cuda_cu.lib -INCLUDE:?_torch_cuda_cu_linker_symbol_op_cuda@native@at@@YA?AVTensor@2@AEBV32@@Z torch_cuda_cpp.lib -INCLUDE:?warp_size@cuda@at@@YAHXZ torch.lib /LIBPATH:E:\face\code\pytorchNo1\venv\lib\s
ite-packages\torch\lib torch_python.lib /LIBPATH:E:\face\code\pytorchNo1\venv\Scripts\libs "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib/x64" cudart.lib /out:fused.pyd
FAILED: fused.pyd
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64/link.exe" fused_bias_act.o fused_bias_act_kernel.cuda.o /nologo /DLL c10.lib c10_cuda.lib torch_cpu.lib torch_cuda_cu.lib -INCLUDE
:?_torch_cuda_cu_linker_symbol_op_cuda@native@at@@YA?AVTensor@2@AEBV32@@Z torch_cuda_cpp.lib -INCLUDE:?warp_size@cuda@at@@YAHXZ torch.lib /LIBPATH:E:\face\code\pytorchNo1\venv\lib\site-packages\torch\lib torch_python.lib /LIBPATH:E:\fa
ce\code\pytorchNo1\venv\Scripts\libs "/LIBPATH:C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\lib/x64" cudart.lib /out:fused.pyd
LINK : fatal error LNK1104: cannot open file 'python310.lib'.
ninja: build stopped: subcommand failed.
Thank you!

I encountered the same problem? @kangjh0226? and managed to find a workaround:
You need to copy
...\Python\Python310\libs\python310.lib
to your venv folder:
venv\Scripts\libs\python310.lib
I have no idea why it behaves like that but somehow it works

Hello! I encountered the same problem, @kangjh0226, and managed to find a workaround:
You need to copy lib from your python path: ...\Python\Python310\libs\python310.lib
to your venv folder:
venv\Scripts\libs\python310.lib
I have no idea why it behaves like that but somehow it works for me

this didn't work for me. I locally modified the code to tell load where to find python310.lib:
fused = load(
    "fused",
    sources=[
        os.path.join(module_path, "fused_bias_act.cpp"),
        os.path.join(module_path, "fused_bias_act_kernel.cu"),
    ],
    # add path to Python libs, e.g. for me:
    extra_ldflags=["/LIBPATH:C:\\Users\\username\\Python310\\libs"],
)