https://bugzilla.novell.com/show_bug.cgi?id=885662 https://bugzilla.novell.com/show_bug.cgi?id=885662#c0 Summary: python-3.4 ensurepip is broken Classification: openSUSE Product: openSUSE Factory Version: 13.2 Milestone 0 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: jmatejek@suse.com ReportedBy: speilicke@suse.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Seems like the recently added ensurepip patch is broken, pip isn't installed into the venv anymore. saschpe@bort:~/Projects/scrello pyvenv .venv34
/usr/lib64/python3.4/venv/__init__.py(251)_setup_pip() -> subprocess.check_output(cmd, stderr=subprocess.STDOUT) (Pdb) l 246 # environment vars, the current directory and anything else 247 # intended for the global Python environment 248 cmd = [context.env_exe, '-Im', 'ensurepip', '--upgrade', 249 '--default-pip'] 250 import pdb; pdb.set_trace() 251 -> subprocess.check_output(cmd, stderr=subprocess.STDOUT) 252 253 def setup_scripts(self, context): 254 """ 255 Set up scripts into the created environment from a directory. 256 (Pdb) subprocess.check_output(cmd) /home/saschpe/Projects/scrello/.venv34/bin/python3.4: Error while finding spec for 'ensurepip.__main__' (
: Module 'pip' is missing. Use:
sudo zypper install python3-pip
to install it.
See README.SUSE for more information.); 'ensurepip' is a package and cannot be
directly executed
*** subprocess.CalledProcessError: Command
'['/home/saschpe/Projects/scrello/.venv34/bin/python3.4', '-Im', 'ensurepip',
'--upgrade', '--default-pip']' returned non-zero exit status 1
(Pdb) q
Error:
saschpe@bort:~/Projects/scrello zypper if python3-pip
Loading repository data...
Reading installed packages...
...
Name: python3-pip
Version: 1.5.6-0
Installed: Yes
...
saschpe@bort:~/Projects/scrello find .venv34
.venv34
.venv34/lib
.venv34/lib/python3.4
.venv34/lib/python3.4/site-packages
.venv34/include
.venv34/pyvenv.cfg
.venv34/bin
.venv34/bin/python
.venv34/bin/python3.4
.venv34/bin/python3
.venv34/lib64
saschpe@bort:~/Projects/scrello .venv34/bin/python3.4 -Im ensurepip --upgrade
--default-pip git:master✗
/home/saschpe/Projects/scrello/.venv34/bin/python3.4: Error while finding spec
for 'ensurepip.__main__' (