Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

pip install:

  • 07-10-2019 1:41pm
    #1
    Registered Users, Registered Users 2 Posts: 5,659 ✭✭✭


    Setting up a server at present and assuming some sort of firewall issue when i run the command pip install for literally anything.

    Getting this error.
    WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPConnection object at 0x7f11cf48c950>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /python/guestfs-1.36.4.tar.gz
    

    No such issue with yum. Although there's a yum.conf file in /etc/hosts that seems to sort it. I'm assuming its the proxy details below in the file

    [code][main]
    cachedir=/var/cache/yum/$basearch/$releasever
    keepcache=0
    debuglevel=2
    logfile=/var/log/yum.log
    exactarch=1
    obsoletes=1
    gpgcheck=1
    plugins=1
    installonly_limit=3
    proxy = http://148.87.19.20:80
    retries = 3
    timeout = 60.0

    How to get the pip command to behave similarly?


Comments

  • Registered Users, Registered Users 2 Posts: 7,157 ✭✭✭srsly78


    Tell pip to use the same proxy.

    Or just connect laptop to public wifi.


  • Registered Users, Registered Users 2 Posts: 6,286 ✭✭✭Talisman


    Try:
    pip install --proxy http://148.87.19.20:80
    


  • Registered Users, Registered Users 2 Posts: 5,659 ✭✭✭veryangryman


    Thanks seems to go through it now but i get a further issue
    [root@dub-mgrfarm113 ~]# pip install lagos
    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. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
    Collecting lagos
      WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fac5d9289d0>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/lagos/
      WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fac5d928050>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/lagos/
      WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fac5d928210>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/lagos/
      WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fac5d928c50>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/lagos/
      WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fac5d928610>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/lagos/
      ERROR: Could not find a version that satisfies the requirement lagos (from versions: none)
    ERROR: No matching distribution found for lagos
    

    Can you advise troubleshooting steps on this? Not so hot on pip :(


  • Registered Users, Registered Users 2 Posts: 10,902 ✭✭✭✭28064212


    lagos doesn't exist on the Python Package Index, do you mean lago?

    Boardsie Enhancement Suite - a browser extension to make using Boards on desktop a better experience (includes full-width display, keyboard shortcuts, dark mode, and more). Now available through your browser's extension store.

    Firefox: https://addons.mozilla.org/addon/boardsie-enhancement-suite/

    Chrome/Edge/Opera: https://chromewebstore.google.com/detail/boardsie-enhancement-suit/bbgnmnfagihoohjkofdnofcfmkpdmmce



  • Registered Users, Registered Users 2 Posts: 1,110 ✭✭✭Skrynesaver


    try "pip search lagos" and see if the package you require is listed


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 5,659 ✭✭✭veryangryman


    SOLVED! Needed to install dulwich then we were gold


    28064212 wrote: »
    lagos doesn't exist on the Python Package Index, do you mean lago?

    Apologies yes lago.

    So the actual error is thus

    [root@dub-svrfarm27 ~]# pip install lago --proxy=$(grep proxy /etc/yum.conf | awk -F\/ '{print $3}')
    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. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
    Collecting lago
    Using cached https://files.pythonhosted.org/packages/1e/fb/875f8bb589bfe5fd0b87fbb33e445a8925b47b5be8a4fc536b7e6bbcd049/lago-0.46.0.tar.gz
    ERROR: Command errored out with exit status 1:
    command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-iMCwYa/lago/setup.py'"'"'; __file__='"'"'/tmp/pip-install-iMCwYa/lago/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
    cwd: /tmp/pip-install-iMCwYa/lago/
    Complete output (25 lines):
    Download error on https://pypi.python.org/simple/dulwich/: [Errno 101] Network is unreachable -- Some packages may not be found!
    Couldn't find index page for 'dulwich' (maybe misspelled?)
    Download error on https://pypi.python.org/simple/: [Errno 101] Network is unreachable -- Some packages may not be found!
    No local packages or download links found for dulwich
    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-iMCwYa/lago/setup.py", line 62, in <module>
    pbr=True,
    File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
    File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 265, in __init__
    self.fetch_build_eggs(attrs.pop('setup_requires'))
    File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 289, in fetch_build_eggs
    parse_requirements(requires), installer=self.fetch_build_egg
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 618, in resolve
    dist = best[req.key] = env.best_match(req, self, installer)
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 862, in best_match
    return self.obtain(req, installer) # try and download/install
    File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 874, in obtain
    return installer(requirement)
    File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 339, in fetch_build_egg
    return cmd.easy_install(req)
    File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 617, in easy_install
    raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('dulwich')
    ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


Advertisement