[1.0.0b4] poetry run fails with FileNotFoundError
See original GitHub issue-
I am on the latest Poetry version.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).poetry run -vvv
does not change anything about the output -
OS version and name: Linux x86_64 (Elementary OS)
-
Poetry version: 1.0.0b4
-
Link of a Gist with the contents of your pyproject.toml file: Link (generated with
poetry new
)
Issue
Running poetry run
without additional argument fails with
[FileNotFoundError]
[Errno 2] No such file or directory
Executing poetry run pip list
for example works fine. It’s just with either no argument or when the first argument is not found as an executable.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:22
- Comments:28 (4 by maintainers)
Top Results From Across the Web
poetry run worker.py | FileNotFound [Errno 2] No such file or ...
poetry run means "run the following command in the venv managed by poetry". So the correct way of using it in your case...
Read more >poetry - PyPI
Poetry helps you declare, manage and install dependencies of Python projects, ensuring you have the right stack everywhere. Poetry Install.
Read more >History | Poetry - Python dependency management and ...
Fix an issue where poetry install fails because of missing hashes for url dependencies (#6389). Fix an issue where Poetry was not able...
Read more >poetry install [errno 2] no such file or directory: 'python'
Running poetry fails with /usr/bin/env: 'python': No such file or directory ... poetry run means "run the following command in the venv managed...
Read more >[Errno 2] No such file or directory | by Aurora - Medium
If you run into problems uninstalling Poetry due to previous issues dealing ... install-poetry.py --uninstall and only to return an error of.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m getting this error even after I run
poetry install
.Steps to reproduce:
poetry init
.app.py
with contentsprint('hello')
.poetry run app.py
.Something I notice is that poetry can’t run my program but using python directly can:
EDIT:
Oh wait, I’m just stupid. I misunderstood how to use the
poetry run
command. Checking the docs helped me:it would be awfully nice if poetry told you to run
poetry install
or something instead of just FileNotFoundError