Bug 22870 - python pip is broken
Summary: python pip is broken
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Python Stack Maintainers
QA Contact:
URL: https://github.com/iuscommunity-pkg/p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-04 21:08 CEST by Morgan Leijström
Modified: 2018-04-27 11:10 CEST (History)
3 users (show)

See Also:
Source RPM: python-pip-8.0.3-1.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Morgan Leijström 2018-04-04 21:08:35 CEST
__Version-Release number of selected component (if applicable):
python-pip-8.0.3-1.mga6.src.rpm

__Steps to Reproduce:
# pip install bcrypt
Collecting bcrypt
Using cached bcrypt-3.1.4.tar.gz
Collecting cffi>=1.1 (from bcrypt)
Using cached cffi-1.11.5.tar.gz
Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /usr/lib/python3.5/site-packages (from bcrypt)
Collecting pycparser (from cffi>=1.1->bcrypt)
Using cached pycparser-2.18.tar.gz
Installing collected packages: pycparser, cffi, bcrypt
Exception:
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/usr/lib/python3.5/site-packages/pip/commands/install.py", line 326, in run
strip_file_prefix=options.strip_file_prefix,
File "/usr/lib/python3.5/site-packages/pip/req/req_set.py", line 731, in install
**kwargs
TypeError: install() got an unexpected keyword argument 'strip_file_prefix'
You are using pip version 8.0.3, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

# pip install --upgrade pip
Collecting pip
Downloading pip-9.0.3-py2.py3-none-any.whl (1.4MB)
100% |████████████████████████████████| 1.4MB 343kB/s
Installing collected packages: pip
Found existing installation: pip 8.0.3
Uninstalling pip-8.0.3:
Successfully uninstalled pip-8.0.3
Rolling back uninstall of pip
Exception:
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/usr/lib/python3.5/site-packages/pip/commands/install.py", line 326, in run
strip_file_prefix=options.strip_file_prefix,
File "/usr/lib/python3.5/site-packages/pip/req/req_set.py", line 731, in install
**kwargs
TypeError: install() got an unexpected keyword argument 'strip_file_prefix'
You are using pip version 8.0.3, however version 9.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Comment 1 Marja Van Waes 2018-04-06 21:20:35 CEST
Assigning to the python stack maintainers, CC'ing the registered maintainer.

CC: (none) => mageia, marja11
Assignee: bugsquad => python

Comment 2 Philippe Makowski 2018-04-07 18:07:09 CEST
You should avoid using pip without --user

python-pip-8.0.2-6.mga6.noarch.rpm is ok and is the one in the repositories
where did you get python-pip-8.0.3-1.mga6.src.rpm ?

CC: (none) => makowski.mageia

Comment 3 Morgan Leijström 2018-04-08 03:42:03 CEST
same result from using 
$ pip install --user bcrypt

I probably got it from testing repo as i try out new qt, plasma etc.
Comment 4 Philippe Makowski 2018-04-09 11:14:08 CEST
please use python-pip-8.0.2-6.mga6.noarch
urpmi --downgrade python-pip-8.0.2-6.mga6.noarch

Ever confirmed: 1 => 0
Status: NEW => UNCONFIRMED

Comment 5 Morgan Leijström 2018-04-09 11:46:17 CEST
Yes after that downgrading it worked to
$ pip install --user bcrypt


It could also update itself (as user):
$ pip install --user --upgrade pip
Collecting pip
  Using cached pip-9.0.3-py2.py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-9.0.3
Comment 6 Philippe Makowski 2018-04-27 11:10:41 CEST
python-pip-8.0.2-6.mga6.noarch.rpm is ok and is the one in the repositories

Resolution: (none) => INVALID
Status: UNCONFIRMED => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.