Page 1 of 1

Python error, when upgrading

Posted: Tue Sep 03, 2013 12:41 am
by borsitsb
Hi,
I got this message, when I trying update:

Code: Select all

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  omxplayer
The following packages will be upgraded:
  python-rpi.gpio
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 37.1 kB of archives.
After this operation, 16.4 kB disk space will be freed.
Do you want to continue [Y/n]?
Get:1 http://archive.raspberrypi.org/debian/ wheezy/main python-rpi.gpio armhf 0.5.3a-1 [37.1 kB]
Fetched 37.1 kB in 0s (94.3 kB/s)
(Reading database ... 96806 files and directories currently installed.)
Preparing to replace python-rpi.gpio 0.5.2a-1 (using .../python-rpi.gpio_0.5.3a-1_armhf.deb) ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
  File "/usr/bin/pyclean", line 63
    except (IOError, OSError), e:
                             ^
SyntaxError: invalid syntax
dpkg: error processing /var/cache/apt/archives/python-rpi.gpio_0.5.3a-1_armhf.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 35, in <module>
    from debpython.version import SUPPORTED, debsorted, vrepr, \
  File "/usr/share/python/debpython/version.py", line 24, in <module>
    from ConfigParser import SafeConfigParser
ImportError: No module named ConfigParser
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/python-rpi.gpio_0.5.3a-1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Could anyone help me to solve this problem?
Thanks in advance!