TypeError: object of type 'NoneType' has no len()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-properties (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
On quantal::
$ sudo add-apt-repository ppa:undistract-
You are about to add the following PPA to your system:
Builds of https:/
More info: https:/
Press [ENTER] to continue or ctrl-c to cancel adding it
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/lib/
tmp_keyring, tmp_secret_keyring, signing_
File "/usr/lib/
if not verify_
File "/usr/lib/
return len(signing_
TypeError: object of type 'NoneType' has no len()
At this point, the new entry in /etc/apt/
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: python-
ProcVersionSign
Uname: Linux 3.5.0-15-generic x86_64
ApportVersion: 2.6.1-0ubuntu1
Architecture: amd64
Date: Wed Oct 3 18:26:48 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120301)
PackageArchitec
ProcEnviron:
LANGUAGE=en_GB:en
TERM=xterm
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: software-properties
UpgradeStatus: Upgraded to quantal on 2012-08-19 (45 days ago)
Related branches
- Didier Roche-Tolomelli: Needs Information
-
Diff: 118 lines (+50/-7)4 files modifiedadd-apt-repository (+8/-2)
software-properties-gtk (+5/-1)
softwareproperties/ppa.py (+24/-4)
tests/test_lp.py (+13/-0)
Changed in software-properties (Ubuntu): | |
importance: | Undecided → Medium |
Changed in software-properties (Ubuntu): | |
assignee: | nobody → Robert Roth (evfool) |
status: | Confirmed → In Progress |
Changed in software-properties (Ubuntu): | |
assignee: | Robert Roth (evfool) → nobody |
status: | In Progress → Triaged |
For what it is worth I wasn't able to recreate this using the same package version and command on quantal. I wonder if you tried to add the ppa immediately after creating it in Launchpad and that may have caused an issue.
Looking at it some more I guess something like this would fix it:
if signing_ key_fingerprint is None:
return False
after the try, except for getting the key fingerprint.