pycentral is broken

Bug #193654 reported by Ömer Fadıl USTA
2
Affects Status Importance Assigned to Milestone
python-central (Ubuntu)
New
Low
Unassigned

Bug Description

usta@usta-desktop:~$ sudo dpkg --install /var/cache/apt/archives/python-central_0.5.50ubuntu3_all.deb
(Reading database ... 165625 files and directories currently installed.)
Preparing to replace python-central 0.5.50ubuntu3 (using .../python-central_0.5.50ubuntu3_all.deb) ...
Unpacking replacement python-central ...
Setting up python-central (0.5.50ubuntu3) ...

usta@usta-desktop:~$ sudo dpkg --install /var/cache/apt/archives/python-apt_0.7.4ubuntu6_i386.deb
(Reading database ... 165625 files and directories currently installed.)
Preparing to replace python-apt 0.7.4ubuntu6 (using .../python-apt_0.7.4ubuntu6_i386.deb) ...
Unpacking replacement python-apt ...
Setting up python-apt (0.7.4ubuntu6) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1593, in <module>
    main()
  File "/usr/bin/pycentral", line 1587, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 982, in run
    self.pkg.byte_compile(bc_option, self.options.exclude)
  File "/usr/bin/pycentral", line 624, in byte_compile
    rt.byte_compile(files, bc_option, exclude_regex)
AttributeError: 'NoneType' object has no attribute 'byte_compile'
dpkg: error processing python-apt (--install):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 python-apt
usta@usta-desktop:~$

usta@usta-desktop:~$ su
Parola:
root@usta-desktop:/home/usta# PYCENTRAL=debug dpkg --configure --pending
Setting up jockey-common (0.2-0ubuntu5) ...
pycentral: pycentral bccompile jockey-common
pycentral: bccompile jockey-common
pycentral: byte-compile jockey-common
pycentral: bc for v2.5 (6 files)
pycentral: byte-compile files (6/6) python2.5
pycentral: ['/usr/lib/python2.5/site-packages/jockey/handlers.py', '/usr/lib/python2.5/site-packages/jockey/ui.py', '...']
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1593, in <module>
    main()
  File "/usr/bin/pycentral", line 1587, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 982, in run
    self.pkg.byte_compile(bc_option, self.options.exclude)
  File "/usr/bin/pycentral", line 627, in byte_compile
    (self.default_runtime.version, len(self.private_files)))
TypeError: int argument required
dpkg: error processing jockey-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of jockey-kde:
 jockey-kde depends on jockey-common (= 0.2-0ubuntu5); however:
  Package jockey-common is not configured yet.
dpkg: error processing jockey-kde (--configure):
 dependency problems - leaving unconfigured
Setting up python-apt (0.7.4ubuntu6) ...
pycentral: pycentral bccompile python-apt
pycentral: bccompile python-apt
pycentral: byte-compile python-apt
pycentral: bc for v2.5 (10 files)
pycentral: byte-compile files (10/10) python2.5
pycentral: ['/usr/lib/python2.5/site-packages/apt/__init__.py', '/usr/lib/python2.5/site-packages/apt/cache.py', '...']
pycentral: bc for v2.4 (10 files)
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1593, in <module>
    main()
  File "/usr/bin/pycentral", line 1587, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 982, in run
    self.pkg.byte_compile(bc_option, self.options.exclude)
  File "/usr/bin/pycentral", line 624, in byte_compile
    rt.byte_compile(files, bc_option, exclude_regex)
AttributeError: 'NoneType' object has no attribute 'byte_compile'
dpkg: error processing python-apt (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of update-manager-core:
 update-manager-core depends on python-apt (>= 0.7.4ubuntu5); however:
  Package python-apt is not configured yet.
dpkg: error processing update-manager-core (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 jockey-common
 jockey-kde
 python-apt
 update-manager-core
root@usta-desktop:/home/usta#

root@usta-desktop:/home/usta# exit
usta@usta-desktop:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Aşağıdaki paketlerk kendiliğinden kurulmuştu ve artık bu paketlere gerek duyulmuyor:
  libneon26 linux-headers-2.6.24-7 linux-headers-2.6.24-7-generic libgraphviz3 libungif4g
Kaldırmak için 'apt-get autoremove' komutunu kullanın
0 yükseltildi, 0 yeni kuruldu, 0 kaldırılacak ve 29 yükseltilmeyecek.
4 tam olarak kurulmadı veya kaldırılmadı.
After this operation, 0B of additional disk space will be used.
Setting up python-apt (0.7.4ubuntu6) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1593, in <module>
    main()
  File "/usr/bin/pycentral", line 1587, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 982, in run
    self.pkg.byte_compile(bc_option, self.options.exclude)
  File "/usr/bin/pycentral", line 624, in byte_compile
    rt.byte_compile(files, bc_option, exclude_regex)
AttributeError: 'NoneType' object has no attribute 'byte_compile'
dpkg: error processing python-apt (--configure):
 subprocess post-installation script returned error exit status 1
Setting up jockey-common (0.2-0ubuntu5) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1593, in <module>
    main()
  File "/usr/bin/pycentral", line 1587, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 982, in run
    self.pkg.byte_compile(bc_option, self.options.exclude)
  File "/usr/bin/pycentral", line 627, in byte_compile
    (self.default_runtime.version, len(self.private_files)))
TypeError: int argument required
dpkg: error processing jockey-common (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of jockey-kde:
 jockey-kde depends on jockey-common (= 0.2-0ubuntu5); however:
  Package jockey-common is not configured yet.
dpkg: error processing jockey-kde (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of update-manager-core:
 update-manager-core depends on python-apt (>= 0.7.4ubuntu5); however:
  Package python-apt is not configured yet.
dpkg: error processing update-manager-core (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python-apt
 jockey-common
 jockey-kde
 update-manager-core
E: Sub-process /usr/bin/dpkg returned an error code (1)
usta@usta-desktop:~$

Revision history for this message
Basilio Kublik (sourcercito) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at [WWW] https://wiki.ubuntu.com/Bugs/FindRightPackage. I have classified this bug as a bug in python-central

Revision history for this message
Basilio Kublik (sourcercito) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 193283, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

Changed in python-central:
importance: Undecided → Low
Revision history for this message
Will Newton (will-newton) wrote :

I can confirm this happens on an upgrade of 7.10 to 8.04 alpha 5 as of today (1 March 2008).

It appears to happen when only python 2.5 is installed (and the only version returned by get_installed_runtimes()) but pycentral is looking for version 2.4 and 2.5.

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.