[hardy] pycentral crashed with ValueError in parse_versions()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-apt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Hardy |
Invalid
|
Undecided
|
Unassigned | ||
python-central (Ubuntu) |
Fix Released
|
High
|
Matthias Klose | ||
Hardy |
Fix Released
|
High
|
Matthias Klose |
Bug Description
Binary package hint: python-central
Just installing the lasterst hardy updates.
Note: This bug has already been confirmed. There is no need to comment simply to confirm the bug, but please comment if you have something to add.
ProblemType: Crash
Architecture: i386
Date: Mon Feb 18 19:47:43 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/pycentral
InterpreterPath: /usr/bin/python2.5
NonfreeKernelMo
Package: python-central 0.5.50ubuntu1
PackageArchitec
ProcCmdline: /usr/bin/python /usr/bin/pycentral pkgprepare bzr
ProcCwd: /
ProcEnviron:
LANGUAGE=nl_NL:nl
PATH=/
LANG=nl_NL.UTF-8
SHELL=/bin/bash
PythonArgs: ['/usr/
SourcePackage: python-central
Title: pycentral crashed with ValueError in parse_versions()
Uname: Linux zjaak-desktop 2.6.24-8-generic #1 SMP Thu Feb 14 20:40:45 UTC 2008 i686 GNU/Linux
UserGroups:
Related branches
zjaak (zjaakie) wrote : | #1 |
- ProcStatus.txt Edit (606 bytes, text/plain; charset="utf-8")
- Traceback.txt Edit (641 bytes, text/plain; charset="utf-8")
Miguel Ruiz (mruiz) wrote : | #2 |
Changed in python-central: | |
status: | New → Confirmed |
marcobra (Marco Braida) (marcobra) wrote : | #3 |
I'm confirming this issue with Hardy up to date.
Thank you
marcobra (Marco Braida) (marcobra) wrote : | #4 |
Confirmed on all my 3 Ubuntu Hardy up to date pcs.
Thank you
nanog (sorenimpey) wrote : | #5 |
Terminal output during crash:
[code]$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
evolution evolution-common evolution-plugins
The following packages will be upgraded:
python-apt
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
2 not fully installed or removed.
Need to get 0B/194kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 232115 files and directories currently installed.)
Preparing to replace python-apt 0.7.4ubuntu4 (using .../python-
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
requested = pyversions.
File "/usr/share/
vinfo = parse_versions(
File "/usr/share/
raise ValueError, 'error parsing Python-Version attribute'
ValueError: error parsing Python-Version attribute
dpkg: error processing /var/cache/
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
[/code]
Vikrant (vikrant82) wrote : | #6 |
Confirming same crash on latest updates.
Dennis Craven (dcraven) wrote : | #7 |
Confirming. Error received during upgrade to bzr_1.1~
mattia.lambertini (mat-lambertini) wrote : | #8 |
same bug for me on hardy.
Preparing to replace python-apt 0.7.4ubuntu4 (using .../python-
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
requested = pyversions.
File "/usr/share/
vinfo = parse_versions(
File "/usr/share/
raise ValueError, 'error parsing Python-Version attribute'
ValueError: error parsing Python-Version attribute
dpkg: error processing /var/cache/
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
miked (miked11) wrote : | #9 |
Hardy Heron 8.04 Alpha 4
root@AMD1Ghz-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libmlt-data libmlt0.2.4
The following packages will be upgraded:
python-apt update-manager update-manager-core
3 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B/1122kB of archives.
After this operation, 32.8kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 223014 files and directories currently installed.)
Preparing to replace python-apt 0.7.4ubuntu4 (using .../python-
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
requested = pyversions.
File "/usr/share/
vinfo = parse_versions(
File "/usr/share/
raise ValueError, 'error parsing Python-Version attribute'
ValueError: error parsing Python-Version attribute
dpkg: error processing /var/cache/
subprocess pre-installation script returned error exit status 1
Preparing to replace update-manager 1:0.87.7 (using .../update-
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
requested = pyversions.
File "/usr/share/
vinfo = parse_versions(
File "/usr/share/
raise ValueError, 'error parsing Python-Version attribute'
ValueError: error parsing Python-Version attribute
dpkg: error processing /var/cache/
subprocess pre-installation script returned error exit status 1
Preparing to replace update-manager-core 1:0.87.7 (using .../update-
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
requested = pyversions.
File "/usr/share/
vinfo = parse_versions(
File "/usr/share/
raise ValueError, 'error parsing Python-Version attribute'
ValueError: error parsing Python-Version attribute
dpkg: error processing /var/cache/apt/a...
Jesper Larsen (knorr) wrote : | #10 |
Confirming this with the 64 bit python-
miked (miked11) wrote : | #11 |
Changed in python-apt: | |
status: | New → Invalid |
Changed in python-central: | |
importance: | Undecided → Medium |
mattismyname (mattismyname) wrote : | #12 |
Confirming...
wesley_of_course (wesley-of-course) wrote : | #13 |
confirming this happening on update. 64 - bit
David Duong (dduong) wrote : | #14 |
- Crash file for pycentral Edit (12.2 KiB, text/plain)
OS: Xubuntu 64 Hardy Alpha 4
I also confirm this. This is might be linked to an upgrade that is associated with Update Manager + Update Manager Core.
Attaching the crash file for both
David Duong (dduong) wrote : | #15 |
- Update Manager crash file Edit (32.4 KiB, text/plain)
Oops adding attachment for Update Manager crash
thebinaryblob (superlegokid) wrote : | #16 |
confirming
it also prevents me from updating 3 packages
python-apt, update-manager, and update-manager-core
akira (akira.spb) wrote : | #17 |
confirm
douham (dougg) wrote : | #18 |
confirm
Pitabred (ubuntu-pitabred) wrote : | #19 |
I also ran into this, and accidentally reported it here since it didn't come up in a search for python-apt: https:/
My workaround is to install the python-
And pin it by creating a file called /etc/apt/
Package: python-apt
Pin: release v=0.7.4ubuntu4
Pin-Priority: 1000
- David
Nemes Ioan Sorin (nemes-sorin) wrote : | #20 |
confirm this bug (Just uploaded report data).
And confirm David solution. It works.
Colin Dean (colindean) wrote : | #21 |
- apt-get_error_20080218.txt Edit (10.8 KiB, text/plain)
Confirmament, x86 Ubuntu.
Methinks it has something to do with pycentral or some other dependency of python-apt, bzr, and the like.
pycentral wants libapt-
libapt-
muffpotter (muffpotter) wrote : | #22 |
confirming
Kyubutsu (jf) wrote : | #23 |
confirmed
8.04 - kernel 2.6.24-8 - x86 celeron 2.0
Fred (eldmannen+launchpad) wrote : | #24 |
I got this error too.
racoon97 (racoon97) wrote : | #25 |
So do I.
E: /var/cache/
E: /var/cache/
E: /var/cache/
pnr (rusyaev-gmail) wrote : | #26 |
Confirm the same bug after today's update of Hardy
Tim Cambrant (cambrant) wrote : | #27 |
Problems seem solved when trying Pitabred's workaround, except that python-apt, update-manager and update-manager-core are held back by apt.
When this bug is solved, do we need to do anything in particular to revert the installation and pin of python-apt 0.7.4ubuntu4?
cjtinant (cjtinant) wrote : | #28 |
Mine is bottoming out as well, wondering if it effects watching LIVE TV, Recordings, or movies... I cannot use any of them.
Pitabred (ubuntu-pitabred) wrote : | #29 |
To revert, just delete the /etc/apt/
Scott Wegner (swegner) wrote : | #30 |
I can also confirm it-- running latest Hardy alpha x64 in a VMWare virtual machine. Today's updates killed this and the other two packages listed above.
sno (sno-squee) wrote : | #31 |
Confirmed on today's daily image for hardy. Pitabred's workaround makes the error go away.
Mark Weaver (blushingpenguin) wrote : | #32 |
It's because the preinst script in python-apt 0.7.4ubuntu5 has:
[python-package]
format = 1
python-version = python:Versions=2.4
and then /usr/bin/pycentral has @ line 1028
version_field = pkgconfig.
requested = pyversions.
and this ultimately calls parse_versions in /usr/share/
and this expects a string of the form ">=|<=|<<|= d.d", so it breaks.
I "fixed" the issue with:
--- /root/pyversions.py 2008-02-19 01:34:19.000000000 +0000
+++ pyversions.py 2008-02-19 01:57:42.000000000 +0000
@@ -31,6 +31,7 @@
+ vstring = vstring.
vinfo = {}
exact_versions = set([])
version_range = set(supported_
i.e. stripping off the unexpected python:Versions string.
Although what the correct fix is, I've no clue.
Alessandro Ghersi (alessandro-ghersi) wrote : | #33 |
Confirming this with the Kubuntu 64bit python-
Dean Loros (autocrosser) wrote : | #34 |
Also ran into this problem--
The following packages will be upgraded:
bzr python-apt update-manager update-manager-core
4 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 0B/5523kB of archives.
After this operation, 434kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 238977 files and directories currently installed.)
Preparing to replace python-apt 0.7.4ubuntu4 (using .../python-
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
requested = pyversions.
File "/usr/share/
vinfo = parse_versions(
File "/usr/share/
raise ValueError, 'error parsing Python-Version attribute'
ValueError: error parsing Python-Version attribute
dpkg: error processing /var/cache/
subprocess pre-installation script returned error exit status 1
Preparing to replace update-manager 1:0.87.6 (using .../update-
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
requested = pyversions.
File "/usr/share/
vinfo = parse_versions(
File "/usr/share/
raise ValueError, 'error parsing Python-Version attribute'
ValueError: error parsing Python-Version attribute
dpkg: error processing /var/cache/
subprocess pre-installation script returned error exit status 1
Preparing to replace update-manager-core 1:0.87.6 (using .../update-
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
requested = pyversions.
File "/usr/share/
vinfo = parse_versions(
File "/usr/share/
raise ValueError, 'error parsing Python-Version attribute'
ValueError: error parsing Python-Version attribute
dpkg: error processing /var/cache/
subprocess pre-installation script returned error exit status 1
Preparing to replace bzr 1.0-1 (using .../bzr_
Ignoring nonregistered document `bzr...
Kyle M Weller (kylew) wrote : | #35 |
Same issue here running hardy latest updates:
http://
Changed in python-central: | |
importance: | Medium → High |
milestone: | none → hardy-alpha-5 |
Changed in python-central: | |
importance: | High → Medium |
Changed in python-central: | |
importance: | Medium → High |
josejoe (jsschulz) wrote : | #36 |
Confirming the bug.
Emanuel (emanuel-demetrescu) wrote : | #37 |
confirm
Shirish Agarwal (shirishag75) wrote : | #38 |
From comment 32 it seems that something is wrong in the python-apt package. I hope somebody works on this & gets us a new package which fixes the issue, till then many new packages would be affected. I'm having issues with 5 packages due to this :-
bzr python-apt update-manager update-manager-core
Andrea Caminiti (nrayever) wrote : | #39 |
hi everyone:
I'm confirming this issue with Hardy up to date. this is a bit annoying right now. hope it's fixed soon.
nrayever
whitelightme (inspheration-deactivatedaccount) wrote : | #40 |
I just got the same bug...
Changed in python-central: | |
assignee: | nobody → doko |
Changed in python-central: | |
status: | Confirmed → Fix Released |
39 comments hidden Loading more comments | view all 119 comments |
Chow Loong Jin (hyperair) wrote : | #80 |
hyperair@
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
bzr python-apt update-manager update-manager-core
4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/5523kB of archives.
After this operation, 434kB of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 320617 files and directories currently installed.)
Preparing to replace python-apt 0.7.4ubuntu4 (using .../python-
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
requested = pyversions.
File "/usr/share/
vinfo = parse_versions(
File "/usr/share/
raise ValueError, 'error parsing Python-Version attribute'
ValueError: error parsing Python-Version attribute
dpkg: error processing /var/cache/
subprocess pre-installation script returned error exit status 1
Preparing to replace update-manager 1:0.87.6 (using .../update-
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
requested = pyversions.
File "/usr/share/
vinfo = parse_versions(
File "/usr/share/
raise ValueError, 'error parsing Python-Version attribute'
ValueError: error parsing Python-Version attribute
dpkg: error processing /var/cache/
subprocess pre-installation script returned error exit status 1
Preparing to replace update-manager-core 1:0.87.6 (using .../update-
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
requested = pyversions.
File "/usr/share/
vinfo = parse_versions(
File "/usr/share/
raise ValueError, 'error parsing Python-Version attribute'
ValueError: error parsing Python-Version attribute
dpkg: error processing /var/cache/
Changed in python-central: | |
status: | Fix Released → Confirmed |
Timo Saloranta (timo-saloranta) wrote : | #81 |
still confirm
sudo aptitude full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following partially installed packages will be configured:
jockey-common jockey-gtk
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up jockey-common (0.2-0ubuntu5) ...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
self.
File "/usr/bin/
(self.
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-gtk:
jockey-gtk depends on jockey-common (= 0.2-0ubuntu5); however:
Package jockey-common is not configured yet.
dpkg: error processing jockey-gtk (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
jockey-common
jockey-gtk
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up jockey-common (0.2-0ubuntu5) ...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
self.
File "/usr/bin/
(self.
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-gtk:
jockey-gtk depends on jockey-common (= 0.2-0ubuntu5); however:
Package jockey-common is not configured yet.
dpkg: error processing jockey-gtk (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
jockey-common
jockey-gtk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
Timo Saloranta (timo-saloranta) wrote : | #82 |
It seems that installing python2.4 and bzr seemed to do the trick! (see the trace above)
Now I only have jockey-common and jockey-gtk problems left. But it's another issue, isn't it (?).
Kyubutsu (jf) wrote : | #83 |
i386 is doomed alright. but weirdly (and thankfully perhaps), update-manager crashed before changing the system to current broken state (on 64bit). so i'm still running kernel 2.6.24-7 and everything with it is still fine.
Jean-Baptiste Lallement (jibel) wrote : | #84 |
As a workaround installing python2.4 solves this issue.
Chow Loong Jin (hyperair) wrote : | #85 |
Same thing happens for me. Strange.
Jellow (mail-jan-guenter) wrote : | #86 |
- Dirty patch for dh_pycentral Edit (1.1 KiB, text/plain)
My dirty Solution:
==================
Source of the bug:
The bug is produced in the packages build-time by dh_pycentral which generates a line in the preinst script like "python-version = python:
This bug occures only when using "XB-Python-Version: ${python:Versions}" in the packages control file.
Workaround:
I attached a patch for dh_pycentral which corrects the $versions_field variable given to the autoscript method using a simple regex.
Result:
With my patch applied to /usr/bin/
Chow Loong Jin (hyperair) wrote : | #87 |
I take that back. Installing python2.4 didn't solve the issue for me.
John Dong (jdong) wrote : | #88 |
This is not an appropriate place to discuss workarounds -- this is a place to identify the cause and propose proper fixes to the bug at hand. Please move nonessential discussion to another support medium,
Thanks.
Jussi Saarinen (jms) wrote : | #89 |
ppc64 GNU/Linux (ps3):
After I upgraded python-central to version 0.5.50ubuntu3 some packages which failed to upgrade due to python-central's previous version upgraded now fine.
But some new issues:
Preparing to replace mythbuntu-
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
pkg = DebPackage(
File "/usr/bin/
self.
File "/usr/bin/
lines = self.read_
File "/usr/bin/
self.
AttributeError: 'NoneType' object has no attribute 'getvalue'
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
dpkg: ... it looks like that went OK.
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
old_pkg = DebPackage(
File "/usr/bin/
self.
File "/usr/bin/
lines = self.read_
File "/usr/bin/
self.
AttributeError: 'NoneType' object has no attribute 'getvalue'
dpkg: error processing /var/cache/
subprocess pre-installation script returned error exit status 1
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
pkg = DebPackage(
File "/usr/bin/
self.
File "/usr/bin/
lines = self.read_
File "/usr/bin/
self.
AttributeError: 'NoneType' object has no attribute 'getvalue'
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Alexandr Rudenko (hinode-mikado) wrote : | #90 |
Confirmed... problems of dependences.
Nikola Yanev (gericom) wrote : | #91 |
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Setting up python-apt (0.7.4ubuntu5) ...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
self.
File "/usr/bin/
rt.
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-
update-
Package python-apt is not configured yet.
dpkg: error processing update-manager-core (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-app-install:
gnome-app-install depends on python-apt (>= 0.7.4ubuntu4); however:
Package python-apt is not configured yet.
dpkg: error processing gnome-app-install (--configure):
dependency problems - leaving unconfigured
Setting up jockey-common (0.2-0ubuntu5) ...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
self.
File "/usr/bin/
(self.
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-gtk:
jockey-gtk depends on jockey-common (= 0.2-0ubuntu5); however:
Package jockey-common is not configured yet.
dpkg: error processing jockey-gtk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of update-manager:
update-manager depends on update-manager-core (= 1:0.87.8); however:
Package update-manager-core is not configured yet.
dpkg: error processing update-manager (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-apt
update-
gnome-app-install
jockey-common
jockey-gtk
update-manager
E: Sub-process /usr/bin/dpkg returned an error code (1)
the same problem i had in the morning
Dmytro Samsonov (creazine) wrote : | #92 |
Confirming...
Iron Rat (theironrat) wrote : | #93 |
Confirming
Michael Losonsky (michl) wrote : | #94 |
Also confirming
goalieca (goalieca) wrote : | #95 |
I want to join in on the fun!
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
self.
File "/usr/bin/
rt.
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-
update-
Package python-apt is not configured yet.
dpkg: error processing update-manager-core (--configure):
dependency problems - leaving unconfigured
Setting up jockey-common (0.2-0ubuntu5) ...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
self.
File "/usr/bin/
(self.
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-gtk:
jockey-gtk depends on jockey-common (= 0.2-0ubuntu5); however:
Package jockey-common is not configured yet.
dpkg: error processing jockey-gtk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of update-manager:
update-manager depends on update-manager-core (= 1:0.87.8); however:
Package update-manager-core is not configured yet.
dpkg: error processing update-manager (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-apt
update-
jockey-common
jockey-gtk
update-manager
miked (miked11) wrote : | #96 |
https:/
John Dong wrote 3 hours ago: (permalink)
This is not an appropriate place to discuss workarounds -- this is a place to identify the cause and propose proper fixes to the bug at hand. Please move nonessential discussion to another support medium,
Thanks.
I wanted to know where the appropriate place to discuss workarounds is, to move nonessential discussion to, what other (another) support medium ?
Thanks.
dan (dadan) wrote : Re: [Bug 192992] Re: [hardy] pycentral crashed with ValueError in parse_versions() | #97 |
miked a écrit :
> Thanks, this worked for me.
> https:/
>
It worked for me too.
--
Maxime Danis
Elias K Gardner (zorkerz) wrote : | #98 |
I would recommend starting a thread in ubuntuforums.org or possibly the ask
section of launchpad. The latter im not as familiar with and do not know if
they condone threads that are not direct questions.
cheers
miked (miked11) wrote : | #99 |
Thanks, this worked for me.
https:/
phalax (jolsson81) wrote : | #100 |
Confirm. When updating "jockey-common - 0.2-0ubuntu5".
Log:
Ställer in jockey-common (0.2-0ubuntu5) ...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
self.
File "/usr/bin/
(self.
TypeError: int argument required
dpkg: fel vid hantering av jockey-common (--configure):
underprocess post-installation script gav felkod 1
dpkg: beroendeproblem förhindrar konfigurering av jockey-gtk:
jockey-gtk beror på jockey-common (= 0.2-0ubuntu5), men:
Paketet jockey-common har inte konfigurerats ännu.
dpkg: fel vid hantering av jockey-gtk (--configure):
beroendeproblem - lämnar okonfigurerad
Fel uppstod vid hantering:
jockey-common
jockey-gtk
E: Sub-process /usr/bin/dpkg returned an error code (1)
Olivier Samyn (olivier-oleastre) wrote : | #101 |
I got also some troubles today once updating my fresh Hardy installation.
First step, I made to resolve this issue is to install Python 2.4.
It seems pycentral crashes if a packages specify a python version that is not installed.
After that I got an error when trying to update jockey-common.
This one comes from the debugging message expecting an int and it is given a string and an int.
Quick patch:
--- pycentral.old 2008-02-19 22:26:53.000000000 +0100
+++ pycentral 2008-02-19 22:27:01.000000000 +0100
@@ -623,7 +623,7 @@
rt = get_runtime_
if self.private_files:
- logging.debug("bc private (%d files)" %
+ logging.debug("bc private v%s (%d files)" %
rt = self.default_
Randy LeJeune (lejeunerandy-fastmail) wrote : Re: [Bug 192992] Re: [hardy] pycentral crashed with ValueError in parse_versions() | #102 |
Worked for me. Thanks!
On Tue, 19 Feb 2008 19:58:34 -0000, "Maxime Danis"
<email address hidden> said:
> miked a écrit :
> > Thanks, this worked for me.
> > https:/
> >
>
> It worked for me too.
>
> --
> Maxime Danis
>
> --
> [hardy] pycentral crashed with ValueError in parse_versions()
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Source Package "python-apt" in Ubuntu: Invalid
> Status in Source Package "python-central" in Ubuntu: Confirmed
> Status in python-apt in Ubuntu Hardy: Invalid
> Status in python-central in Ubuntu Hardy: Confirmed
>
> Bug description:
> Binary package hint: python-central
>
> Just installing the lasterst hardy updates.
>
> ProblemType: Crash
> Architecture: i386
> Date: Mon Feb 18 19:47:43 2008
> DistroRelease: Ubuntu 8.04
> ExecutablePath: /usr/bin/pycentral
> InterpreterPath: /usr/bin/python2.5
> NonfreeKernelMo
> Package: python-central 0.5.50ubuntu1
> PackageArchitec
> ProcCmdline: /usr/bin/python /usr/bin/pycentral pkgprepare bzr
> ProcCwd: /
> ProcEnviron:
> LANGUAGE=nl_NL:nl
> PATH=/usr/
> LANG=nl_NL.UTF-8
> SHELL=/bin/bash
> PythonArgs: ['/usr/
> SourcePackage: python-central
> Title: pycentral crashed with ValueError in parse_versions()
> Uname: Linux zjaak-desktop 2.6.24-8-generic #1 SMP Thu Feb 14 20:40:45
> UTC 2008 i686 GNU/Linux
> UserGroups:
--
Randy LeJeune
<email address hidden>
--
http://
Nobu (benjo316) wrote : | #103 |
Still not working for me. Has a solution been found yet, or are people still just throwing around patches?
When trying to update packages:
>super@
>[snip locale errors caused by bug # 192012]
>perl: warning: Falling back to the standard locale ("C").
>locale: Cannot set LC_CTYPE to default locale: No such file or directory
>locale: Cannot set LC_MESSAGES to default locale: No such file or directory
>locale: Cannot set LC_ALL to default locale: No such file or directory
>Setting up python-apt (0.7.4ubuntu5) ...
>Traceback (most recent call last):
> File "/usr/bin/
> main()
> File "/usr/bin/
> rv = action.
> File "/usr/bin/
> self.pkg.
> File "/usr/bin/
> rt.byte_
>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-
> 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
>dpkg: dependency problems prevent configuration of update-manager:
> update-manager depends on update-manager-core (= 1:0.87.8); however:
> Package update-manager-core is not configured yet.
>dpkg: error processing update-manager (--configure):
> dependency problems - leaving unconfigured
>Errors were encountered while processing:
> python-apt
> update-manager-core
> update-manager
>E: Sub-process /usr/bin/dpkg returned an error code (1)
>A package failed to install. Trying to recover:
>Setting up python-apt (0.7.4ubuntu5) ...
>Traceback (most recent call last):
> File "/usr/bin/
> main()
> File "/usr/bin/
> rv = action.
> File "/usr/bin/
> self.pkg.
> File "/usr/bin/
> rt.byte_
>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-
> 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
>dpkg: dependency problems prevent configuration of update-manager:
> update-manager depends on update-manager-core (= 1:0.87.8); however:
> Package update-manager-core is not configured yet.
>dpkg: error processing update-manager (--configure):
> dependency problems - leaving unconfigured
>Errors were encountered while processing:
> python-apt
> upd...
Olivier Samyn (olivier-oleastre) wrote : | #104 |
Nobu, did you installed python 2.4 ?
apt-get install python2.4
this will solve: " AttributeError: 'NoneType' object has no attribute 'byte_compile' "
Next, apply my patch to your pycentral.
Lafa (luis-alves) wrote : | #105 |
I also got this problem, when I perform the update on the cmd
I see these messages
Setting up python-apt (0.7.4ubuntu6) ...
pycentral: byte_compile: python version '2.4' requested but not available
Setting up update-manager-core (1:0.87.9) ...
pycentral: byte_compile: python version '2.4' requested but not available
Setting up update-manager (1:0.87.9) ...
pycentral: byte_compile: python version '2.4' requested but not available
Rick Gabriel (klaxian1) wrote : | #106 |
This seems fixed for me by installing the latest python-apt and python-central packages (within the last couple hours) and also installing python2.4. Perhaps a more permanent solution is still forthcoming, but so far so good. Thanks!
Gonçalo (monxalo) wrote : | #107 |
Confirming...
komputes (komputes) wrote : | #108 |
Confirmed issue using update-manager on Hardy x86
Update Manager Reported the following errors
E: python-apt: subprocess post-installation script returned error exit status 1
E: update-
E: update-manager: dependency problems - leaving unconfigured
E: gnome-app-install: dependency problems - leaving unconfigured
E: jockey-common: subprocess post-installation script returned error exit status 1
E: jockey-gtk: dependency problems - leaving unconfigured
I have tried
sudo apt-get install python 2.4
to which I get the output
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
openoffice.
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
python2.4-minimal
Suggested packages:
python-profiler python2.4-doc
The following NEW packages will be installed:
python2.4 python2.4-minimal
0 upgraded, 2 newly installed, 0 to remove and 23 not upgraded.
6 not fully installed or removed.
Need to get 3785kB of archives.
After this operation, 12.8MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://
Get:2 http://
Fetched 3785kB in 1min1s (61.4kB/s)
Selecting previously deselected package python2.4-minimal.
(Reading database ... 130522 files and directories currently installed.)
Unpacking python2.4-minimal (from .../python2.
Selecting previously deselected package python2.4.
Unpacking python2.4 (from .../python2.
Setting up python-apt (0.7.4ubuntu5) ...
'import site' failed; use -v for traceback
Setting up gnome-app-install (0.5.2.3-0ubuntu1) ...
Caching application data...
Generating mime/codec maps...
Setting up jockey-common (0.2-0ubuntu5) ...
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
self.
File "/usr/bin/
(self.
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-gtk:
jockey-gtk depends on jockey-common (= 0.2-0ubuntu5); however:
Package jockey-common is not configured yet.
dpkg: error processing jockey-gtk (--configure):
dependency problems - leaving unconfigured
Setting up update-manager-core (1:0.87.8) ...
'import site' failed; use -v for traceback
Setting up update-manager (1:0.87.8) ...
'import site' failed; use -v for traceback
Setting up python2.4-minimal (2.4.4-7ubuntu1) ...
Linking and byte-compiling packages for runtime python2.4...
Set...
komputes (komputes) wrote : | #109 |
Installed this package and ran update-manager twice, works fine for me!
description: | updated |
Nobu (benjo316) wrote : | #110 |
Olivier Samyn:
Thanks, I thought I had already had it installed; turns out it was 2.5 I had.
Your patch did get jockey-common installed. There's only one change made by that patch, huh?
Just installed another update for both jockey-common and python-central (among others) and,
aside from the copious locale errors, there were no problems updating the packages.
Brian Curtis (bcurtiswx) wrote : | #111 |
As far as recent updates (11:30PM EST Feb 19) I have no errors now.
أحمد المحمودي (Ahmed El-Mahmoudy) (aelmahmoudy) wrote : | #112 |
I updated today, errors have vanished
Mathieu Marquer (slasher-fun) wrote : | #113 |
Seems fixed in python-apt 0.7.4ubuntu6 and python-central 0.5.50ubuntu6
Jochen Mertens (jmertens) wrote : | #114 |
Confirmed for latest updates.
Miguel Ruiz (mruiz) wrote : | #115 |
Thank you for taking the time to report this bug and helping to make Ubuntu better. I'm closing it because the bug has been fixed in the last version of python-central (0.5.50ubuntu7).
Cheers!
Changed in python-central: | |
status: | Confirmed → Fix Released |
mariano.iannuzzi (mariano-iannuzzi) wrote : Re: [Bug 192992] Re: [hardy] pycentral crashed with ValueError in parse_versions() | #116 |
Great!
On Wed, Feb 20, 2008 at 10:43 AM, Miguel Ruiz <email address hidden> wrote:
> Thank you for taking the time to report this bug and helping to make
> Ubuntu better. I'm closing it because the bug has been fixed in the last
> version of python-central (0.5.50ubuntu7).
>
> Cheers!
>
> ** Changed in: python-central (Ubuntu Hardy)
> Status: Confirmed => Fix Released
>
> --
> [hardy] pycentral crashed with ValueError in parse_versions()
> https:/
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
Bernhard Schuster (drahnr) wrote : Re: [Bug 192992] my apologies | #117 |
no big deal, as long as my email does NOT appear on AOLs spam list...
PC_THE_GREAT (pcthegreat) wrote : | #118 |
lol mine also :p
On Fri, Dec 12, 2008 at 3:53 AM, soxs <email address hidden>wrote:
> no big deal, as long as my email does NOT appear on AOLs spam list...
>
> --
> [hardy] pycentral crashed with ValueError in parse_versions()
> https:/
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
--
$3|v3n
mattia.lambertini (mat-lambertini) wrote : | #119 |
shit happens..
no problem for me ;)
2008/12/12 PC_THE_GREAT <email address hidden>
> lol mine also :p
> On Fri, Dec 12, 2008 at 3:53 AM, soxs <<email address hidden>
> >wrote:
>
> > no big deal, as long as my email does NOT appear on AOLs spam list...
> >
> > --
> > [hardy] pycentral crashed with ValueError in parse_versions()
> > https:/
> > You received this bug notification because you are a direct subscriber
> > of a duplicate bug.
> >
>
>
> --
> $3|v3n
>
> --
> [hardy] pycentral crashed with ValueError in parse_versions()
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
--
Cordiali Saluti,
Mattia
Le email contenenti, in allegato, i formati proprietari (".doc", ".ppt" di
Microsoft) vengono automaticamente cancellate, senza la possibilità di
lettura da parte mia. Questo perchè non sono adatti come forma di
trasmissione e condivisione dei saperi. Vi invito ad utilizzare formati
liberi e standard come odf ( http://
alternativa è possibile utilizzare formati standard come PDF.
I'm confirming this issue with Hardy Heron up to date.
Cheers!