install failure on python 3.5

Bug #1614299 reported by Reece
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
python-apt (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Related to expired issue: https://answers.launchpad.net/ubuntu/+source/python-apt/+question/285522

snafu$ cd /tmp

snafu$ pyvenv apt

snafu$ source apt/bin/activate

(apt) snafu$ lsb_release -a; uname -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
Linux snafu 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

(apt) snafu$ pip install python-apt
Collecting python-apt
  Using cached python-apt-0.7.8.tar.bz2
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-l1pt_xe2/python-apt/setup.py", line 6, in <module>
        from DistUtilsExtra.command import *
    ImportError: No module named 'DistUtilsExtra'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-l1pt_xe2/python-apt/
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-apt (Ubuntu):
status: New → Confirmed
Revision history for this message
Manfred Hampl (m-hampl) wrote :

As already written in https://answers.launchpad.net/ubuntu/+source/python-apt/+question/285522

python-apt version 0.7.8 is a very old and obsolete version (was for Ubuntu 9.04).
For Ubuntu 14.04 the designated version is 0.9.3.5ubuntu2

The message
"from DistUtilsExtra.command import *
     ImportError: No module named 'DistUtilsExtra'"
might indicate that the package python-distutils-extra is missing.

Revision history for this message
Peter G. Marczis (marczis2) wrote :

I have the same issue, while I do understand your point, it can be installed with apt, but many python developer uses virtual environment, in which we use pip to install packages, such as is mandatory for cross distro development.

For example my case is so that I run an other distro on my desktop, other distro on the build servers, and a 3rd one on the target device, where I need the package.

I think the real question if Ubuntu is willing to support the pip version of the package or not? Is it put into pip by canonical on the first place ?

Thanks a lot in advance!

Revision history for this message
Peter G. Marczis (marczis2) wrote :

I added Michael Vogt, as he is the author based on:

https://pypi.python.org/pypi/python-apt
and
https://launchpad.net/python-apt/

Michael, first of all thanks for your great work!
Hope you can help us out here. Do you maintain the pip version of the package? Or is that "abandoned", or just left on older version to be compatible with Debian? Or so, what should we do :)

I'm happy to maintain the pip version, if you don't have time for this anymore.

Thanks a lot again for all the help!

Revision history for this message
zw.paper (zw-paper) wrote :

Hi Peter,

I meet this too, do you have any solution or update for this?

I meet this when I use the virtualenv in pyenv to package my app.
It's ok if I use the system python3, but distutils package was missed.

I can find a way to keep both python-apt and distutils

Thanks for the help.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.