Installing build dependencies finished with status error

Environment pip version: 18.0 Python version: 3.7.0 OS: macOS 10.14 Description While attempting to run tests in a heavily degraded network environment (no connectivity), the tests fail to run whil...

Environment

  • pip version: 18.0
  • Python version: 3.7.0
  • OS: macOS 10.14

Description

While attempting to run tests in a heavily degraded network environment (no connectivity), the tests fail to run while attempting to upgrade already satisfied build dependencies.

Expected behavior

After running a test environment using a tool like tox, it should be possible to repeatedly run that command without network connectivity.

How to Reproduce

  1. Install tox and tox-venv.
  2. Check out a project that runs tests under tox, such as path.py.
  3. Run tox. Tests pass.
  4. Disable network connectivity.
  5. Attempt to run tox again.

Output

path.py feature/flexible-patterns $ tox
python develop-inst-nodeps: /Users/jaraco/code/main/path.py
ERROR: invocation failed (exit code 1), logfile: /Users/jaraco/code/main/path.py/.tox/python/log/python-30.log
ERROR: actionid: python
msg: developpkg
cmdargs: "/Users/jaraco/code/main/path.py/.tox/python/bin/python -m pip install --no-deps -e '/Users/jaraco/code/main/path.py[testing]'"

Obtaining file:///Users/jaraco/code/main/path.py
  Installing build dependencies: started
  Installing build dependencies: finished with status 'error'
  Complete output from command /Users/jaraco/code/main/path.py/.tox/python/bin/python -m pip install --ignore-installed --no-user --prefix /private/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-build-env-gj2e5bvs --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=30.3 wheel setuptools_scm>=1.15:
  Collecting setuptools>=30.3
    Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x10ba42550>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')': /simple/setuptools/
    Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x10ba42588>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')': /simple/setuptools/
    Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x10ba42518>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')': /simple/setuptools/
    Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x10ba42358>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')': /simple/setuptools/
    Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x10ba42470>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known')': /simple/setuptools/
    Could not find a version that satisfies the requirement setuptools>=30.3 (from versions: )
  No matching distribution found for setuptools>=30.3

  ----------------------------------------
Command "/Users/jaraco/code/main/path.py/.tox/python/bin/python -m pip install --ignore-installed --no-user --prefix /private/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/pip-build-env-gj2e5bvs --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=30.3 wheel setuptools_scm>=1.15" failed with error code 1 in None

python installed: appdirs==1.4.3,atomicwrites==1.2.1,attrs==18.2.0,collective.checkdocs==0.2,docutils==0.14,flake8==3.5.0,importlib-metadata==0.5,mccabe==0.6.1,more-itertools==4.3.0,packaging==17.1,-e git+gh://jaraco/path.py@22e020b1c98be13161806866ced361d637eea328#egg=path.py,pluggy==0.7.1,py==1.6.0,pycodestyle==2.3.1,pyflakes==1.6.0,Pygments==2.2.0,pyparsing==2.2.1,pytest==3.8.1,pytest-flake8==1.0.2,pytest-sugar==0.9.1,six==1.11.0,termcolor==1.1.0
___________________________________________________________________________________ summary ____________________________________________________________________________________
ERROR:   python: InvocationError for command /Users/jaraco/code/main/path.py/.tox/python/bin/python -m pip install --no-deps -e /Users/jaraco/code/main/path.py[testing] (see /Users/jaraco/code/main/path.py/.tox/python/log/python-30.log) (exited with code 1)
path.py feature/flexible-patterns $ .tox/python/bin/python -m easy_install --version
setuptools 39.1.0 from /Users/jaraco/code/main/path.py/.tox/python/lib/python3.7/site-packages (Python 3.7)

As you can see from the log, the invocation of pip install --no-deps -e $project_root[testing] leads to an invocation of pip install --ignore-installed setuptools (among other options), and this invocation fails.


I haven’t yet tried to fully isolate or reproduce the issue. I’d first like some advice. Does it appear as if tox is doing the right thing here? Is there anything I or tox should be doing differently to avoid this error? Does the output shown provide any insight into why setuptools would be attempted to be downloaded even when it’s satisfied?

I’m working on a rapsberrypi 3b+, with Raspbian Buster Lite (version : February 2020)
I installed all dependencies as mentioned in this tutorial https://medium.com/@techiebouncer/install-docker-and-docker-compose-on-raspberry-pi-4-raspbian-buster-c5b78b9a0d08. Everything is up-to-date, however with I create my container there is a issue at step two of the Dockerfile when running this cmd :

RUN apt-get update 
&& apt-get install build-essential -y 
&& pip install poetry

The error message is very long:

  Installing build dependencies: finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-e8my0zvf/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; platform_python_implementation != '"'"'PyPy'"'"''
       cwd: None
  Complete output (100 lines):
  Collecting setuptools>=40.6.0
    Downloading setuptools-46.1.3-py3-none-any.whl (582 kB)
  Collecting wheel
    Downloading wheel-0.34.2-py2.py3-none-any.whl (26 kB)
  Collecting cffi!=1.11.3,>=1.8
    Downloading cffi-1.14.0.tar.gz (463 kB)
  Collecting pycparser
    Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
  Building wheels for collected packages: cffi
    Building wheel for cffi (setup.py): started
    Building wheel for cffi (setup.py): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-w3618jys/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-w3618jys/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-tib_06xh
         cwd: /tmp/pip-install-w3618jys/cffi/
    Complete output (36 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-3.7
    creating build/lib.linux-armv7l-3.7/cffi
    copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-armv7l-3.7
    creating build/temp.linux-armv7l-3.7/c
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o
    c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
     #include <ffi.h>
              ^~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for cffi
    Running setup.py clean for cffi
  Failed to build cffi
  Installing collected packages: setuptools, wheel, pycparser, cffi
      Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-w3618jys/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-w3618jys/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-8j22vllc/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-e8my0zvf/overlay --compile --install-headers /tmp/pip-build-env-e8my0zvf/overlay/include/python3.7m/cffi
           cwd: /tmp/pip-install-w3618jys/cffi/
      Complete output (36 lines):
      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-armv7l-3.7
      creating build/lib.linux-armv7l-3.7/cffi
      copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-armv7l-3.7
      creating build/temp.linux-armv7l-3.7/c
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o
      c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
       #include <ffi.h>
                ^~~~~~~
      compilation terminated.
      error: command 'gcc' failed with exit status 1
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-w3618jys/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-w3618jys/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-8j22vllc/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-e8my0zvf/overlay --compile --install-headers /tmp/pip-build-env-e8my0zvf/overlay/include/python3.7m/cffi Check the logs for full command output.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-e8my0zvf/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; platform_python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.

It seems that there is an issue with libffi-dev module but it is up-to-date.
Or with gcc but I don’t know what to install?

When i try installing packages on pycharm this error happens:

Collecting PyAutoGUI

Downloading https://files.pythonhosted.org/packages/a3/69/c8b0cab7cbc6badbc0079392e5d4b50f3e4be63e0091f0f414bd1ea4ac07/PyAutoGUI-0.9.50.tar.gz (57kB)

Collecting pymsgbox (from PyAutoGUI)

Downloading https://files.pythonhosted.org/packages/e0/d5/148383b342b621a23cb340e7b378122d3fd53a631c5e5142a5c869bdfa5b/PyMsgBox-1.0.8.tar.gz

Installing build dependencies: started

Installing build dependencies: still running…

Installing build dependencies: finished with status ‘error’

ERROR: Command errored out with exit status 1:

command: ‘C:UsersjessfAppDataLocalProgramsPythonPython38-32python.exe’ ‘C:UsersjessfAppDataLocalProgramsPythonPython38-32libsite-packagespip’ install —ignore-installed —no-user —prefix ‘C:UsersjessfAppDataLocalTemppip-build-env-wqayhb7koverlay’ —no-warn-script-location —no-binary :none: —only-binary :none: -i https://pypi.org/simple — ‘setuptools>=40.8.0’ wheel

cwd: None

Complete output (8 lines):

Collecting setuptools>=40.8.0

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(«HTTPSConnectionPool(host=’pypi.org’, port=443): Read timed out. (read timeout=15)»)’: /simple/setuptools/

WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(«HTTPSConnectionPool(host=’pypi.org’, port=443): Read timed out. (read timeout=15)»)’: /simple/setuptools/

WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(«HTTPSConnectionPool(host=’pypi.org’, port=443): Read timed out. (read timeout=15)»)’: /simple/setuptools/

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(«HTTPSConnectionPool(host=’pypi.org’, port=443): Read timed out. (read timeout=15)»)’: /simple/setuptools/

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(«HTTPSConnectionPool(host=’pypi.org’, port=443): Read timed out. (read timeout=15)»)’: /simple/setuptools/

ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)

ERROR: No matching distribution found for setuptools>=40.8.0

—————————————-

ERROR: Command errored out with exit status 1: ‘C:UsersjessfAppDataLocalProgramsPythonPython38-32python.exe’ ‘C:UsersjessfAppDataLocalProgramsPythonPython38-32libsite-packagespip’ install —ignore-installed —no-user —prefix ‘C:UsersjessfAppDataLocalTemppip-build-env-wqayhb7koverlay’ —no-warn-script-location —no-binary :none: —only-binary :none: -i https://pypi.org/simple — ‘setuptools>=40.8.0’ wheel Check the logs for full command output.

anyone know what to do?

Содержание

  1. Ошибка подпроцесса при установке Kivy на Windows. Что делать?
  2. ERROR: Command errored out with exit status 1: while installing kivy #7140
  3. Comments
  4. C:Userspavan>python -m pip install docutils pygments pypiwin32 kivy_deps.sdl2==0.1.* kivy_deps.glew==0.1.* Requirement already satisfied: docutils in c:userspavanappdatalocalprogramspythonpython39libsite-packages (0.16) Requirement already satisfied: pygments in c:userspavanappdatalocalprogramspythonpython39libsite-packages (2.7.1) Requirement already satisfied: pypiwin32 in c:userspavanappdatalocalprogramspythonpython39libsite-packages (223) ERROR: Could not find a version that satisfies the requirement kivy_deps.sdl2==0.1.* (from versions: 0.3.0, 0.3.1) ERROR: No matching distribution found for kivy_deps.sdl2==0.1.*
  5. So i changed my comment as «C:Userspavan>python -m pip install docutils pygments pypiwin32 kivy_deps.sdl2==0.3.* kivy_deps.glew==0.3.*» After the package is installed.Then i entered 3rd command 3. python -m pip install kivy==1.11.1 For this i got error for that i downloaded and installed microsoft c++ build tools,again i used command as «pip install —pre —extra-index-url https://kivy.org/downloads/simple kivy[base]» for this i got following error
  6. C:Userspavan>pip install —pre —extra-index-url https://kivy.org/downloads/simple kivy[base] Looking in indexes: https://pypi.org/simple, https://kivy.org/downloads/simple Collecting kivy[base] Using cached Kivy-2.0.0rc3.tar.gz (23.6 MB) Installing build dependencies . error ERROR: Command errored out with exit status 1: command: ‘c:userspavanappdatalocalprogramspythonpython39python.exe’ ‘c:userspavanappdatalocalprogramspythonpython39libsite-packagespip’ install —ignore-installed —no-user —prefix ‘C:UserspavanAppDataLocalTemppip-build-env-l6clgiwroverlay’ —no-warn-script-location —no-binary :none: —only-binary :none: -i https://pypi.org/simple —extra-index-url https://kivy.org/downloads/simple —pre — setuptools wheel ‘cython>=0.24, =0.24 Using cached Cython-0.29.14.tar.gz (2.1 MB) ERROR: Could not find a version that satisfies the requirement kivy_deps.gstreamer_dev
  7. ERROR: Command errored out with exit status 1: ‘c:userspavanappdatalocalprogramspythonpython39python.exe’ ‘c:userspavanappdatalocalprogramspythonpython39libsite-packagespip’ install —ignore-installed —no-user —prefix ‘C:UserspavanAppDataLocalTemppip-build-env-l6clgiwroverlay’ —no-warn-script-location —no-binary :none: —only-binary :none: -i https://pypi.org/simple —extra-index-url https://kivy.org/downloads/simple —pre — setuptools wheel ‘cython>=0.24,
  8. Ошибка подпроцесса при установке Kivy на Windows. Что делать?
  9. pip install kivy in virtualenv fails with error: ‘../include/config.pxi’ not found #5391
  10. Comments
  11. Versions
  12. Description
  13. Code and Logs
  14. Relevant bits from strace
  15. Full traceback
  16. Steps to reproduce
  17. Versions
  18. Description
  19. Code and Logs
  20. Installation on Linux¶
  21. Installation components¶
  22. Installing Python¶
  23. Ubuntu¶
  24. Fedora¶
  25. Source installation Dependencies¶
  26. Ubuntu¶
  27. Fedora¶
  28. Using software packages (PPA etc.)¶
  29. Ubuntu / Kubuntu / Xubuntu / Lubuntu (Saucy and above)¶
  30. Debian (Jessie or newer)¶
  31. Linux Mint¶
  32. Bodhi Linux¶
  33. OpenSuSE¶
  34. Gentoo¶
  35. Device permissions¶

Ошибка подпроцесса при установке Kivy на Windows. Что делать?

Я пытался установить Kivy через pip по инструкции с официального сайта, однако, при попытке установки консоль выдаёт следующую ошибку:

Если это важно, у меня стоит python 3.10.

Как решить данную проблему?

  • Вопрос задан 06 февр. 2022
  • 3481 просмотр

Потихонечку откатываемся на python 3.8

Также, если есть желание, перед установкой любой библиотеки, желательно почитать офф. инструкцию по установке:
Kivy 2.0.0 officially supports Python versions 3.6 — 3.9. — второе предложение в инструкции!

Потихонечку откатываемся на python 3.8

А если серьёзно, у вас он работает с 3.9?

3.7, 3.8, 3.9 — тут вообще без разницы, абсолютно.

Тем более, последние версии не опытным пользователям привозят только вагон и маленькую тележку проблем.

Если без разницы, тогда почему 3.8?

Какие проблемы привозит 3.9 в отличие от 3.8?

Как вариант, меньшее количество пакетов, доступных через pip install. Конечно, можно большинство пакетов в Python 3.9, 3.10. установить из исходников, но новички этим заниматься не будут!

Источник

ERROR: Command errored out with exit status 1: while installing kivy #7140

As you people suggested i run the command inthe command window as follows.

  1. python -m pip install —upgrade pip setuptools wheel
  2. python -m pip install docutils pygments pypiwin32 kivy_deps.sdl2==0.1.* kivy_deps.glew==0.1.*
    —> for this command i got following error

C:Userspavan>python -m pip install docutils pygments pypiwin32 kivy_deps.sdl2==0.1.* kivy_deps.glew==0.1.*
Requirement already satisfied: docutils in c:userspavanappdatalocalprogramspythonpython39libsite-packages (0.16)
Requirement already satisfied: pygments in c:userspavanappdatalocalprogramspythonpython39libsite-packages (2.7.1)
Requirement already satisfied: pypiwin32 in c:userspavanappdatalocalprogramspythonpython39libsite-packages (223)
ERROR: Could not find a version that satisfies the requirement kivy_deps.sdl2==0.1.* (from versions: 0.3.0, 0.3.1)
ERROR: No matching distribution found for kivy_deps.sdl2==0.1.*

=0.2.0 (from versions: 0.3.0, 0.3.1)
ERROR: No matching distribution found for kivy_deps.gstreamer_dev

ERROR: Command errored out with exit status 1: ‘c:userspavanappdatalocalprogramspythonpython39python.exe’ ‘c:userspavanappdatalocalprogramspythonpython39libsite-packagespip’ install —ignore-installed —no-user —prefix ‘C:UserspavanAppDataLocalTemppip-build-env-l6clgiwroverlay’ —no-warn-script-location —no-binary :none: —only-binary :none: -i https://pypi.org/simple —extra-index-url https://kivy.org/downloads/simple —pre — setuptools wheel ‘cython>=0.24,

The text was updated successfully, but these errors were encountered:

Источник

Ошибка подпроцесса при установке Kivy на Windows. Что делать?

Я пытался установить Kivy через pip по инструкции с официального сайта, однако, при попытке установки консоль выдаёт следующую ошибку:

Если это важно, у меня стоит python 3.10.

Как решить данную проблему?

  • Вопрос задан 06 февр. 2022
  • 3481 просмотр

Потихонечку откатываемся на python 3.8

Также, если есть желание, перед установкой любой библиотеки, желательно почитать офф. инструкцию по установке:
Kivy 2.0.0 officially supports Python versions 3.6 — 3.9. — второе предложение в инструкции!

Потихонечку откатываемся на python 3.8

А если серьёзно, у вас он работает с 3.9?

3.7, 3.8, 3.9 — тут вообще без разницы, абсолютно.

Тем более, последние версии не опытным пользователям привозят только вагон и маленькую тележку проблем.

Если без разницы, тогда почему 3.8?

Какие проблемы привозит 3.9 в отличие от 3.8?

Как вариант, меньшее количество пакетов, доступных через pip install. Конечно, можно большинство пакетов в Python 3.9, 3.10. установить из исходников, но новички этим заниматься не будут!

Источник

pip install kivy in virtualenv fails with error: ‘../include/config.pxi’ not found #5391

Versions

  • Python: 2.7.12
  • OS: Ubuntu 16.04 LTS
  • Kivy: 1.10.0, master (7991cef)
  • Kivy installation method: pip + virtualenv

Description

(As the included code makes this issue rather long, here is the structure of the headings so you can head straight for the bit most relevant to you.)

I am attempting to install kivy in a virtualenv, following the official instructions. However, when I reach the step where I run pip install kivy I get the following error (full traceback and steps to reproduce further down):

Where should config.pxi come from, and what should it contain? Am I missing an installation step, or is this due to an assumption in Kivy’s setup.py?

By inserting traces, I found the installation process looks for config.pxi in these locations:

Code and Logs

The problem occurs both with pip install kivy==1.10.0 and with pip install git+https://github.com/kivy/kivy.git@master .

Relevant bits from strace

(Thanks to Julia Evans for her zine explaining strace !)

Full traceback

Steps to reproduce

If you do not want to use Vagrant, look for this code block in the Vagrantfile below:

Because the steps to reproduce include sudo apt-get install , I have placed
them in a Vagrantfile. Vagrant makes it trivial to create and destroy virtual
machines that have the same environment every time. This is useful for
reproducible development environments, but also to demonstrate bugs.

Vagrant usage
  • Install Vagrant from https://www.vagrantup.com
  • Create a directory, and place the contents below in a file called Vagrantfile
  • cd to the directory and run vagrant up

That’s it! The problem mentioned above will occur at the end of the provisioning. From there, you might want to:

  • vagrant ssh to SSH into the virtual machine
  • vagrant halt to shut down the machine; vagrant up to restart it
  • vagrant destroy + vagrant up to recreate the machine from scratch
  • vagrant provision to rerun the provisioning script.
Vagrantfile

Call this file Vagrantfile . See the previous section for usage.

The text was updated successfully, but these errors were encountered:

This error does not occur with

It may have to do with 00b2ddb, ‘path changes for config.pxi’.

Edit: kivy==1.91.1 was a typo, I meant that the last working version is 1.9.1 .

Hi, @sietse, is it possible that the exact commands are:

These didn’t yield any errors for me (but cython and 1.91.1 did).

Hi @rubencabrera, thank you for looking at this issue. The combination that I am reporting a problem with is

, which fails with the following error:

A quick overview of other version combinations, to save you some experimentation:

  • Cython==0.23 plus kivy==1.91.1 was a typo: Kivy ‘one point ninety-one’ does not exist. I have edited my post above accordingly.
  • Cython==0.23 plus kivy==1.9.1 is the most recent combination proposed by the docs that works.
  • Cython==0.25 plus kivy==1.10.1 (suggested by the official documentation since 2017-07-24) throws an error because there is no Kivy 1.10.1 on PyPI.

Do you know anything about config.pxi , what it should contain, and why Cython fails to find it in /tmp/pip-build-PQ2L9G/kivy/kivy/graphics/../include/config.pxi ,
./../include/config.pxi , or $HOME/.virtualenvs/kivy/local/lib/python2.7/site-packages/Cython/Includes/../include/config.pxi ?

Confirm,
Cython 0.25 results in config.pxi error while installing kivy 1.10.0

I’m using virtualenv in Debian 8.9.

I also confirm this issue with cython==0.25 and kivy==1.10.1 on Ubuntu 16.04 64bit Python 3.5.

FWIW, cython==0.25 and kivy==1.9.1 also throws the same error.

However, cython==0.24 and kivy==1.9.1 works and cython==0.24 and kivy==1.10.0 works.

EDIT: cython==0.24 and kivy==1.10.0 works for me.

I run into a similar error (at least the beginning of the traceback is quite similar). I will downgrade cython and try it with kivy==1.9.1. Nevertheless, here are my configurations and traceback.

Versions

  • Python: 2.7.14 (custom/manual python, not the «build-in python»)
  • OS: Lubuntu (32bit) 16.04.3 LTE
  • Kivy: 1.10 (cython==0.25)
  • Kivy installation method: «on ubuntu inside a virtualenv» (actually I am using pipenv)

Description

I try to install kivy using pipenv. I follow the Ubuntu example for «Dependencies with SDL2» found on kivy docs.

Code and Logs

/Projects/CalcGame/v0.1.7$ pipenv install kivypipenv: command not found arbo@TINY-HAPPY:

Источник

Installation on Linux¶

To install Kivy on Linux using pip , please follow the main installation guide . Otherwise, continue to the PPA instructions below .

Installation components¶

Following, are additional information linked to from some of the steps in the main pip installation guide , specific to Linux.

Installing Python¶

Python and python-pip must be installed from the package manager:

Ubuntu¶

Fedora¶

You will likely need to do this preliminary step which installs the rpmfusion-free repository unless you have some other 3rd-party repo installed which has the required packages. See rpmfusion.org for complete installation instructions, but only the rpmfusion-free repo is needed for acquiring kivy dependencies (though rpmfusion-nonfree is recommended by rpm fusion installation instructions) as shown in this step.

After you ensure that a 3rd-party repository containing any packages that dnf is otherwise unable to find, continue installing dependencies:

Source installation Dependencies¶

To install Kivy from source, please follow the installation guide until you reach the Kivy install step and then install the dependencies below before continuing. Additionally, if you’d like to be able to use the x11 window backend do:

Ubuntu¶

Fedora¶

Using software packages (PPA etc.)¶

Ubuntu / Kubuntu / Xubuntu / Lubuntu (Saucy and above)¶

Add one of the PPAs as you prefer

$ sudo add-apt-repository ppa:kivy-team/kivy

$ sudo add-apt-repository ppa:kivy-team/kivy-daily

$ sudo apt-get update

$ sudo apt-get install python3-kivy

optionally the gallery of Examples — kivy-examples

$ sudo apt-get install kivy-examples

Debian (Jessie or newer)¶

Add one of the PPAs to your sources.list in apt manually or via Synaptic

Notice: Wheezy is not supported — You’ll need to upgrade to Jessie at least!

Add the GPG key to your apt keyring by executing

sudo apt-key adv —keyserver keyserver.ubuntu.com —recv-keys A863D2D6

apt-key adv —keyserver keyserver.ubuntu.com —recv-keys A863D2D6

Refresh your package list and install python-kivy and/or python3-kivy and optionally the examples found in kivy-examples

Linux Mint¶

Find out on which Ubuntu release your installation is based on, using this overview.

Continue as described for Ubuntu above, depending on which version your installation is based on.

Bodhi Linux¶

Find out which version of the distribution you are running and use the table below to find out on which Ubuntu LTS it is based.

Ubuntu 10.04 LTS aka Lucid (No packages, just manual install)

Ubuntu 12.04 LTS aka Precise

Ubuntu 14.04 LTS aka Trusty

Ubuntu 16.04 LTS aka Xenial

Continue as described for Ubuntu above, depending on which version your installation is based on.

OpenSuSE¶

To install kivy go to http://software.opensuse.org/package/python-Kivy and use the “1 Click Install” for your openSuse version. You might need to make the latest kivy version appear in the list by clicking on “Show unstable packages”. We prefer to use packages by ” devel:languages:python”.

If you would like access to the examples, please select python-Kivy-examples in the upcoming installation wizard.

Gentoo¶

There is a kivy ebuild (kivy stable version)

available USE-flags are:

cairo: Standard flag, let kivy use cairo graphical libraries. camera: Install libraries needed to support camera. doc: Standard flag, will make you build the documentation locally. examples: Standard flag, will give you kivy examples programs. garden: Install garden tool to manage user maintained widgets. gstreamer: Standard flag, kivy will be able to use audio/video streaming libraries. spell: Standard flag, provide enchant to use spelling in kivy apps.

Device permissions¶

When you app starts, Kivy uses Mtdev to scan for available multi-touch devices to use for input. Access to these devices is typically restricted to users or groups with the appropriate permissions.

If you do not have access to these devices, Kivy will log an error or warning specifying these devices, normally something like:

In order to use these devices, you can add your user to a group that has the required permissions. For example, in Ubuntu, you can add the user to the ‘input’ group:

Note that you need to log out then back in again for these permissions to be applied.

Источник

Issue

I got the following error while building a docker image by «docker-compose build».

ERROR: Couldn't connect to Docker daemon at http://127.0.0.1:2375 - is it running?

If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

Even if I try with «sudo», I got this:

Building web
Step 1/8 : FROM python:3.8.3-alpine
 ---> 8ecf5a48c789
Step 2/8 : WORKDIR /usr/src/app
 ---> Using cache
 ---> 87bb0088a0ba
Step 3/8 : ENV PYTHONDONTWRITEBYTECODE 1
 ---> Using cache
 ---> 4f1a6ddf9e1f
Step 4/8 : ENV PYTHONUNBUFFERED 1
 ---> Using cache
 ---> 5d22b6b7a0f5
Step 5/8 : RUN pip install --upgrade pip
 ---> Using cache
 ---> 169ee831f728
Step 6/8 : COPY ./requirements.txt .
 ---> Using cache
 ---> 4b4351e31632
Step 7/8 : RUN pip install -r requirements.txt
 ---> Running in a4dae2fe3761
Collecting asgiref==3.2.10
  Downloading asgiref-3.2.10-py3-none-any.whl (19 kB)
Collecting cffi==1.14.3
  Downloading cffi-1.14.3.tar.gz (470 kB)
Collecting cryptography==3.2.1
  Downloading cryptography-3.2.1.tar.gz (540 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python /usr/local/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-p3ocmpkd/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; platform_python_implementation != '"'"'PyPy'"'"''
       cwd: None
  Complete output (128 lines):
  Collecting setuptools>=40.6.0
    Downloading setuptools-50.3.2-py3-none-any.whl (785 kB)
  Collecting wheel
    Downloading wheel-0.35.1-py2.py3-none-any.whl (33 kB)
  Collecting cffi!=1.11.3,>=1.8
    Using cached cffi-1.14.3.tar.gz (470 kB)
  Collecting pycparser
    Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
  Building wheels for collected packages: cffi
    Building wheel for cffi (setup.py): started
    Building wheel for cffi (setup.py): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_eoslhz1/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_eoslhz1/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-99ngzpxw
         cwd: /tmp/pip-install-_eoslhz1/cffi/
    Complete output (50 lines):
    unable to execute 'gcc': No such file or directory
    unable to execute 'gcc': No such file or directory
  
        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 bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.8
    creating build/lib.linux-x86_64-3.8/cffi
    copying cffi/api.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/verifier.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/recompiler.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/model.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/__init__.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/error.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/cparser.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/commontypes.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/lock.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/_embedding.h -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.8/cffi
    warning: build_py: byte-compiling is disabled, skipping.
  
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-x86_64-3.8
    creating build/temp.linux-x86_64-3.8/c
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.8 -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.8/c/_cffi_backend.o
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for cffi
    Running setup.py clean for cffi
  Failed to build cffi
  Installing collected packages: setuptools, wheel, pycparser, cffi
      Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_eoslhz1/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_eoslhz1/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-pah2aui6/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-p3ocmpkd/overlay --compile --install-headers /tmp/pip-build-env-p3ocmpkd/overlay/include/python3.8/cffi
           cwd: /tmp/pip-install-_eoslhz1/cffi/
      Complete output (50 lines):
      unable to execute 'gcc': No such file or directory
      unable to execute 'gcc': No such file or directory
  
          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.linux-x86_64-3.8
      creating build/lib.linux-x86_64-3.8/cffi
      copying cffi/api.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/verifier.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/recompiler.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/model.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/__init__.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/error.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/cparser.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/commontypes.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/lock.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/_embedding.h -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.8/cffi
      warning: build_py: byte-compiling is disabled, skipping.
  
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-x86_64-3.8
      creating build/temp.linux-x86_64-3.8/c
      gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.8 -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.8/c/_cffi_backend.o
      unable to execute 'gcc': No such file or directory
      error: command 'gcc' failed with exit status 1
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_eoslhz1/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_eoslhz1/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-pah2aui6/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-p3ocmpkd/overlay --compile --install-headers /tmp/pip-build-env-p3ocmpkd/overlay/include/python3.8/cffi Check the logs for full command output.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python /usr/local/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-p3ocmpkd/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; platform_python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.
ERROR: Service 'web' failed to build: The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1

That is my Dockerfile:

# pull official base image
FROM python:3.8.3-alpine

# set work directory
WORKDIR /usr/src/app

# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

# install dependencies
RUN pip install --upgrade pip
COPY ./requirements.txt .
RUN pip install -r requirements.txt

# copy project
COPY . .

and docker-compose.yml:

version: '3.7'

services:
  web:
    build: .
    command: python manage.py runserver 0.0.0.0:8000
    volumes:
      - ./:/usr/src/app/
    ports:
      - 8000:8000
    env_file:
      - ./.env.dev

I will add that I bought my laptop a few months ago, and already had problems with Docker on my previous system on this device (that’s one of the reasons I changed my system). I switched from Fedora to Ubuntu.

Additionally, there is no «python» alias for python3 in my shell, and because of the unknown reason I need to put «python3 -m» before simple «pip freeze».

I hope that information may be useful.
Thank You.

.
.
.

After adding a «RUN apk add builder-base» in my Dockerfile, following error appears:

Step 8/9 : RUN pip install -r requirements.txt
 ---> Running in cd9c74fbd831
Collecting asgiref==3.2.10
  Downloading asgiref-3.2.10-py3-none-any.whl (19 kB)
Collecting cffi==1.14.3
  Downloading cffi-1.14.3.tar.gz (470 kB)
Collecting cryptography==3.2.1
  Downloading cryptography-3.2.1.tar.gz (540 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /usr/local/bin/python /usr/local/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-gbfaltlj/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; platform_python_implementation != '"'"'PyPy'"'"''
       cwd: None
  Complete output (104 lines):
  Collecting setuptools>=40.6.0
    Downloading setuptools-50.3.2-py3-none-any.whl (785 kB)
  Collecting wheel
    Downloading wheel-0.35.1-py2.py3-none-any.whl (33 kB)
  Collecting cffi!=1.11.3,>=1.8
    Using cached cffi-1.14.3.tar.gz (470 kB)
  Collecting pycparser
    Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
  Building wheels for collected packages: cffi
    Building wheel for cffi (setup.py): started
    Building wheel for cffi (setup.py): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-myhajkmm/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-myhajkmm/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-9jsg5veu
         cwd: /tmp/pip-install-myhajkmm/cffi/
    Complete output (38 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.8
    creating build/lib.linux-x86_64-3.8/cffi
    copying cffi/api.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/verifier.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/recompiler.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/model.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/__init__.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/error.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/cparser.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/commontypes.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/lock.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/_embedding.h -> build/lib.linux-x86_64-3.8/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.8/cffi
    warning: build_py: byte-compiling is disabled, skipping.
  
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-x86_64-3.8
    creating build/temp.linux-x86_64-3.8/c
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.8 -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.8/c/_cffi_backend.o
    c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
       15 | #include <ffi.h>
          |          ^~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for cffi
    Running setup.py clean for cffi
  Failed to build cffi
  Installing collected packages: setuptools, wheel, pycparser, cffi
      Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Command errored out with exit status 1:
       command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-myhajkmm/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-myhajkmm/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-s86a1yn7/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-gbfaltlj/overlay --compile --install-headers /tmp/pip-build-env-gbfaltlj/overlay/include/python3.8/cffi
           cwd: /tmp/pip-install-myhajkmm/cffi/
      Complete output (38 lines):
      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.8
      creating build/lib.linux-x86_64-3.8/cffi
      copying cffi/api.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/verifier.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/recompiler.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/model.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/__init__.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/error.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/cparser.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/commontypes.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/lock.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/_embedding.h -> build/lib.linux-x86_64-3.8/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.8/cffi
      warning: build_py: byte-compiling is disabled, skipping.
  
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-x86_64-3.8
      creating build/temp.linux-x86_64-3.8/c
      gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.8 -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.8/c/_cffi_backend.o
      c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
         15 | #include <ffi.h>
            |          ^~~~~~~
      compilation terminated.
      error: command 'gcc' failed with exit status 1
      ----------------------------------------
  ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-myhajkmm/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-myhajkmm/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-s86a1yn7/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-gbfaltlj/overlay --compile --install-headers /tmp/pip-build-env-gbfaltlj/overlay/include/python3.8/cffi Check the logs for full command output.
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python /usr/local/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-gbfaltlj/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; platform_python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.
ERROR: Service 'web' failed to build: The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1

Solution

Alpine Linux does not support the binary wheels Python packages ship under the manylinux tag, so you have to compile things like cffi and cryptography yourself. To do so you’ll need a compiler and the correct set of headers. This is documented in the cryptography installation documentation for Alpine.

Update September 2021: There is now a musllinux standard which allows binary wheels that work with Alpine. To use them you must have pip 21.2.4 or greater.

Answered By — Paul Kehrer

Hi, I made a little change to code (its working on my local scrapy), but while deploying to scrapinghub i am getting this error:

{«status»: «error», «message»: «Requirements error»}

Here is the full log.

Login succeeded

Building an image:

Step 1/12 : FROM scrapinghub/scrapinghub-stack-scrapy:1.4

# Executing 2 build triggers…

Step 1/1 : ENV PIP_TRUSTED_HOST $PIP_TRUSTED_HOST PIP_INDEX_URL $PIP_INDEX_URL

 —> Using cache

Step 1/1 : RUN test -n $APT_PROXY && echo ‘Acquire::http::Proxy «$APT_PROXY»;’  >/etc/apt/apt.conf.d/proxy

 —> Using cache

 —> 24d6293b6b61

Step 2/12 : ENV PYTHONUSERBASE /app/python

 —> Using cache

 —> 61cdf4ed7547

Step 3/12 : ADD eggbased-entrypoint /usr/local/sbin/

 —> Using cache

 —> 92017487150e

Step 4/12 : ADD run-pipcheck /usr/local/bin/

 —> Using cache

 —> a8a333f93303

Step 5/12 : RUN chmod +x /usr/local/bin/run-pipcheck

 —> Using cache

 —> b1bd6a21e692

Step 6/12 : RUN chmod +x /usr/local/sbin/eggbased-entrypoint &&     ln -sf /usr/local/sbin/eggbased-entrypoint /usr/local/sbin/start-crawl &&     ln -sf /usr/local/sbin/eggbased-entrypoint /usr/local/sbin/scrapy-list &&     ln -sf /usr/local/sbin/eggbased-entrypoint /usr/local/sbin/shub-image-info &&     ln -sf /usr/local/sbin/eggbased-entrypoint /usr/local/sbin/run-pipcheck

 —> Using cache

 —> 24fb77a956ac

Step 7/12 : ADD requirements.txt /app/requirements.txt

 —> Using cache

 —> be3e85f65e23

Step 8/12 : RUN mkdir /app/python && chown nobody:nogroup /app/python

 —> Using cache

 —> f39f9e835f37

Step 9/12 : RUN sudo -u nobody -E PYTHONUSERBASE=$PYTHONUSERBASE  pip install —user —no-cache-dir -r /app/requirements.txt

 —> Running in 640f6ab4299b

Collecting pdfminer==20140328 (from -r /app/requirements.txt (line 1))

 Downloading https://files.pythonhosted.org/packages/57/4f/e1df0437858188d2d36466a7bb89aa024d252bd0b7e3ba90cbc567c6c0b8/pdfminer-20140328.tar.gz (4.1MB)

Collecting pendulum==2.0.2 (from -r /app/requirements.txt (line 2))

 Downloading https://files.pythonhosted.org/packages/4a/97/c288b8c98e49b9e1ec67b28ada3f39b7bd786be11ca119244e2aca3a5cf4/pendulum-2.0.2.tar.gz (75kB)

 Installing build dependencies: started

 Installing build dependencies: finished with status ‘error’

 Complete output from command /usr/local/bin/python -m pip install —ignore-installed —no-user —prefix /tmp/pip-build-env-OJLJb2 —no-warn-script-location —no-binary :none: —only-binary :none: -i https://pypi.org/simple — setuptools>=38.2.5 wheel:

 The directory ‘/root/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.

 The directory ‘/root/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.

 Collecting setuptools>=38.2.5

 Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: ‘/root/.cache/pip/wheels/a3/63/e3/a02e38a020e587e1cb7b263c1f26ebb218fd3d87f77584662b’

 Consider using the `—user` option or check the permissions.

 —————————————-

Command «/usr/local/bin/python -m pip install —ignore-installed —no-user —prefix /tmp/pip-build-env-OJLJb2 —no-warn-script-location —no-binary :none: —only-binary :none: -i https://pypi.org/simple — setuptools>=38.2.5 wheel» failed with error code 1 in None

{«message»: «The command ‘/bin/sh -c sudo -u nobody -E PYTHONUSERBASE=$PYTHONUSERBASE     pip install —user —no-cache-dir -r /app/requirements.txt’ returned a non-zero code: 1», «details»: {«message»: «The command ‘/bin/sh -c sudo -u nobody -E PYTHONUSERBASE=$PYTHONUSERBASE     pip install —user —no-cache-dir -r /app/requirements.txt’ returned a non-zero code: 1», «code»: 1}, «error»: «requirements_error»}

Requirements  file:

pdfminer==20140328
pendulum==2.0.2
parsel==1.4.0
openpyxl==2.5.4

project: {PROJ NUMBER} (HIDDEN)
requirements:
  file: requirements.txt

Jul-12-2022, 03:55 PM
(This post was last modified: Jul-12-2022, 03:55 PM by saisankalpj.)

This is my Dockerfile

FROM python:3.10

#create a working directory
WORKDIR /app

#gets our requirements.txt file into our image
COPY requirements.txt requirements.txt

# Install  packages specified in requirements.txt
RUN pip install -r requirements.txt

#adds our source code into the image
COPY . .

CMD [ "python", "manage.py" , "runserver" ,"0.0.0.8000"]

when i am running above code in windows powershell with the command

docker build -t "test" . 

,I am getting the error as in attachment. The error occurs while executing pip install requirement.txt file
how do i go about handling the error

Attached Files

Thumbnail(s)

   

Posts: 1,808

Threads: 2

Joined: Apr 2017

Reputation:
85

Looks like a network problem. Are you able to run pip successfully on the host?

Posts: 106

Threads: 44

Joined: Jun 2018

Reputation:
0

(Jul-13-2022, 06:19 AM)ndc85430 Wrote: Looks like a network problem. Are you able to run pip successfully on the host?

yes,i was network problem.Could fix it with help of proxy.

Posts: 106

Threads: 44

Joined: Jun 2018

Reputation:
0

Jul-13-2022, 09:49 AM
(This post was last modified: Jul-13-2022, 12:51 PM by saisankalpj.)

Right now i am able to run the docker build command and install all libraries.But the image is not created successfully and i got following error

#10 6.617   Downloading pysftp-0.2.9.tar.gz (25 kB)
#10 6.637   Preparing metadata (setup.py): started
#10 6.931   Preparing metadata (setup.py): finished with status 'done'
#10 7.114 Collecting pytz==2022.1
#10 7.158   Downloading pytz-2022.1-py2.py3-none-any.whl (503 kB)
#10 7.220      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 503.5/503.5 kB 8.7 MB/s eta 0:00:00
#10 7.301 Collecting six==1.16.0
#10 7.343   Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
#10 7.423 Collecting sqlparse==0.4.2



#10 7.468   Downloading sqlparse-0.4.2-py3-none-any.whl (42 kB)
#10 7.490      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.3/42.3 kB 2.1 MB/s eta 0:00:00
#10 7.616 Collecting backports.zoneinfo
#10 7.663   Downloading backports.zoneinfo-0.2.1.tar.gz (74 kB)
#10 7.678      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.1/74.1 kB 6.8 MB/s eta 0:00:00
#10 7.899   Installing build dependencies: started
#10 70.13   Installing build dependencies: still running...
#10 130.7   Installing build dependencies: still running...
#10 191.8   Installing build dependencies: still running...
#10 253.8   Installing build dependencies: still running...
#10 317.9   Installing build dependencies: still running...
#10 378.0   Installing build dependencies: still running...
#10 378.1   Installing build dependencies: finished with status 'error'
#10 378.1   error: subprocess-exited-with-error
#10 378.1
#10 378.1   × pip subprocess to install build dependencies did not run successfully.
#10 378.1   │ exit code: 1
#10 378.1   ╰─> [7 lines of output]
#10 378.1       WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f8fb26529a0>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
#10 378.1       WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f8fb2652c70>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
#10 378.1       WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f8fb2652d90>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
#10 378.1       WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f8fb2652f70>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
#10 378.1       WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f8fb25c3190>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/setuptools/
#10 378.1       ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
#10 378.1       ERROR: No matching distribution found for setuptools>=40.8.0
#10 378.1       [end of output]
#10 378.1
#10 378.1   note: This error originates from a subprocess, and is likely not a problem with pip.
#10 378.1 error: subprocess-exited-with-error
#10 378.1
#10 378.1 × pip subprocess to install build dependencies did not run successfully.
#10 378.1 │ exit code: 1
#10 378.1 ╰─> See above for output.
#10 378.1
#10 378.1 note: This error originates from a subprocess, and is likely not a problem with pip.
------
executor failed running [/bin/sh -c pip  install -r requirements.txt]: exit code: 1

My requirements.txt contains :

asgiref==3.5.2
bcrypt==3.2.2
cffi==1.15.0
crontab==0.23.0
cryptography==37.0.2
Django==4.0.5
django-cors-headers==3.13.0
django-cron==0.6.0
django-crontab==0.7.1
django-extensions==3.1.5
djangorestframework==3.13.1
paramiko==2.11.0
pycparser==2.21
PyNaCl==1.5.0
pysftp==0.2.9
pytz==2022.1
six==1.16.0
sqlparse==0.4.2
tzdata==2022.1
whitenoise==6.2.0

and My docker file looks like this

# The first instruction is what image we want to base our container on
# We Use an official Python runtime as a parent image
FROM python:alpine3.10

#create a working directory
WORKDIR /app

#gets our requirements.txt file into our image
COPY requirements.txt requirements.txt

# Install packages specified in requirements.txt
RUN pip install —upgrade pip
RUN pip install —upgrade setuptools
RUN pip install -r requirements.txt

#adds our source code into the image
COPY . .

CMD [ «python», «manage.py» , «runserver» ,»0.0.0.8000″]

I even tried to install setuptools by specifying in requirements.txt.But still the errror persists.

Posts: 1,808

Threads: 2

Joined: Apr 2017

Reputation:
85

It doesn’t look like a problem with setuptools itself — the connection is timing out. Do you have more network issues? Is there a firewall or something that isn’t letting you access PyPI over HTTPS?

Posts: 106

Threads: 44

Joined: Jun 2018

Reputation:
0

Jul-13-2022, 12:53 PM
(This post was last modified: Jul-13-2022, 12:53 PM by saisankalpj.)

(Jul-13-2022, 12:10 PM)ndc85430 Wrote: It doesn’t look like a problem with setuptools itself — the connection is timing out. Do you have more network issues? Is there a firewall or something that isn’t letting you access PyPI over HTTPS?

Yes,there is a firewall and i modified the statements as below in dockerfile .I am able to install all dependencies,but image not created because of above error

RUN pip --proxy http://10.1XX.XXX.XX:80XX install --upgrade pip
RUN pip --proxy http://10.1XX.XXX.XX:80XX install --upgrade setuptools>=40.8.0
RUN pip --proxy http://10.1XX.XXX.XX:80XX install -r requirements.txt

I tried 2 ways,
1)I added a setuptools even in requirements.txt
2)added pip —proxy http://10.1XX.XXX.XX:80XX install —upgrade setuptools>=40.8.0 in docker file
Both ways still give the same error as i posted before.But I could install all dependencies mentioned in requirements.txt.After installing all libraries,the before mentioned error pops up

Раньше я пытался установить блокнот jupyter, когда впервые увидел ошибку такого типа, но когда я попытался открыть блокнот jupyter из командной строки, несмотря на ошибку, он работал нормально. Итак, я проигнорировал это. Но теперь он даже не устанавливает панд. Я попытался установить unroll, но он показал тот же тип ошибки. Я также пытался установить с помощью pip3 вместо pip.

C:Userskumar>pip install unroll
Collecting unroll
Using cached unroll-0.1.0.tar.gz (7.3 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [32 lines of output]
  Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
  Traceback (most recent call last):
    File "C:msys64mingw64libpython3.9site-packagesez_setup.py", line 143, in use_setuptools
      raise ImportError
  ImportError

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:UserskumarAppDataLocalTemppip-install-6homm6dqunroll_6700898ee7fe4673888ca58fbca3ae45setup.py", line 2, in <module>
      ez_setup.use_setuptools()
    File "C:msys64mingw64libpython3.9site-packagesez_setup.py", line 145, in use_setuptools
      return _do_download(version, download_base, to_dir, download_delay)
    File "C:msys64mingw64libpython3.9site-packagesez_setup.py", line 123, in _do_download
      tarball = download_setuptools(version, download_base,
    File "C:msys64mingw64libpython3.9site-packagesez_setup.py", line 193, in download_setuptools
      src = urlopen(url)
    File "C:msys64mingw64libpython3.9urllibrequest.py", line 214, in urlopen
      return opener.open(url, data, timeout)
    File "C:msys64mingw64libpython3.9urllibrequest.py", line 523, in open
      response = meth(req, response)
    File "C:msys64mingw64libpython3.9urllibrequest.py", line 632, in http_response
      response = self.parent.error(
    File "C:msys64mingw64libpython3.9urllibrequest.py", line 561, in error
      return self._call_chain(*args)
    File "C:msys64mingw64libpython3.9urllibrequest.py", line 494, in _call_chain
      result = func(*args)
    File "C:msys64mingw64libpython3.9urllibrequest.py", line 641, in http_error_default
      raise HTTPError(req.full_url, code, msg, hdrs, fp)
  urllib.error.HTTPError: HTTP Error 403: SSL is required
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.






C:Userskumar>pip install pandas
Collecting pandas
Using cached pandas-1.4.3.tar.gz (4.9 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [71 lines of output]
  Collecting setuptools>=51.0.0
    Using cached setuptools-62.6.0-py3-none-any.whl (1.2 MB)
  Collecting wheel
    Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
  Collecting Cython<3,>=0.29.24
    Using cached Cython-0.29.30-py2.py3-none-any.whl (985 kB)
  Collecting oldest-supported-numpy>=0.10
    Using cached oldest_supported_numpy-2022.5.28-py3-none-any.whl (3.9 kB)
  Collecting numpy==1.19.3
    Using cached numpy-1.19.3.zip (7.3 MB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'error'
    error: subprocess-exited-with-error

    Getting requirements to build wheel did not run successfully.
    exit code: 1

    [40 lines of output]
    Traceback (most recent call last):
      File "C:UserskumarAppDataLocalTemptmp6grceh36_in_process.py", line 363, in <module>
        main()
      File "C:UserskumarAppDataLocalTemptmp6grceh36_in_process.py", line 345, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "C:UserskumarAppDataLocalTemptmp6grceh36_in_process.py", line 124, in get_requires_for_build_wheel
        backend = _build_backend()
      File "C:UserskumarAppDataLocalTemptmp6grceh36_in_process.py", line 89, in _build_backend
        obj = import_module(mod_path)
      File "C:msys64mingw64libpython3.9importlib__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
      File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
      File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
      File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
      File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
      File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 850, in exec_module
      File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
      File "C:UserskumarAppDataLocalTemppip-build-env-888p6dt5overlaylibpython3.9site-packagessetuptools__init__.py", line 253, in <module>
        monkey.patch_all()
      File "C:UserskumarAppDataLocalTemppip-build-env-888p6dt5overlaylibpython3.9site-packagessetuptoolsmonkey.py", line 101, in patch_all
        patch_for_msvc_specialized_compiler()
      File "C:UserskumarAppDataLocalTemppip-build-env-888p6dt5overlaylibpython3.9site-packagessetuptoolsmonkey.py", line 164, in patch_for_msvc_specialized_compiler
        patch_func(*msvc9('find_vcvarsall'))
      File "C:UserskumarAppDataLocalTemppip-build-env-888p6dt5overlaylibpython3.9site-packagessetuptoolsmonkey.py", line 151, in patch_params
        mod = import_module(mod_name)
      File "C:msys64mingw64libpython3.9importlib__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
      File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
      File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 850, in exec_module
      File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
      File "C:UserskumarAppDataLocalTemppip-build-env-888p6dt5overlaylibpython3.9site-packagessetuptools_distutilsmsvc9compiler.py", line 295, in <module>
        raise DistutilsPlatformError("VC %0.1f is not supported by this module" % VERSION)
    distutils.errors.DistutilsPlatformError: VC 6.0 is not supported by this module
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: subprocess-exited-with-error

  Getting requirements to build wheel did not run successfully.
  exit code: 1

  See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Я не знаю, почему pip внезапно перестал работать, я уже пытался обновить pip до последней версии, которая показывает, что требование уже выполнено. Я также попытался установить последнюю версию ez-setup, инструментов настройки и колеса.

C:Userskumar>pip list
Package    Version
---------- -------
ez-setup   0.9
pip        22.1.2
setuptools 62.6.0
wheel      0.37.1

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Installer ошибка при получении данных
  • Installer ui mode error windows 10
  • Installer integrity check has failed как исправить gta 5
  • Installer integrity check has failed windows 10 как исправить
  • Installer error this installer is a different language

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии