Open JustAnotherHobbyist opened 4 months ago
Hi @JustAnotherHobbyist, i have same problema, change your requirements.txt and define limit max version in pyelftools to 0.28.
My file requirements.txt.
# This is a list of python packages needed for ESP-IDF. This file is used with pip.
# Please see the Get Started section of the ESP-IDF Programming Guide for further information.
#
setuptools
# The setuptools package is required to install source distributions and on some systems is not installed by default.
# Please keep it as the first item of this list.
#
click>=5.0
pyserial>=3.0
future>=0.15.2
cryptography>=2.1.4,<35
pyparsing>=2.0.3,<2.4.0
pyelftools>=0.22,<0.28
Without
pyelftools>=0.22,<0.28
it fails to install on Debian!
ERROR: Command errored out with exit status 1:
command: /usr/bin/python /usr/local/lib/python2.7/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-QX3_Zc/overlay --no-warn-script-loca
tion --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 46.4.0'
cwd: None
Complete output (3 lines):
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for
Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0
will remove support for this functionality.
ERROR: Could not find a version that satisfies the requirement setuptools>=46.4.0
please fix.
seems like it fails at 0.31
, so pyelftools>=0.22,<0.31
works as well
Fixed by either fixing the python packages or giving them an upper boundary, here are mine at the moment.
Modify ESP8266_RTOS_SDK/requirements.txt
setuptools==40.4.3
click==5.0
pyserial==3.0
future==0.15.2
cryptography==2.3.1
pyparsing==2.0.3
pyelftools==0.22
----------------------------- Delete above -----------------------------
Environment
Problem Description
Problem by installing the Python Packages with the command "python -m pip install --user -r $IDF_PATH/requirements.txt" in the mingw32.exe command prompt.
Solved by
Add the --no-build-isolation solved this issue solved the problem:
"python -m pip install --no-build-isolation --user -r $IDF_PATH/requirements.txt"