-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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 script does not alway use the right venv path (IDFGH-8471) #9931
Comments
Hi @fossum,
idf_tools.py has an assumption that virtual environments' binaries are in This might be related to this recently fixed issue in virtualenv: pypa/virtualenv#2350 (comment). |
Sure I can do that, but it'll be Monday when I'm back at work.
…On Thu, Oct 6, 2022, 14:02 Ivan Grokhotkov ***@***.***> wrote:
Hi @fossum <https://github.com/fossum>,
just to help us understand the cause of this issue better, could you
please tell what is the output of
python3 -m sysconfig | grep installation
idf_tools.py has an assumption that virtual environments' binaries are in
<venv_path>/bin/, however this seems to be not the case based on your log.
This might be related to this recently fixed issue in virtualenv: pypa/virtualenv#2350
(comment)
<pypa/virtualenv#2350 (comment)>.
—
Reply to this email directly, view it on GitHub
<#9931 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADNQRV5VH7JGVIFJFTB443WB446TANCNFSM6AAAAAAQ66N3AI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Some more output if it's helpful.
|
You may be on the same path already, but I found this SO question. Which says there will be a solution, but I'm on the latest virtualenv (virtualenv==20.16.5) as of now. |
I think that probably detecting a the right path would be preferable over limiting the version of @fossum Could you please try to manually change the code here and replace subdir = 'bin' with subdir = 'local/bin' Is this enough for you to fix the issue? Will everything work as expected (build, flash, not just install)? |
Yes, that is all I did to fix the issue.
…On Tue, Oct 11, 2022, 07:19 Roland Dobai ***@***.***> wrote:
I think that probably detecting a the right path would be preferable over
limiting the version of virtualenv or setuptools.
@fossum <https://github.com/fossum> Could you please try to manually
change the code here
<https://github.com/espressif/esp-idf/blob/release/v4.3/tools/idf_tools.py#L1018>
and replace
subdir = 'bin'
with
subdir = 'local/bin'
Is this enough for you fix the issue? Will everything work as expected
(build, flash, not just install)?
—
Reply to this email directly, view it on GitHub
<#9931 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADNQRQIB3RRTV7SPZ7ESHDWCVZPJANCNFSM6AAAAAAQ66N3AI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
On Ubuntu 22.04 virtualenv with the latest setuptools produces environments with Python in "local/bin" instead of "bin" (see pypa/virtualenv#2350). Closes #9931
On Ubuntu 22.04 virtualenv with the latest setuptools produces environments with Python in "local/bin" instead of "bin" (see pypa/virtualenv#2350). Closes #9931
On Ubuntu 22.04 virtualenv with the latest setuptools produces environments with Python in "local/bin" instead of "bin" (see pypa/virtualenv#2350). Closes #9931
@fossum Thank you for your report and help tracking this down. A workaround has been merged to the release branches (v4.4 and earlier). |
On Ubuntu 22.04 virtualenv with the latest setuptools produces environments with Python in "local/bin" instead of "bin" (see pypa/virtualenv#2350). Closes #9931
Answers checklist.
IDF version.
release/v4.3-9e863ec
Operating System used.
Linux
How did you build your project?
Other (please specify in More Information)
If you are using Windows, please specify command line type.
No response
What is the expected behavior?
I wanted to get the tools given the documentation.
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html#step-3-set-up-the-tools
What is the actual behavior?
Instead it crashes after installing the venv. The path it's looking for doesn't exist, but python does exist in another folder.
Error:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ericfoss/.espressif/python_env/idf4.3_py3.10_env/bin/python'
File Listings:
➜ esp-idf git:(release/v4.3) ✗ ls '/home/ericfoss/.espressif/python_env/idf4.3_py3.10_env'
lib local pyvenv.cfg
➜ esp-idf git:(release/v5.0) ls '/home/ericfoss/.espressif/python_env/idf4.3_py3.10_env/local/bin'
activate activate.fish activate.ps1 deactivate.nu pip3 pip3.10 python3 wheel wheel-3.10
activate.csh activate.nu activate_this.py pip pip-3.10 python python3.10 wheel3 wheel3.10
Steps to reproduce.
Build or installation Logs.
More Information.
Seems to be fixed in v5 but v4.3 is the cloned branch, so it seems like this should be fixed. v4.4 might need to be tested as well.
The text was updated successfully, but these errors were encountered: