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

FileNotFoundError: [Errno 2] No such file or directory: 'poetry'. #5

Closed
andrewcstewart opened this issue Apr 20, 2022 · 3 comments
Closed

Comments

@andrewcstewart
Copy link

Hey, cool project!

I got the following error, not sure how informative it is for you. Happy to dig into logs etc. I'm using a Gitpod workspace with a public github repo too, so could potentially offer a completely reproducible clean environment.

Failed to start the Kernel. 
FileNotFoundError: [Errno 2] No such file or directory: 'poetry'. 
@twavv
Copy link
Contributor

twavv commented Apr 20, 2022

Thanks for the report. This just means that poetry isn't installed -- or it isn't installed in a place that poetry-kernel knows where to look for it (i.e., it's not in the PATH).

If you're running pip install poetry-kernel, you'll also need to add pip install poetry as well. You'll also need to initialize the Poetry environment as poetry-kernel refuses to do that for you.

So, however you're running the commands, you'll probably need something like this:

$ pip install poetry poetry-kernel
...

$ cd path/to/project && poetry install

@andrewcstewart
Copy link
Author

Hm, I have poetry installed but the default docker image used in gitpod workspaces uses pyenv or something so there might be some conflict. Good to know that it's the executable itself that can't be found, I can troubleshoot with that.

@twavv
Copy link
Contributor

twavv commented Apr 22, 2022

Gonna close this, but let me know if you get it solved. :^)

@twavv twavv closed this as completed Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants