[Bug 1157900] Re: add-apt-repository crashed with ImportError in get_ppa_info_from_lp(): No module named 'pycurl'
Dmitry Shachnev
mitya57 at gmail.com
Tue Apr 30 15:24:46 UTC 2013
The real error here is that get_ppa_info_from_lp() has an “except:” line
that catches all exceptions derived from BaseException, including
KeyboardInterrupt and even SystemExit.
This is not recommended (see
http://docs.python.org/3/howto/doanddont.html#except) and can lead to
random bug errors like this one. I propose to change that line to
“except NameError:” (which means that we failed to import urllib) or at
least “except Exception:”.
** Changed in: software-properties (Ubuntu)
Status: Confirmed => Triaged
--
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:
Triaged
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