Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get-pip.py --user fails on systems without a /usr/lib64 dir #5379

Closed
JensTimmerman opened this issue May 7, 2018 · 2 comments
Closed

get-pip.py --user fails on systems without a /usr/lib64 dir #5379

JensTimmerman opened this issue May 7, 2018 · 2 comments
Labels
auto-locked Outdated issues that have been locked by automation state: needs reproducer Need to reproduce issue type: support User Support

Comments

@JensTimmerman
Copy link

JensTimmerman commented May 7, 2018

  • Pip version: latest from get-pip.py (looks like pip-10.0.1-py2.py3-none-any.whl )
  • Python version: 2.7.9
  • Operating system: Linux 3.16.0-4-amd64 No instructions for how to install pip #1 SMP Debian 3.16.43-2+deb8u2 (2017-06-26) x86_64 GNU/Linux

Description:

When trying to replace easy_install with pip on a system without a /usr/lib64 direcctory I'm getting permission denied errors when running python get-pip.py --user

What I've run:

wget -O get-pip.py https://bootstrap.pypa.io/get-pip.py
--2018-05-07 15:45:50--  https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 151.101.36.175, 2a04:4e42:9::175
Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|151.101.36.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1642329 (1.6M) [text/x-python]
Saving to: ‘get-pip.py’

     0K .......... .......... .......... .......... ..........  3% 1.99M 1s
    50K .......... .......... .......... .......... ..........  6% 4.12M 1s
   100K .......... .......... .......... .......... ..........  9% 5.12M 0s
   150K .......... .......... .......... .......... .......... 12% 5.85M 0s
   200K .......... .......... .......... .......... .......... 15% 5.49M 0s
   250K .......... .......... .......... .......... .......... 18% 6.45M 0s
   300K .......... .......... .......... .......... .......... 21% 5.61M 0s
   350K .......... .......... .......... .......... .......... 24% 4.30M 0s
   400K .......... .......... .......... .......... .......... 28% 7.10M 0s
   450K .......... .......... .......... .......... .......... 31% 7.67M 0s
   500K .......... .......... .......... .......... .......... 34% 9.27M 0s
   550K .......... .......... .......... .......... .......... 37% 8.23M 0s
   600K .......... .......... .......... .......... .......... 40% 8.52M 0s
   650K .......... .......... .......... .......... .......... 43% 8.52M 0s
   700K .......... .......... .......... .......... .......... 46% 9.64M 0s
   750K .......... .......... .......... .......... .......... 49% 7.23M 0s
   800K .......... .......... .......... .......... .......... 52% 10.1M 0s
   850K .......... .......... .......... .......... .......... 56% 8.80M 0s
   900K .......... .......... .......... .......... .......... 59% 13.6M 0s
   950K .......... .......... .......... .......... .......... 62% 9.09M 0s
  1000K .......... .......... .......... .......... .......... 65% 8.95M 0s
  1050K .......... .......... .......... .......... .......... 68% 22.0M 0s
  1100K .......... .......... .......... .......... .......... 71% 8.29M 0s
  1150K .......... .......... .......... .......... .......... 74% 8.72M 0s
  1200K .......... .......... .......... .......... .......... 77% 15.7M 0s
  1250K .......... .......... .......... .......... .......... 81% 11.1M 0s
  1300K .......... .......... .......... .......... .......... 84% 16.5M 0s
  1350K .......... .......... .......... .......... .......... 87% 10.3M 0s
  1400K .......... .......... .......... .......... .......... 90% 15.8M 0s
  1450K .......... .......... .......... .......... .......... 93% 11.9M 0s
  1500K .......... .......... .......... .......... .......... 96% 19.3M 0s
  1550K .......... .......... .......... .......... .......... 99% 10.5M 0s
  1600K ...                                                   100% 7318G=0.2s

2018-05-07 15:45:50 (7.58 MB/s) - ‘get-pip.py’ saved [1642329/1642329]

python get-pip.py --user
Collecting pip
  Using cached https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 10.0.1
    Uninstalling pip-10.0.1:
      Successfully uninstalled pip-10.0.1
  Rolling back uninstall of pip
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/lib64'
Check the permissions.

This happens on a system without a /usr/lib64 directory

ls /usr/lib64
ls: cannot access /usr/lib64: No such file or directory
Python 2.7.9 (default, Jun 29 2016, 13:08:31)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/var/lib/jenkins/.local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages']
@JensTimmerman JensTimmerman changed the title get-pip.py fails on systems without a /usr/lib64 dir get-pip.py --user fails on systems without a /usr/lib64 dir May 7, 2018
@pradyunsg pradyunsg added the S: needs triage Issues/PRs that need to be triaged label May 10, 2018
@chrahunt chrahunt added S: awaiting response Waiting for a response/more information state: needs reproducer Need to reproduce issue type: support User Support labels Jul 26, 2019
@triage-new-issues triage-new-issues bot removed the S: needs triage Issues/PRs that need to be triaged label Jul 26, 2019
@chrahunt
Copy link
Member

I'm not able to reproduce with the following:

Non-repro
#!/bin/sh
exec docker run --rm -it debian:8 bash -xc 'apt update && apt install -y wget python && wget -O get-pip.py https://bootstrap.pypa.io/get-pip.py && python get-pip.py --user && ls /usr/lib64'
Output
+ apt update
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://deb.debian.org jessie InRelease
Get:2 http://deb.debian.org jessie Release.gpg [1652 B]
Get:3 http://deb.debian.org jessie Release [77.3 kB]
Get:4 http://security.debian.org jessie/updates/main amd64 Packages [871 kB]
Get:5 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Fetched 10.1 MB in 6s (1495 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
+ apt install -y wget python
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  ca-certificates file libexpat1 libicu52 libidn11 libmagic1 libpsl0 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libsqlite3-0 libssl1.0.0 mime-support openssl python-minimal python2.7
  python2.7-minimal
Suggested packages:
  python-doc python-tk python2.7-doc binutils binfmt-support
The following NEW packages will be installed:
  ca-certificates file libexpat1 libicu52 libidn11 libmagic1 libpsl0 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libsqlite3-0 libssl1.0.0 mime-support openssl python python-minimal python2.7
  python2.7-minimal wget
0 upgraded, 19 newly installed, 0 to remove and 1 not upgraded.
Need to get 14.3 MB of archives.
After this operation, 57.1 MB of additional disk space will be used.
Get:1 http://security.debian.org/debian-security/ jessie/updates/main libssl1.0.0 amd64 1.0.1t-1+deb8u11 [1047 kB]
Get:2 http://security.debian.org/debian-security/ jessie/updates/main libidn11 amd64 1.29-1+deb8u3 [137 kB]
Get:3 http://deb.debian.org/debian/ jessie/main python-minimal amd64 2.7.9-1 [40.3 kB]
Get:4 http://security.debian.org/debian-security/ jessie/updates/main libmagic1 amd64 1:5.22+15-2+deb8u5 [250 kB]
Get:5 http://deb.debian.org/debian/ jessie/main mime-support all 3.58 [36.0 kB]
Get:6 http://security.debian.org/debian-security/ jessie/updates/main libsqlite3-0 amd64 3.8.7.1-1+deb8u4 [439 kB]
Get:7 http://deb.debian.org/debian/ jessie/main libpython-stdlib amd64 2.7.9-1 [19.5 kB]
Get:8 http://deb.debian.org/debian/ jessie/main python amd64 2.7.9-1 [151 kB]
Get:9 http://deb.debian.org/debian/ jessie/main libicu52 amd64 52.1-8+deb8u7 [6807 kB]
Get:10 http://security.debian.org/debian-security/ jessie/updates/main libpython2.7-minimal amd64 2.7.9-2+deb8u3 [379 kB]
Get:11 http://security.debian.org/debian-security/ jessie/updates/main python2.7-minimal amd64 2.7.9-2+deb8u3 [1399 kB]
Get:12 http://security.debian.org/debian-security/ jessie/updates/main libexpat1 amd64 2.1.0-6+deb8u5 [80.3 kB]
Get:13 http://security.debian.org/debian-security/ jessie/updates/main libpython2.7-stdlib amd64 2.7.9-2+deb8u3 [1849 kB]
Get:14 http://deb.debian.org/debian/ jessie/main libpsl0 amd64 0.5.1-1 [41.6 kB]
Get:15 http://security.debian.org/debian-security/ jessie/updates/main python2.7 amd64 2.7.9-2+deb8u3 [252 kB]
Get:16 http://security.debian.org/debian-security/ jessie/updates/main wget amd64 1.16-1+deb8u6 [496 kB]
Get:17 http://security.debian.org/debian-security/ jessie/updates/main file amd64 1:5.22+15-2+deb8u5 [60.6 kB]
Get:18 http://security.debian.org/debian-security/ jessie/updates/main openssl amd64 1.0.1t-1+deb8u11 [665 kB]
Get:19 http://security.debian.org/debian-security/ jessie/updates/main ca-certificates all 20141019+deb8u4 [185 kB]
Fetched 14.3 MB in 2s (6953 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libssl1.0.0:amd64.
(Reading database ... 7626 files and directories currently installed.)
Preparing to unpack .../libssl1.0.0_1.0.1t-1+deb8u11_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.1t-1+deb8u11) ...
Selecting previously unselected package libidn11:amd64.
Preparing to unpack .../libidn11_1.29-1+deb8u3_amd64.deb ...
Unpacking libidn11:amd64 (1.29-1+deb8u3) ...
Selecting previously unselected package libmagic1:amd64.
Preparing to unpack .../libmagic1_1%3a5.22+15-2+deb8u5_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.22+15-2+deb8u5) ...
Selecting previously unselected package libsqlite3-0:amd64.
Preparing to unpack .../libsqlite3-0_3.8.7.1-1+deb8u4_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.8.7.1-1+deb8u4) ...
Selecting previously unselected package libpython2.7-minimal:amd64.
Preparing to unpack .../libpython2.7-minimal_2.7.9-2+deb8u3_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.9-2+deb8u3) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../python2.7-minimal_2.7.9-2+deb8u3_amd64.deb ...
Unpacking python2.7-minimal (2.7.9-2+deb8u3) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../python-minimal_2.7.9-1_amd64.deb ...
Unpacking python-minimal (2.7.9-1) ...
Selecting previously unselected package mime-support.
Preparing to unpack .../mime-support_3.58_all.deb ...
Unpacking mime-support (3.58) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../libexpat1_2.1.0-6+deb8u5_amd64.deb ...
Unpacking libexpat1:amd64 (2.1.0-6+deb8u5) ...
Selecting previously unselected package libpython2.7-stdlib:amd64.
Preparing to unpack .../libpython2.7-stdlib_2.7.9-2+deb8u3_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.9-2+deb8u3) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../python2.7_2.7.9-2+deb8u3_amd64.deb ...
Unpacking python2.7 (2.7.9-2+deb8u3) ...
Selecting previously unselected package libpython-stdlib:amd64.
Preparing to unpack .../libpython-stdlib_2.7.9-1_amd64.deb ...
Unpacking libpython-stdlib:amd64 (2.7.9-1) ...
Setting up libpython2.7-minimal:amd64 (2.7.9-2+deb8u3) ...
Setting up python2.7-minimal (2.7.9-2+deb8u3) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python-minimal (2.7.9-1) ...
Selecting previously unselected package python.
(Reading database ... 8464 files and directories currently installed.)
Preparing to unpack .../python_2.7.9-1_amd64.deb ...
Unpacking python (2.7.9-1) ...
Selecting previously unselected package libicu52:amd64.
Preparing to unpack .../libicu52_52.1-8+deb8u7_amd64.deb ...
Unpacking libicu52:amd64 (52.1-8+deb8u7) ...
Selecting previously unselected package libpsl0:amd64.
Preparing to unpack .../libpsl0_0.5.1-1_amd64.deb ...
Unpacking libpsl0:amd64 (0.5.1-1) ...
Selecting previously unselected package wget.
Preparing to unpack .../wget_1.16-1+deb8u6_amd64.deb ...
Unpacking wget (1.16-1+deb8u6) ...
Selecting previously unselected package file.
Preparing to unpack .../file_1%3a5.22+15-2+deb8u5_amd64.deb ...
Unpacking file (1:5.22+15-2+deb8u5) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.1t-1+deb8u11_amd64.deb ...
Unpacking openssl (1.0.1t-1+deb8u11) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20141019+deb8u4_all.deb ...
Unpacking ca-certificates (20141019+deb8u4) ...
Setting up libssl1.0.0:amd64 (1.0.1t-1+deb8u11) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Setting up libidn11:amd64 (1.29-1+deb8u3) ...
Setting up libmagic1:amd64 (1:5.22+15-2+deb8u5) ...
Setting up libsqlite3-0:amd64 (3.8.7.1-1+deb8u4) ...
Setting up mime-support (3.58) ...
Setting up libexpat1:amd64 (2.1.0-6+deb8u5) ...
Setting up libpython2.7-stdlib:amd64 (2.7.9-2+deb8u3) ...
Setting up python2.7 (2.7.9-2+deb8u3) ...
Setting up libpython-stdlib:amd64 (2.7.9-1) ...
Setting up python (2.7.9-1) ...
Setting up libicu52:amd64 (52.1-8+deb8u7) ...
Setting up libpsl0:amd64 (0.5.1-1) ...
Setting up wget (1.16-1+deb8u6) ...
Setting up file (1:5.22+15-2+deb8u5) ...
Setting up openssl (1.0.1t-1+deb8u11) ...
Setting up ca-certificates (20141019+deb8u4) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Updating certificates in /etc/ssl/certs... 152 added, 0 removed; done.
Processing triggers for libc-bin (2.19-18+deb8u10) ...
Processing triggers for ca-certificates (20141019+deb8u4) ...
Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
+ wget -O get-pip.py https://bootstrap.pypa.io/get-pip.py
converted 'https://bootstrap.pypa.io/get-pip.py' (ANSI_X3.4-1968) -> 'https://bootstrap.pypa.io/get-pip.py' (UTF-8)
--2019-07-26 01:09:48--  https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 151.101.0.175, 151.101.192.175, 151.101.64.175, ...
Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|151.101.0.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1775087 (1.7M) [text/x-python]
Saving to: 'get-pip.py'

get-pip.py                                           100%[========================================================================================================================>]   1.69M  10.2MB/s   in 0.2s

2019-07-26 01:09:48 (10.2 MB/s) - 'get-pip.py' saved [1775087/1775087]

+ python get-pip.py --user
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 pip
  Downloading https://files.pythonhosted.org/packages/62/ca/94d32a6516ed197a491d17d46595ce58a83cbb2fca280414e57cd86b84dc/pip-19.2.1-py2.py3-none-any.whl (1.4MB)
     |################################| 1.4MB 9.1MB/s
Collecting setuptools
  Downloading https://files.pythonhosted.org/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.1-py2.py3-none-any.whl (575kB)
     |################################| 583kB 49.1MB/s
Collecting wheel
  Downloading https://files.pythonhosted.org/packages/bb/10/44230dd6bf3563b8f227dbf344c908d412ad2ff48066476672f3a72e174e/wheel-0.33.4-py2.py3-none-any.whl
Installing collected packages: pip, setuptools, wheel
  WARNING: The script wheel is installed in '/root/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-19.2.1 setuptools-41.0.1 wheel-0.33.4
+ ls /usr/lib64
ls: cannot access /usr/lib64: No such file or directory

Can you please confirm if this is still an issue for you?

@JensTimmerman
Copy link
Author

This is no longer an issue for me, cannot reproduce anymore on same system.

@no-response no-response bot removed the S: awaiting response Waiting for a response/more information label Aug 6, 2019
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Sep 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation state: needs reproducer Need to reproduce issue type: support User Support
Projects
None yet
Development

No branches or pull requests

3 participants