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

I recently tried to install poetry in a fresh ubuntu 20.04 env, with python3 as default version i experienced unpredictable behaviour. #2352

Closed
1 of 2 tasks
zero-shubham opened this issue Apr 26, 2020 · 6 comments

Comments

@zero-shubham
Copy link

zero-shubham commented Apr 26, 2020

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Issue

when using with python3.8-venv activated and sometimes without that i got /usr/bin/env python not found error.

@abn
Copy link
Member

abn commented Apr 26, 2020

@zero-shubham any additional information to reproduce this issue might be helpful. For example,

  1. how python was installed?
  2. how poetry was installed?
  3. what steps did you follow to encounter the issue?
  4. what does python -VV return?

@zero-shubham
Copy link
Author

zero-shubham commented Apr 27, 2020

Okay this is confirmed, you need to install Python2.7 manually for a fresh ubuntu 20.04 env.
To answer above -

  1. I didn't Ubuntu 20.04 has Py3.8.2 by default
  2. I used get-poetry.py
  3. with and without Py3.8 venv activated this issue is confirmed, /usr/bin/env python not found error when installed using default python3.8.2 (py3 in general)

So what i did was to install py2.7 manually installed poetry using python2 now and everything worked as it used be for Ubuntu 18.04
Python3.8-venv activated works, didn't test for Python2.7.

@finswimmer
Copy link
Member

Hello @zero-shubham,

I found your description a little bit confusing. But I guess you don't have a python executable in your PATH. Most likely you just have python2 and/or python3, but poetry expect to find python. See the PRs #1042 and #1518

fin swimmer

@zero-shubham
Copy link
Author

Hey @finswimmer yes poetry does need "python" as a command i.e. it needs to be in PATH
Since ubuntu 20.04 comes with python3 and adding a symlink or alias where python points to python3 will also not work. Since python2.7 is no more officially supported poetry should to python3, just suggestion. Thanks!

@akhileshraju
Copy link
Contributor

@zero-shubham You can apt-get install python-is-python3. It'll create the symlink - https://packages.ubuntu.com/focal/python-is-python3

Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants