esp-idf The following Python requirements are not satisfied: future>=0.16.0

FluxGS
Posts: 25
Joined: Sun Mar 18, 2018 7:01 am

Re: esp-idf The following Python requirements are not satisfied: future>=0.16.0

Postby FluxGS » Mon Oct 01, 2018 3:29 pm

As supplement, this is the result of the tools install command.
$ pacman -S mingw-w64-i686-python2-setuptools
warning: mingw-w64-i686-python2-setuptools-20.3.1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) mingw-w64-i686-python2-setuptools-20.3.1-1

Total Download Size: 0.39 MiB
Total Installed Size: 2.44 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
mingw-w64-i686-python2-setuptools-20.3.1-1-any 402.2 KiB 1253K/s 00:00 [####################################################################] 100%
(1/1) checking keys in keyring [####################################################################] 100%
(1/1) checking package integrity [####################################################################] 100%
(1/1) loading package files [####################################################################] 100%
(1/1) checking for file conflicts [####################################################################] 100%
(1/1) checking available disk space [####################################################################] 100%
warning: could not get file information for mingw32/bin/easy_install-2.7-script.py
warning: could not get file information for mingw32/bin/easy_install-2.7.exe.manifest
warning: could not get file information for mingw32/bin/easy_install-script.py
warning: could not get file information for mingw32/bin/easy_install.exe.manifest
warning: could not get file information for mingw32/lib/python2.7/site-packages/easy_install.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/pkg_resources/__init__.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/pkg_resources/_vendor/__init__.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/pkg_resources/_vendor/packaging/__about__.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/pkg_resources/_vendor/packaging/__init__.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/pkg_resources/_vendor/packaging/_compat.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/pkg_resources/_vendor/packaging/_structures.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/pkg_resources/_vendor/packaging/markers.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/pkg_resources/_vendor/packaging/requirements.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/pkg_resources/_vendor/packaging/specifiers.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/pkg_resources/_vendor/packaging/utils.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/pkg_resources/_vendor/packaging/version.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/pkg_resources/_vendor/pyparsing.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/pkg_resources/_vendor/six.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/pkg_resources/extern/__init__.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools-20.3.1-py2.7.egg-info/
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools-20.3.1-py2.7.egg-info/PKG-INFO
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools-20.3.1-py2.7.egg-info/SOURCES.txt
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools-20.3.1-py2.7.egg-info/dependency_links.txt
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools-20.3.1-py2.7.egg-info/entry_points.txt
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools-20.3.1-py2.7.egg-info/requires.txt
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools-20.3.1-py2.7.egg-info/top_level.txt
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools-20.3.1-py2.7.egg-info/zip-safe
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/__init__.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/archive_util.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/cli-arm-32.exe
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/__init__.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/alias.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/bdist_egg.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/bdist_rpm.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/bdist_wininst.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/build_ext.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/build_py.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/develop.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/easy_install.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/egg_info.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/install.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/install_egg_info.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/install_lib.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/install_scripts.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/register.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/rotate.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/saveopts.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/sdist.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/setopt.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/test.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/upload.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/command/upload_docs.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/depends.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/dist.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/extension.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/extern/__init__.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/gui-arm-32.exe
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/launch.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/lib2to3_ex.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/msvc9_support.py
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/msvc9_support.pyc
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/msvc9_support.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/package_index.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/py26compat.py
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/py26compat.pyc
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/py26compat.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/py27compat.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/py31compat.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/sandbox.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/site-patch.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/ssl_support.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/unicode_utils.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/utils.py
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/utils.pyc
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/utils.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/version.pyo
warning: could not get file information for mingw32/lib/python2.7/site-packages/setuptools/windows_support.pyo
:: Processing package changes...
(1/1) reinstalling mingw-w64-i686-python2-setuptools [####################################################################] 100%

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: esp-idf The following Python requirements are not satisfied: future>=0.16.0

Postby ESP_Angus » Mon Oct 01, 2018 11:27 pm

FluxGS wrote: $ first line resulted in an error that -y is an invalid parameter. I ran the same command without -y
Sorry, I wrote the command in the wrong order, it should be "python -m pip uninstall -y setuptools"
FluxGS wrote: $ second line: $pacman -S mingw-w64-i686-python2-setuptools: ran to completion
From the output in the second post, this looks like it worked but with a lot of errors due to files which were installed via pip as well. I don't know if this matters in the long term.
FluxGS wrote: Third line failed:
$ pacman -S mingw-w64-i686-python2-cryptography
error: target not found: mingw-w64-i686-python2-cryptography
That's strange, this install works on the 20180110 version for me. If you're sure there's no typo or accidental invalid character in the command line, try "pacman -Syu" to upgrade the package repo and then run the command again.

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: esp-idf The following Python requirements are not satisfied: future>=0.16.0

Postby fly135 » Mon Oct 01, 2018 11:33 pm

I tried to set up a friends win 10 computer with the latest master and ran into these problems. I solved it by changing to the v3.1 release IDF. Nice to see posts verifying there is an issue and fixes available.

John A

FluxGS
Posts: 25
Joined: Sun Mar 18, 2018 7:01 am

Re: esp-idf The following Python requirements are not satisfied: future>=0.16.0

Postby FluxGS » Tue Oct 02, 2018 2:12 am

Thank you for the further detailed instructions; my build is now working.

Interestingly in the zip install, the file mingw-w64-i686-python2-cryptography was not in my directory structure.
When the command failed, I did a search and also found where it should be in the tool chain strucuture.

The commands which you supplied did in fact load missing files and I was able to finally execute the requirements.txt.


For Windows 10, I have now compiled and flashed the template example.

Resolved (Windows 10)

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: esp-idf The following Python requirements are not satisfied: future>=0.16.0

Postby ESP_Angus » Tue Oct 02, 2018 3:44 am

FluxGS wrote: Interestingly in the zip install, the file mingw-w64-i686-python2-cryptography was not in my directory structure.
When the command failed, I did a search and also found where it should be in the tool chain strucuture.
That's right, this is a new requirement in the master branch and we haven't updated the zip file yet. This will be done ASAP.

Glad to hear you have everything working now.

gigijoe
Posts: 21
Joined: Wed Aug 02, 2017 10:16 am

Re: esp-idf The following Python requirements are not satisfied: future>=0.16.0

Postby gigijoe » Wed Oct 03, 2018 7:34 am

After pull the latest IDF, the daemon come back

make
/home/gigijoe/ESP32/SGM9200-DECT/components/mkspiffs/Makefile.projbuild:13: warning: overriding commands for target `clean'
/home/gigijoe/ESP32/esp-idf/components/app_update/Makefile.projbuild:60: warning: ignoring old commands for target `clean'
Toolchain path: /home/gigijoe/ESP32/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a
Compiler version: 5.2.0
The following Python requirements are not satisfied:
cryptography
Please run "/usr/bin/python -m pip install --user -r /home/gigijoe/ESP32/esp-idf/requirements.txt" for resolving the issue.
make: *** [check_python_dependencies] Error 1
pip install --index-url=https://pypi.python.org/simple/ -r requirements.txt
Requirement already satisfied (use --upgrade to upgrade): distribute in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): pyserial>=3.0 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 8))
Requirement already satisfied (use --upgrade to upgrade): future>=0.16.0 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 9))
Downloading/unpacking cryptography (from -r requirements.txt (line 10))
Downloading cryptography-2.3.1.tar.gz (449Kb): 449Kb downloaded
Running setup.py egg_info for package cryptography
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/gigijoe/ESP32/esp-idf/build/cryptography/setup.py", line 28, in <module>
"cryptography requires setuptools 18.5 or newer, please upgrade to a "
RuntimeError: cryptography requires setuptools 18.5 or newer, please upgrade to a newer version of setuptools
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 14, in <module>

File "/home/gigijoe/ESP32/esp-idf/build/cryptography/setup.py", line 28, in <module>

"cryptography requires setuptools 18.5 or newer, please upgrade to a "

RuntimeError: cryptography requires setuptools 18.5 or newer, please upgrade to a newer version of setuptools
Please help

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: esp-idf The following Python requirements are not satisfied: future>=0.16.0

Postby ESP_Angus » Wed Oct 03, 2018 7:43 am

Hi gigijoe,

You need to fulfill the requirement mentioned in the error message:
gigijoe wrote: RuntimeError: cryptography requires setuptools 18.5 or newer, please upgrade to a newer version of setuptools
Try this command:

Code: Select all

pip --index-url=https://pypi.python.org/simple/ install --user setuptools==18.5
(Note to anyone else reading this: I'm recommending gigijoe install setuptools version 18.5 (from 2015) because they are using Ubuntu 12.04 so newer setuptools may break other things. If you have a more modern system, you don't need to install this specific older version.)

Then re-run the requirements.txt command one more time.

gigijoe
Posts: 21
Joined: Wed Aug 02, 2017 10:16 am

Re: esp-idf The following Python requirements are not satisfied: future>=0.16.0

Postby gigijoe » Wed Oct 03, 2018 7:54 am

ESP_Angus wrote:Hi gigijoe,

You need to fulfill the requirement mentioned in the error message:
gigijoe wrote: RuntimeError: cryptography requires setuptools 18.5 or newer, please upgrade to a newer version of setuptools
Try this command:

Code: Select all

pip --index-url=https://pypi.python.org/simple/ install --user setuptools==18.5
(Note to anyone else reading this: I'm recommending gigijoe install setuptools version 18.5 (from 2015) because they are using Ubuntu 12.04 so newer setuptools may break other things. If you have a more modern system, you don't need to install this specific older version.)

Then re-run the requirements.txt command one more time.
Angus, Thank you

pip install --index-url=https://pypi.python.org/simple/ --user setuptools==18.5
Requirement already satisfied (use --upgrade to upgrade): distribute in /usr/lib/python2.7/dist-packages
Cleaning up...
pip install --index-url=https://pypi.python.org/simple/ -r requirements.txt
...
RuntimeError: cryptography requires setuptools 18.5 or newer, please upgrade to a newer version of setuptools
...
It still complain about version of setuptools ...

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: esp-idf The following Python requirements are not satisfied: future>=0.16.0

Postby ESP_Angus » Wed Oct 03, 2018 11:50 pm

gigijoe wrote:It still complain about version of setuptools ...
Hrm, that's annoying. I guess try the latest setuptools version, instead:

Code: Select all

pip install --index-url=https://pypi.python.org/simple/ --user setuptools
(If this breaks your Python install in some other way, "pip uninstall --user setuptools" should undo it.)

gigijoe
Posts: 21
Joined: Wed Aug 02, 2017 10:16 am

Re: esp-idf The following Python requirements are not satisfied: future>=0.16.0

Postby gigijoe » Thu Oct 04, 2018 7:39 am

Hello Angus

sudo pip install --index-url=https://pypi.python.org/simple/ --upgrade --user setuptools==18.5
Downloading/unpacking setuptools==18.5
Downloading setuptools-18.5.tar.gz (626Kb): 626Kb downloaded
Running setup.py egg_info for package setuptools

Installing collected packages: setuptools
Found existing installation: setuptools 18.5
Uninstalling setuptools:
Successfully uninstalled setuptools
Running setup.py install for setuptools

Installing easy_install script to /home/gigijoe/.local/bin
Installing easy_install-2.7 script to /home/gigijoe/.local/bin
Successfully installed setuptools
Cleaning up...
Upgrade setuptools seem successful, but actually NOT

python
Python 2.7.3 (default, Jun 22 2015, 19:43:34)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import setuptools
>>> setuptools.__version__
'0.6'
>>>
Thank you

Who is online

Users browsing this forum: No registered users and 124 guests