nvs_partition_gen fails on Win10 [SOLVED]
Posted: Thu Mar 21, 2019 6:14 pm
I do most of my development with IDF v3.1.1 on Win7, and have no problem on it with nvs_partition_gen. But the machine that will be burning devices is Win 10 and it fails because it can't find crypto related libraries.
I've run the tools/windows/windows_requirements.sh to completion, but it still doesn't work. running pip list shows no crypto package...File "C:/Leeo/esp-idf-v3.1.1/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py", line 29, in <module>
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
ImportError: No module named cryptography.hazmat.primitives.ciphers
I tried running pip download cryptography, but it fails trying to use the PC gcc to compile something.pip list
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.
Package Version
------------ ----------
appdirs 1.4.3
CacheControl 0.12.5
certifi 2018.11.29
chardet 3.0.4
colorama 0.4.1
distlib 0.2.8
html5lib 1.0.1
idna 2.8
ipaddress 1.0.22
lockfile 0.12.2
msgpack 0.6.1
packaging 19.0
pep517 0.5.0
pip 19.0.3
progress 1.4
pyparsing 2.3.1
pyserial 3.4
pytoml 0.1.20
requests 2.21.0
retrying 1.3.3
setuptools 40.8.0
six 1.12.0
urllib3 1.24.1
webencodings 0.5.1