Hey every one.
I'm new to this so bare with me.
I have 3- ESP32 Dev kit C V4 boards.
Windows 10
I followed the instructions on seeting uo the IDF, and ran the hello world example on 1 board. - Great
I then followed the same process for ESP-MDF, and tried runnning the get-started example and during the build process I get
" The following Python requirements are not satisfied:
cryptography>=2.1.4
The recommended way to install a packages is via "pacman". Please run "pacman -Ss <package_name>" for searching the package database and if found then "pacman -S mingw-w64-i686-python2-<package_name>" for installing it.
NOTE: You may need to run "pacman -Syu" if your package database is older and run twice if the previous run updated "pacman" itself.
Please read https://github.com/msys2/msys2/wiki/Using-packages for further information about using "pacman"
WARNING: The cryptography package have dependencies on system packages so please make sure you run "pacman -Syu" followed by "pacman -S mingw-w64-i686-python2-cryptography".
Alternatively, you can run "C:/msys32/mingw32/bin/python.exe -m pip install --user -r C:/msys32/home/tdduke/esp/esp-mdf/esp-idf/requirements.txt" for resolving the issue.
make: *** [C:/msys32/home/tdduke/esp/esp-mdf/esp-idf/make/project.mk:476: check_python_dependencies] Error 1 "
So I run
"C:/msys32/mingw32/bin/python.exe -m pip install --user -r C:/msys32/home/tdduke/esp/esp-mdf/esp-idf/requirements.txt"
It returns
"DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: setuptools in c:/msys32/mingw32/lib/python2.7/site-packages (from -r C:/msys32/home/tdduke/esp/esp-mdf/esp-idf/requirements.txt (line 4)) (36.6.0.post20171017)
Requirement already satisfied: pyserial>=3.0 in c:/msys32/mingw32/lib/python2.7/site-packages (from -r C:/msys32/home/tdduke/esp/esp-mdf/esp-idf/requirements.txt (line 8)) (3.4)
Requirement already satisfied: future>=0.15.2 in c:/msys32/home/tdduke/.local/lib/python2.7/site-packages (from -r C:/msys32/home/tdduke/esp/esp-mdf/esp-idf/requirements.txt (line 9)) (0.17.1)
Collecting cryptography>=2.1.4 (from -r C:/msys32/home/tdduke/esp/esp-mdf/esp-idf/requirements.txt (line 10))
Using cached https://files.pythonhosted.org/packages ... 2.5.tar.gz
Installing build dependencies ... error
Complete output from command C:/msys32/mingw32/bin/python.exe C:/msys32/mingw32/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix c:/users/tdduke/appdata/local/temp/pip-build-env-0uvnhv/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=18.5 wheel "cffi>=1.8,!=1.11.3; python_implementation != 'PyPy'":
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting setuptools>=18.5
Using cached https://files.pythonhosted.org/packages ... ne-any.whl
Collecting wheel
Using cached https://files.pythonhosted.org/packages ... ne-any.whl
Collecting cffi!=1.11.3,>=1.8
Using cached https://files.pythonhosted.org/packages ... 2.1.tar.gz
Collecting pycparser (from cffi!=1.11.3,>=1.8)
Using cached https://files.pythonhosted.org/packages ... .19.tar.gz
Installing collected packages: setuptools, wheel, pycparser, cffi
Running setup.py install for pycparser: started
Running setup.py install for pycparser: finished with status 'done'
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status 'error'
Complete output from command C:/msys32/mingw32/bin/python.exe -u -c "import setuptools, tokenize;__file__='c:/users/tdduke/appdata/local/temp/pip-install-fxmumn/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:/users/tdduke/appdata/local/temp/pip-record-9qg1py/install-record.txt --single-version-externally-managed --prefix c:/users/tdduke/appdata/local/temp/pip-build-env-0uvnhv/overlay --compile:
No working compiler found, or bogus compiler options passed to
the compiler from Python's standard "distutils" module. See
the error messages above. Likely, the problem is not related
to CFFI but generic to the setup.py of any Python package that
tries to compile C code. (Hints: on OS/X 10.8, for errors about
-mno-fused-madd see http://stackoverflow.com/questions/22313407/
Otherwise, see https://wiki.python.org/moin/CompLangPython or
the IRC channel #python on irc.freenode.net.)
Trying to continue anyway. If you are trying to install CFFI from
a build done in a different context, you can ignore this warning.
running install
running build
running build_py
creating build
creating build/lib.mingw-2.7
creating build/lib.mingw-2.7/cffi
copying cffi/api.py -> build/lib.mingw-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.mingw-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.mingw-2.7/cffi
copying cffi/commontypes.py -> build/lib.mingw-2.7/cffi
copying cffi/cparser.py -> build/lib.mingw-2.7/cffi
copying cffi/error.py -> build/lib.mingw-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.mingw-2.7/cffi
copying cffi/lock.py -> build/lib.mingw-2.7/cffi
copying cffi/model.py -> build/lib.mingw-2.7/cffi
copying cffi/pkgconfig.py -> build/lib.mingw-2.7/cffi
copying cffi/recompiler.py -> build/lib.mingw-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.mingw-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.mingw-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.mingw-2.7/cffi
copying cffi/verifier.py -> build/lib.mingw-2.7/cffi
copying cffi/__init__.py -> build/lib.mingw-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.mingw-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.mingw-2.7/cffi
copying cffi/_embedding.h -> build/lib.mingw-2.7/cffi
copying cffi/_cffi_errors.h -> build/lib.mingw-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.mingw-2.7
creating build/temp.mingw-2.7/c
i686-w64-mingw32-gcc -fno-strict-aliasing -march=i686 -mtune=generic -O2 -pipe -fwrapv -D__USE_MINGW_ANSI_STDIO=1 -DNDEBUG -DNDEBUG -I/usr/include/ffi -I/usr/include/libffi -IC:/msys32/mingw32/include/python2.7 -c c/_cffi_backend.c -o build/temp.mingw-2.7/c/_cffi_backend.o
error: command 'i686-w64-mingw32-gcc' failed: No such file or directory
----------------------------------------
Command "C:/msys32/mingw32/bin/python.exe -u -c "import setuptools, tokenize;__file__='c:/users/tdduke/appdata/local/temp/pip-install-fxmumn/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:/users/tdduke/appdata/local/temp/pip-record-9qg1py/install-record.txt --single-version-externally-managed --prefix c:/users/tdduke/appdata/local/temp/pip-build-env-0uvnhv/overlay --compile" failed with error code 1 in c:/users/tdduke/appdata/local/temp/pip-install-fxmumn/cffi/
----------------------------------------
Command "C:/msys32/mingw32/bin/python.exe C:/msys32/mingw32/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix c:/users/tdduke/appdata/local/temp/pip-build-env-0uvnhv/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=18.5 wheel "cffi>=1.8,!=1.11.3; python_implementation != 'PyPy'"" failed with error code 1 in None
"
So now it seems like I have a bogus compiler??
Somehow missing cryptography inside environment?
Any help would be appreciated.
Python dependencies
- ESP_Roland
- Posts: 260
- Joined: Tue Oct 09, 2018 10:28 am
Re: Python dependencies
Hi tduke02,
Yes, it is a known issue that the cryptography package cannot be compiled in MSYS and therefore, cannot be installed with pip. Please install it with:
The prepared all-in-one package should work also: https://docs.espressif.com/projects/esp ... hain-setup
Yes, it is a known issue that the cryptography package cannot be compiled in MSYS and therefore, cannot be installed with pip. Please install it with:
Code: Select all
pacman -S mingw-w64-i686-python2-cryptography
Who is online
Users browsing this forum: No registered users and 86 guests