Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uv fails to spawn memray but can spawn jupyter #10408

Open
rbavery opened this issue Jan 8, 2025 · 4 comments
Open

uv fails to spawn memray but can spawn jupyter #10408

rbavery opened this issue Jan 8, 2025 · 4 comments
Labels
needs-mre Needs more information for reproduction

Comments

@rbavery
Copy link

rbavery commented Jan 8, 2025

I've added jupyter and memray as dev dependencies

-> % uv add --dev jupyter
Resolved 313 packages in 0.90ms
Audited 303 packages in 0.16ms
(base)
rave@studio2 [11:46:47] [~/wherobots-inference/dockers/gpu] [local-data-tests *]
-> % uv add --dev memray
Resolved 313 packages in 0.83ms
Audited 303 packages in 0.17ms
-> % uv run jupyter
usage: jupyter [-h] [--version] [--config-dir] [--data-dir] [--runtime-dir] [--paths] [--json] [--debug] [subcommand]

....

-> % uv run memray
error: Failed to spawn: `memray`
  Caused by: No such file or directory (os error 2)

I'd expect memray to be available and to see the same output I would get from running memray after pip installing it without uv run

- > % pip install memray
-> % memray
usage: memray [-h] [-v] [-V] {run,flamegraph,table,live,tree,parse,summary,stats,transform,attach,detach} ...
memray: error: the following arguments are required: command

I'm on the latest uv

-> % uv --version
uv 0.5.16
@zanieb
Copy link
Member

zanieb commented Jan 8, 2025

What OS are you on?

@rbavery
Copy link
Author

rbavery commented Jan 8, 2025

woops forgot to mention, I'm on Ubuntu 22.04 via WSL2

@zanieb
Copy link
Member

zanieb commented Jan 8, 2025

What's in ls .venv/bin?

@samypr100
Copy link
Collaborator

samypr100 commented Jan 9, 2025

Note, I just tried this on Ubuntu 22.04 in WSL2 and didn't get any issues.

uv run memray
usage: memray [-h] [-v] [-V] {run,flamegraph,table,live,tree,parse,summary,stats,transform,attach,detach} ...
memray: error: the following arguments are required: command

What Docker and WSL version are you using? I am using 4.37.1 (Docker) 2.3.26 (WSL).

@samypr100 samypr100 added the needs-mre Needs more information for reproduction label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-mre Needs more information for reproduction
Projects
None yet
Development

No branches or pull requests

3 participants