AttributeError: 'NoneType' object has no attribute 'remove_byte_code'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-central (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: python-central
When uninstalling some python packages the following error occurs,
tim@ultraslim:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
vmware-
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED
python-gst0.10 serpentine
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 2150kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 126429 files and directories currently installed.)
Removing serpentine ...
Removing python-gst0.10 ...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
pkg.
File "/usr/bin/
default_
AttributeError: 'NoneType' object has no attribute 'remove_byte_code'
dpkg: error processing python-gst0.10 (--remove):
subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
python-gst0.10
E: Sub-process /usr/bin/dpkg returned an error code (1)
It seems that doing the following fixes the problem,
Change line 700 from
to
Don't know if this is the correct fix (everything else in that class also appears to use self.default_
Running Feisty Fawn development release.
tim@ultraslim:
ii python-central 0.5.12ubuntu2 register and build utility for Python packag