eliben / pycparser

:snake: Complete C99 parser in pure Python
Other
3.24k stars 608 forks source link

Can't be installed offline from pip? #458

Closed dargow closed 2 years ago

dargow commented 2 years ago

I am trying install ansible offline from pip. I have downloaded all required dependencies. python3.6 -m pip download ansible setuptools wheel setuptools-rust -d "./ansible-deps" Then when I try to install I get an error:

[support@localhost ansible]$ python3 -m pip install --find-links=./ansible-deps --no-index ansible
Looking in links: ./ansible-deps
Collecting ansible
Collecting ansible-core~=2.11.7 (from ansible)
Collecting jinja2 (from ansible-core~=2.11.7->ansible)
Collecting PyYAML (from ansible-core~=2.11.7->ansible)
Collecting cryptography (from ansible-core~=2.11.7->ansible)
  Installing build dependencies ... /sd
error
  Complete output from command /usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-to6pkei0 file:///home/support/ansible/ansible-deps/setuptools-59.6.0-py3-none-any.whl file:///home/support/ansible/ansible-deps/wheel-0.37.1-py2.py3-none-any.whl file:///home/support/ansible/ansible-deps/cffi-1.15.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl file:///home/support/ansible/ansible-deps/setuptools_rust-1.1.2-py3-none-any.whl:
  Processing ./ansible-deps/setuptools-59.6.0-py3-none-any.whl
  Processing ./ansible-deps/wheel-0.37.1-py2.py3-none-any.whl
  Processing ./ansible-deps/cffi-1.15.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
  Processing ./ansible-deps/setuptools_rust-1.1.2-py3-none-any.whl
  Collecting pycparser (from cffi==1.15.0)
    Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7226f39ac8>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pycparser/
    Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7226f39da0>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pycparser/
    Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7226f39e80>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pycparser/
    Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7226f39b70>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pycparser/
    Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7226f39588>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pycparser/
    Could not find a version that satisfies the requirement pycparser (from cffi==1.15.0) (from versions: )
  No matching distribution found for pycparser (from cffi==1.15.0)

  ----------------------------------------
Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-to6pkei0 file:///home/support/ansible/ansible-deps/setuptools-59.6.0-py3-none-any.whl file:///home/support/ansible/ansible-deps/wheel-0.37.1-py2.py3-none-any.whl file:///home/support/ansible/ansible-deps/cffi-1.15.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl file:///home/support/ansible/ansible-deps/setuptools_rust-1.1.2-py3-none-any.whl" failed with error code 1 in None

Why does this library need Internet access? And how to install offline?

eliben commented 2 years ago

This sounds like an issue to raise with ansible.