-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
install.bat fails on Ubuntu 18 with Python 3.6.9: The path python2 (from --python=python2) does not exist (IDFGH-6386) #8045
Labels
Comments
github-actions
bot
changed the title
install.bat fails on Ubuntu 18 with Python 3.6.9: The path python2 (from --python=python2) does not exist
install.bat fails on Ubuntu 18 with Python 3.6.9: The path python2 (from --python=python2) does not exist (IDFGH-6386)
Dec 9, 2021
espressif-bot
added
Status: In Progress
Work is in progress
Resolution: NA
Issue resolution is unavailable
Status: Done
Issue is done internally
Resolution: Done
Issue is done internally
and removed
Status: Opened
Issue is new
Status: In Progress
Work is in progress
Resolution: NA
Issue resolution is unavailable
labels
Jan 4, 2022
espressif-bot
pushed a commit
that referenced
this issue
Jan 26, 2022
- Check if pip is installed for sys.executable before attempting to create the virtual environment, bail out with an error if not. - Don't pass --seeder argument to virtualenv if its version is too old. For example, on Ubuntu 18.04, virtualenv 15.1.0 doesn't support this argument. - Pass --python argument to virtualenv to request specific interpreter to be used. Closes #8045
dskulina
pushed a commit
to playable-tech/esp-idf
that referenced
this issue
Feb 4, 2022
- Check if pip is installed for sys.executable before attempting to create the virtual environment, bail out with an error if not. - Don't pass --seeder argument to virtualenv if its version is too old. For example, on Ubuntu 18.04, virtualenv 15.1.0 doesn't support this argument. - Pass --python argument to virtualenv to request specific interpreter to be used. Closes espressif#8045
dskulina
pushed a commit
to playable-tech/esp-idf
that referenced
this issue
Feb 5, 2022
- Check if pip is installed for sys.executable before attempting to create the virtual environment, bail out with an error if not. - Don't pass --seeder argument to virtualenv if its version is too old. For example, on Ubuntu 18.04, virtualenv 15.1.0 doesn't support this argument. - Pass --python argument to virtualenv to request specific interpreter to be used. Closes espressif#8045
espressif-bot
pushed a commit
that referenced
this issue
Feb 24, 2022
- Check if pip is installed for sys.executable before attempting to create the virtual environment, bail out with an error if not. - Don't pass --seeder argument to virtualenv if its version is too old. For example, on Ubuntu 18.04, virtualenv 15.1.0 doesn't support this argument. - Pass --python argument to virtualenv to request specific interpreter to be used. Closes #8045
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Environment
git describe --tags
to find it): v4.3.1Problem Description
Environment: Ubuntu 18, installed package python3-python (3.6.9), NO python 2 package installed, NO python-minimal
install.bat fails with error:
Manual execution of:
/usr/bin/python3 -m virtualenv /home/georgik/.espressif/python_env/idf4.3_py3.6_env'
returns:Root-cause: install.sh is not explicit about binary for virtualenv. Creation of virtualenv picks different Python than running instance.
Correct solution is to pass parameter
-p
with explicit path to the Python.The similar solution is already in Windows Installer: https://github.com/espressif/idf-installer/blob/main/src/InnoSetup/Environment.iss#L423
Correct line should look like this:
Note: do not forget seeder pip to avoid further problems.
Expected Behavior
Installation works.
Actual Behavior
Installation fails with message above.
Workaround:
sudo update-alternatives --install /usr/bin/python2 python2 /usr/bin/python3.6 1
Steps to reproduce
The text was updated successfully, but these errors were encountered: