Bug 16048 - Broken pyvenv command
Summary: Broken pyvenv command
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: advisory MGA5-64-OK
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2015-05-28 09:33 CEST by Johnny Accot
Modified: 2015-07-28 23:02 CEST (History)
2 users (show)

See Also:
Source RPM: python3-3.4.3-1.mga5.src.rpm
CVE:
Status comment:


Attachments

Description Johnny Accot 2015-05-28 09:33:47 CEST
Python3 has a builtin module for creating virtual environments called "venv" [1].  This module is used by the "pyvenv" command to create virtual environments from the command line, similar to what is provided by the python-virtualenv package for python2.

The "pyvenv" command seems broken in current cauldron.  Running the most basic command fails as follows:

$ pyvenv env       
Error: Command '['/tmp/env/bin/python3.4', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1

A similar bug existed/exists in Ubuntu [2] and the problem seems to be related to the "ensurepip" module.  Installing a virtual environment without pip works:

$ pyvenv --without-pip env


[1] https://docs.python.org/3/library/venv.html
[2] https://bugs.launchpad.net/ubuntu/+source/python3.4/+bug/1290847
David Walser 2015-05-29 17:06:19 CEST

Assignee: bugsquad => makowski.mageia

Comment 1 Philippe Makowski 2015-05-29 21:48:16 CEST
it's a missing requires

I have to to add to python3.spec :
%if 0%{with_rewheel}
Requires: python3-setuptools
Requires: python3-pip
%endif

as a temporary fix, you just need to install python3-pip (and may be also python3-setuptools to ease your work.
urpmi python3-pip python3-setuptools

As we are in freeze time it will be in first updates after Mageia5 release I guess. Sorry.
Comment 2 Rémi Verschelde 2015-05-29 21:55:51 CEST
Adding MGA5TOO for now so that we remember that an update is needed once it's fixed in the next cauldron.

Whiteboard: (none) => MGA5TOO

Comment 3 Philippe Makowski 2015-07-01 21:03:22 CEST
Suggested advisory:
========================

Updated python3 packages fix missing dependencies for the pyvenv command.
 

References:
https://bugs.mageia.org/show_bug.cgi?id=16048
========================

Updated packages in core/updates_testing:
========================
python3-3.4.3-1.1.mga5.x86_64
python3-3.4.3-1.1.mga5.i586
lib64python3.4-3.4.3-1.1.mga5.x86_64
libpython3.4-3.4.3-1.1.mga5.i586
tkinter3-3.4.3-1.1.mga5.x86_64
tkinter3-3.4.3-1.1.mga5.i586
tkinter3-apps-3.4.3-1.1.mga5.i586
tkinter3-apps-3.4.3-1.1.mga5.x86_64
python3-docs-3.4.3-1.1.mga5.noarch
python3-debuginfo-3.4.3-1.1.mga5.i586
lib64python3-devel-3.4.3-1.1.mga5.x86_64
libpython3-devel-3.4.3-1.1.mga5.i586
python3-debuginfo-3.4.3-1.1.mga5.x86_64

Source RPMs: 
python3-3.4.3-1.1.mga5.src

Assignee: makowski.mageia => qa-bugs

David Walser 2015-07-01 22:51:10 CEST

Version: Cauldron => 5
Whiteboard: MGA5TOO => (none)

Comment 4 Dave Hodgins 2015-07-05 02:58:27 CEST
Advisory committed to svn.

CC: (none) => davidwhodgins
Whiteboard: (none) => advisory

Comment 5 Samuel Verschelde 2015-07-27 14:06:42 CEST
Works in Mageia 5 64.

Whiteboard: advisory => advisory MGA5-64-OK

Dave Hodgins 2015-07-28 17:31:05 CEST

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 6 Mageia Robot 2015-07-28 23:02:55 CEST
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2015-0071.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


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