[Python-modules-team] A bug or something is wrong with my old Debian's installation, python-numpy, and python-support?

Phillip Pi ant at zimage.com
Thu Oct 27 13:47:42 UTC 2011


Hi again. It happened just now with today's manual upgrades:

# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  cpp cpp-4.6 g++ g++-4.6 gcc gcc-4.6 gcc-4.6-base k3b k3b-data kamera 
kcalc kcharselect
  kdebase-bin kdebase-data kdemultimedia-kio-plugins kfind kfloppy kget 
klipper kmix konqueror
  konqueror-nsplugins konsole kppp kruler ksnapshot kwin libgcc1 
libgfortran3 libgomp1
  libquadmath0 libstdc++6 libstdc++6-4.6-dev rubygems rubygems1.8
The following packages will be upgraded:
  diff diffutils e2fsck-static e2fslibs e2fsprogs gnupg-agent gnupg2 
libcomerr2 libss2
  python-reportbug reportbug sysstat
12 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.
Need to get 5,447 kB of archives.
After this operation, 470 kB disk space will be freed.
Do you want to continue [Y/n]?
Get:1 http://ftp.debian.org/debian/ testing/main diffutils i386 1:3.2-1 
[363 kB]
Get:2 http://ftp.debian.org/debian/ testing/main libcomerr2 i386 
1.42~WIP-2011-10-16-1 [52.9 kB]
Get:3 http://ftp.debian.org/debian/ testing/main e2fslibs i386 
1.42~WIP-2011-10-16-1 [186 kB]
Get:4 http://ftp.debian.org/debian/ testing/main e2fsprogs i386 
1.42~WIP-2011-10-16-1 [939 kB]
Get:5 http://ftp.debian.org/debian/ testing/main libss2 i386 
1.42~WIP-2011-10-16-1 [57.5 kB]
Get:6 http://ftp.debian.org/debian/ testing/main diff all 1:3.2-1 [6,892 
B]
Get:7 http://ftp.debian.org/debian/ testing/main reportbug all 6.2.2 
[123 kB]
Get:8 http://ftp.debian.org/debian/ testing/main python-reportbug all 
6.2.2 [132 kB]
Get:9 http://ftp.debian.org/debian/ testing/main e2fsck-static i386 
1.42~WIP-2011-10-16-1 [481 kB]
Get:10 http://ftp.debian.org/debian/ testing/main gnupg2 i386 2.0.18-2 
[2,270 kB]
Get:11 http://ftp.debian.org/debian/ testing/main gnupg-agent i386 
2.0.18-2 [468 kB]
Get:12 http://ftp.debian.org/debian/ testing/main sysstat i386 10.0.2-2 
[369 kB]
Fetched 5,447 kB in 3s (1,432 kB/s)
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 127635 files and directories currently installed.)
Preparing to replace diffutils 1:3.0-1 (using 
.../diffutils_1%3a3.2-1_i386.deb) ...
Unpacking replacement diffutils ...
Processing triggers for man-db ...
Processing triggers for install-info ...
install-info: warning: no info dir entry in 
`/usr/share/info/gnu-crypto.info.gz'
Setting up diffutils (1:3.2-1) ...
(Reading database ... 127636 files and directories currently installed.)
Preparing to replace libcomerr2 1.42~WIP-2011-07-02-1 (using 
.../libcomerr2_1.42~WIP-2011-10-16-1_i386.deb) ...
Unpacking replacement libcomerr2 ...
Setting up libcomerr2 (1.42~WIP-2011-10-16-1) ...
(Reading database ... 127636 files and directories currently installed.)
Preparing to replace e2fslibs 1.42~WIP-2011-07-02-1 (using 
.../e2fslibs_1.42~WIP-2011-10-16-1_i386.deb) ...
Unpacking replacement e2fslibs ...
Setting up e2fslibs (1.42~WIP-2011-10-16-1) ...
(Reading database ... 127636 files and directories currently installed.)
Preparing to replace e2fsprogs 1.42~WIP-2011-07-02-1 (using 
.../e2fsprogs_1.42~WIP-2011-10-16-1_i386.deb) ...
Unpacking replacement e2fsprogs ...
Processing triggers for man-db ...
Setting up e2fsprogs (1.42~WIP-2011-10-16-1) ...
Installing new version of config file /etc/mke2fs.conf ...
(Reading database ... 127635 files and directories currently installed.)
Preparing to replace libss2 1.42~WIP-2011-07-02-1 (using 
.../libss2_1.42~WIP-2011-10-16-1_i386.deb) ...
Unpacking replacement libss2 ...
Setting up libss2 (1.42~WIP-2011-10-16-1) ...
(Reading database ... 127635 files and directories currently installed.)
Preparing to replace diff 1:3.0-1 (using .../diff_1%3a3.2-1_all.deb) ...
Unpacking replacement diff ...
Preparing to replace reportbug 6.2.1 (using .../reportbug_6.2.2_all.deb) 
...
Unpacking replacement reportbug ...
Preparing to replace python-reportbug 6.2.1 (using 
.../python-reportbug_6.2.2_all.deb) ...
Unpacking replacement python-reportbug ...
Preparing to replace e2fsck-static 1.42~WIP-2011-07-02-1 (using 
.../e2fsck-static_1.42~WIP-2011-10-16-1_i386.deb) ...
Unpacking replacement e2fsck-static ...
Preparing to replace gnupg2 2.0.18-1 (using 
.../gnupg2_2.0.18-2_i386.deb) ...
Unpacking replacement gnupg2 ...
Preparing to replace gnupg-agent 2.0.18-1 (using 
.../gnupg-agent_2.0.18-2_i386.deb) ...
Unpacking replacement gnupg-agent ...
Preparing to replace sysstat 10.0.2-1 (using 
.../sysstat_10.0.2-2_i386.deb) ...
Unpacking replacement sysstat ...
Processing triggers for man-db ...
Processing triggers for menu ...
Processing triggers for gnome-menus ...
Processing triggers for desktop-file-utils ...
Processing triggers for python-support ...
Compiling /usr/lib/pymodules/python2.7/yum/__init__.py ...
SyntaxError: ('invalid syntax', 
('/usr/lib/pymodules/python2.7/yum/__init__.py', 1129, 44, "                
self.repos.populateSack(with='filelists')\n"))

Compiling /usr/lib/pymodules/python2.7/yum/depsolve.py ...
SyntaxError: ('invalid syntax', 
('/usr/lib/pymodules/python2.7/yum/depsolve.py', 73, 44, "                
self.repos.populateSack(with='filelists')\n"))

Compiling /usr/lib/pymodules/python2.7/yum/repos.py ...
SyntaxError: ('invalid syntax', 
('/usr/lib/pymodules/python2.7/yum/repos.py', 236, 48, "    def 
populateSack(self, which='enabled', with='metadata', callback=None, 
pickleonly=0):\n"))

Processing triggers for install-info ...
install-info: warning: no info dir entry in 
`/usr/share/info/gnu-crypto.info.gz'
Setting up diff (1:3.2-1) ...
Setting up python-reportbug (6.2.2) ...
Setting up reportbug (6.2.2) ...
Setting up e2fsck-static (1.42~WIP-2011-10-16-1) ...
Setting up gnupg-agent (2.0.18-2) ...
Setting up gnupg2 (2.0.18-2) ...
Setting up sysstat (10.0.2-2) ...
insserv: warning: current stop runlevel(s) (1) of script `sysstat' 
overwrites defaults (empty).
Processing triggers for python-support ...
Compiling /usr/lib/pymodules/python2.7/yum/__init__.py ...
SyntaxError: ('invalid syntax', 
('/usr/lib/pymodules/python2.7/yum/__init__.py', 1129, 44, "                
self.repos.populateSack(with='filelists')\n"))

Compiling /usr/lib/pymodules/python2.7/yum/depsolve.py ...
SyntaxError: ('invalid syntax', 
('/usr/lib/pymodules/python2.7/yum/depsolve.py', 73, 44, "                
self.repos.populateSack(with='filelists')\n"))

Compiling /usr/lib/pymodules/python2.7/yum/repos.py ...
SyntaxError: ('invalid syntax', 
('/usr/lib/pymodules/python2.7/yum/repos.py', 236, 48, "    def 
populateSack(self, which='enabled', with='metadata', callback=None, 
pickleonly=0):\n"))

Processing triggers for menu ...
localepurge: Disk space freed in /usr/share/locale: 5228 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB

Total disk space freed by localepurge: 5228 KiB


On Sun, Oct 16, 2011 at 10:05:38AM -0700, Phillip Pi wrote:
> > >>>Compiling /usr/lib/pymodules/python2.7/yum/__init__.py ...
> > >>>SyntaxError: ('invalid syntax',
> > >>>('/usr/lib/pymodules/python2.7/yum/__init__.py', 1129, 44, "
> > >>>self.repos.populateSack(with='filelists')\n"))
> > >>>
> > >>>Compiling /usr/lib/pymodules/python2.7/yum/depsolve.py ...
> > >>>SyntaxError: ('invalid syntax',
> > >>>('/usr/lib/pymodules/python2.7/yum/depsolve.py', 73, 44, "
> > >>>self.repos.populateSack(with='filelists')\n"))
> > >>>
> > >>>Compiling /usr/lib/pymodules/python2.7/yum/repos.py ...
> > >>>SyntaxError: ('invalid syntax',
> > >>>('/usr/lib/pymodules/python2.7/yum/repos.py', 236, 48, "    def
> > >>>populateSack(self, which='enabled', with='metadata', callback=None,
> > >>>pickleonly=0):\n"))
> > >>>
> > >>
> > >>python-numpy is a red herring here. You appear to have a very
> > >>old version of yum installed, which is not compatible with
> > >>Python 2.7. Just upgrade it and the warnings will go away.
> > >>
> > >Thanks, but I don't have yum installed. :/
> > 
> > Are you sure? Could you paste output of this command:
> > 
> > dpkg -S yum/__init__.py
> 
> # dpkg -S yum/__init__.py
> dpkg-query: no path found matching pattern *yum/__init__.py*.



More information about the Python-modules-team mailing list