This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Unable to install SDK requirements

when I try to run: pip3 install -r mcuboot\scripts\requirements.txt, it fails with the following;

Collecting cryptography (from -r mcuboot\scripts\requirements.txt (line 1))
Using cached files.pythonhosted.org/.../cryptography-2.7.tar.gz
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'c:\python38\python.exe' 'c:\python38\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\RANDAL~1.PHI\AppData\Local\Temp\pip-build-env-c94k4nae\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; python_implementation != '"'"'PyPy'"'"''
cwd: None
Complete output (14 lines):
Traceback (most recent call last):
File "c:\python38\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\python38\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "c:\python38\lib\site-packages\pip\__main__.py", line 16, in <module>
from pip._internal import main as _main # isort:skip # noqa
File "c:\python38\lib\site-packages\pip\_internal\__init__.py", line 4, in <module>
import locale
File "c:\python38\lib\locale.py", line 16, in <module>

And when I try: pip3 install -r zephyr\scripts\requirements.txt I get;

Collecting windows-curses (from -r zephyr\scripts\requirements.txt (line 17))
ERROR: Could not find a version that satisfies the requirement windows-curses (from -r zephyr\scripts\requirements.txt (line 17)) (from versions: none)
ERROR: No matching distribution found for windows-curses (from -r zephyr\scripts\requirements.txt (line 17))


import re
File "c:\python38\lib\re.py", line 143, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python38\python.exe' 'c:\python38\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\RANDAL~1.PHI\AppData\Local\Temp\pip-build-env-c94k4nae\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.

Requirements.txt for nrf work just fine.  I'm not sure what isn't setup correctly that would cause this.  All the previous prereqs installed fine.

Parents Reply Children
  • OK.  That finally worked.  I ended up having to re-clone the SDK repository (I think all my previous distortions screwed everything up).  I'm not sure how python38 got installed.  It seems like if one choco install python you will get 3.8, but based on a listing of choco packages, I uinstalled python, then did a choco install python3.  That gave me 3.7.4.  That allowed the requirements.txt to work, but I still had to manually install pyelftools.  Not sure why.  After all that I was able to successfully build and flash at_client.  Still working on command line.  It is my understanding from other posts that the most recent version is having some problems with the SEGGER IDE so I'm leaving that for future study.

    Thanks for the help Edvin,

    Randall

Related