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

Proble Install Python Package by Using mingw32 on Windows (GIT8266O-848) #1271

Open
JustAnotherHobbyist opened this issue Mar 25, 2024 · 4 comments

Comments

@JustAnotherHobbyist
Copy link

----------------------------- Delete above -----------------------------

Environment

  • Development Kit: ESP8266_RTOS_SDK
  • Development Env: MSYS32
  • Operating System: Windows 11 x64

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"

@github-actions github-actions bot changed the title Proble Install Python Package by Using mingw32 on Windows Proble Install Python Package by Using mingw32 on Windows (GIT8266O-848) Mar 25, 2024
@maelsilva96
Copy link

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

@mrx23dot
Copy link

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.

brik13ET added a commit to brik13ET/ESP8266_RTOS_SDK that referenced this issue May 10, 2024
@dvof
Copy link

dvof commented Jun 20, 2024

seems like it fails at 0.31, so pyelftools>=0.22,<0.31 works as well

@hquiroz-1988
Copy link

hquiroz-1988 commented Jul 19, 2024

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

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

5 participants