[Bug 1157900] Re: add-apt-repository crashed with ImportError in get_ppa_info_from_lp(): No module named 'pycurl'

LeoRochael leorochael at gmail.com
Tue Apr 16 20:29:45 UTC 2013


The problem manifests itself in Python 2, not Python 3:

In Python3 we get:

vagrant at quantal64:/vagrant$ python3
Python 3.2.3 (default, Oct 19 2012, 19:53:16) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import softwareproperties.ppa
>>> 

In Python 2 we get:

vagrant at quantal64:/vagrant$ python
Python 2.7.3 (default, Sep 26 2012, 21:51:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import softwareproperties.ppa
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 39, in <module>
    import pycurl
ImportError: No module named pycurl
>>> 

After installing python-pycurl, the system works again:

vagrant at quantal64:/vagrant$ python
Python 2.7.3 (default, Sep 26 2012, 21:51:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import softwareproperties.ppa
>>> 

So yes, python-software-properties is missing a python-pycurl dependency
except, perhaps, on ubuntu releases that make python3 the default
python, in which case it's missing a python-pycurl "Recommends".

** Changed in: software-properties (Ubuntu)
       Status: Incomplete => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/1157900

Title:
  add-apt-repository crashed with ImportError in get_ppa_info_from_lp():
  No module named 'pycurl'

Status in “software-properties” package in Ubuntu:
  Confirmed

Bug description:
  add-apt-repository crashed with ImportError in get_ppa_info_from_lp(): No module named 'pycurl'
  i hope im helping, dont know anything about bugs myself

  ProblemType: Crash
  DistroRelease: Ubuntu 13.04
  Package: software-properties-common 0.92.16
  ProcVersionSignature: Ubuntu 3.8.0-12.8-lowlatency 3.8.2
  Uname: Linux 3.8.0-12-lowlatency x86_64
  ApportVersion: 2.9.2-0ubuntu2
  Architecture: amd64
  Date: Wed Mar 20 19:29:37 2013
  ExecutablePath: /usr/bin/add-apt-repository
  InstallationDate: Installed on 2013-03-19 (0 days ago)
  InstallationMedia: Ubuntu-Studio 13.04 "Raring Ringtail" - Alpha amd64 (20130312)
  InterpreterPath: /usr/bin/python3.3
  MarkForUpload: True
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/add-apt-repository ppa:jd-team/jdownloade
  PythonArgs: ['/usr/bin/add-apt-repository', 'ppa:jd-team/jdownloade']
  SourcePackage: software-properties
  Title: add-apt-repository crashed with ImportError in get_ppa_info_from_lp(): No module named 'pycurl'
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1157900/+subscriptions




More information about the foundations-bugs mailing list