Bug 1456285 - python34 doesn't include ensurepip/_bundled/{pip,setuptools}...whl, breaking venv
Summary: python34 doesn't include ensurepip/_bundled/{pip,setuptools}...whl, breaking ...
Status: CLOSED DUPLICATE of bug 1263057
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python34
Version: epel7
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Petr Viktorin
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2017-05-28 18:28 UTC by Bowe Strickland
Modified: 2017-05-28 18:39 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-05-28 18:39:42 UTC

Attachments (Terms of Use)

Description Bowe Strickland 2017-05-28 18:28:57 UTC
Description of problem:

Because the python34-libs package doesn't include the _bundled pip and setuptools wheels, creation of virtual environment fails upon attempting to bootstrap pip.  Copying the bundled whls from the Fedora package solves the problem.

Version-Release number of selected component (if applicable):

[root@util-1 ~]# rpm -qf /usr/lib64/python3.4/ensurepip

How reproducible:

Steps to Reproduce:
1. Install python34 from epel-7
2. use "python34 -m venv /opt/vevn/demo" to attempt to create a virtual env

Actual results:
[root@util-1 ~]# python3.4 -m venv /opt/venv/demo
Error: Command '['/opt/venv/demo/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1

Expected results:
Successful creation of virtual env

Additional info:

Examination of the python34 package from Fedora finds the wheels needed to bootstrap the environment provided, and manually copying the wheels from a Fedora system solves the issue.

# examine on a Fedora25 system, and copy to a RHEL7
[bowe@localhost _bundled]$ cat /etc/redhat-release 
Fedora release 25 (Twenty Five)
[bowe@localhost _bundled]$ rpm -ql python34 | grep _bundled
[bowe@localhost ensurepip]$ rsync -aP _bundled util-1:/usr/lib64/python3.4/ensurepip

# now RHEL7 system works
[root@util-1 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.1 (Maipo)
[root@util-1 ~]# python3.4 -m venv /opt/venv/demo
[root@util-1 ~]#

Comment 1 Bowe Strickland 2017-05-28 18:39:42 UTC
While similar to Bug 1411685, this solution avoids python-virtualenv requirement.
This solution is similar to Bug 1263057.

*** This bug has been marked as a duplicate of bug 1263057 ***

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