efrei-paris-sud / lab-one

Through this lab, you will be able to setup a complete cross-compiling environment on your personal laptop
0 stars 0 forks source link

Unable to install python requirements #4

Open Anth22 opened 5 years ago

Anth22 commented 5 years ago

antho@DESKTOP-190KBEG MINGW32 ~/esp/hello_world $ python -m pip install --user -r $IDF_PATH/requirements.txt 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/antho/esp/esp-idf/requirements.txt (line 4)) (36.2.7.post20170816) Requirement already satisfied: pyserial>=3.0 in c:/msys32/mingw32/lib/python2.7/site-packages (from -r C:/msys32/home/antho/esp/esp-idf/requirements.txt (line 8)) (3.4) Collecting future>=0.15.2 (from -r C:/msys32/home/antho/esp/esp-idf/requirements.txt (line 9)) Using cached https://files.pythonhosted.org/packages/90/52/e20466b85000a181e1e144fd8305caf2cf475e2f9674e797b222f8105f5f/future-0.17.1.tar.gz Collecting cryptography>=2.1.4 (from -r C:/msys32/home/antho/esp/esp-idf/requirements.txt (line 10)) Using cached https://files.pythonhosted.org/packages/69/ed/5e97b7f54237a9e4e6291b6e52173372b7fa45ca730d36ea90b790c0059a/cryptography-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/antho/appdata/local/temp/pip-build-env-_tjmsm/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/bf/ae/a23db1762646069742cc21393833577d3fa438eecaa59d11fb04fa57fcd5/setuptools-40.7.1-py2.py3-none-any.whl Collecting wheel Using cached https://files.pythonhosted.org/packages/ff/47/1dfa4795e24fd6f93d5d58602dd716c3f101cfd5a77cd9acbe519b44a0a9/wheel-0.32.3-py2.py3-none-any.whl Collecting cffi!=1.11.3,>=1.8 Using cached https://files.pythonhosted.org/packages/e7/a7/4cd50e57cc6f436f1cc3a7e8fa700ff9b8b4d471620629074913e3735fb2/cffi-1.11.5.tar.gz Complete output from command python setup.py egg_info:

      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.)

  ----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in c:/users/antho/appdata/local/temp/pip-install-i9wfkx/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/antho/appdata/local/temp/pip-build-env-_tjmsm/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

HamidiMassinissa commented 5 years ago

Can you provide me with the output you get running the following command (on your terminal):

which gcc
Anth22 commented 5 years ago

It marks : /usr/bin/gcc

[cid:image001.png@01D4B962.89B60CD0]

De : Massinissa notifications@github.com Envoyé : January 30, 2019 11:57 PM À : efrei-paris-sud/lab-one lab-one@noreply.github.com Cc : Anth22 anthony.morali@hotmail.fr; Author author@noreply.github.com Objet : Re: [efrei-paris-sud/lab-one] Unable to install python requirements (#4)

Can you provide me with the output you get running the following command (on your terminal):

which gcc

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/efrei-paris-sud/lab-one/issues/4#issuecomment-459143857, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aj6Ib29daTkV0R4IfT03QHElkxs2VazNks5vIiMwgaJpZM4aanz-.

HamidiMassinissa commented 5 years ago

I think you have to upgrade msys2 packages before installing python requirements. Try: pacman -Syu

Optionally, open a new terminal and run: pacman -Su

Then, install the python requirements: python -m pip install --user -r $IDF_PATH/requirements.txt