Bug#414549: python-pygments: pygmentize cli fails with AttributeError
Package: python-pygments Version: 0.5.1-1 Severity: important Tags: patch The command line interface for the pygments module `pygmentize` contains a leftover from previous version that prevents it from working at all:: [EMAIL PROTECTED]:~/.python/packages pygmentize pylit.py Traceback (most recent call last): File /usr/bin/pygmentize, line 4, in ? sys.exit(pygments.cmdline_main(sys.argv)) AttributeError: 'module' object has no attribute 'cmdline_main' (trying to get help or the version results in an AttributeError as well). The patch is already in the upstream version http://trac.pocoo.org/browser/pygments/trunk/pygmentize --- /usr/bin/pygmentize 2006-10-31 14:28:33.0 +0100 +++ /home/milde/.bin/pygmentize 2007-03-12 14:08:52.0 +0100 @@ -1,4 +1,4 @@ #!/usr/bin/python -import sys, pygments -sys.exit(pygments.cmdline_main(sys.argv)) \ Kein Zeilenumbruch am Dateiende. +import sys, pygments.cmdline +sys.exit(pygments.cmdline.main(sys.argv)) sincerely Guenter -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-686 Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1) Versions of packages python-pygments depends on: ii python2.4.4-2An interactive high-level object-o ii python-central0.5.12 register and build utility for Pyt python-pygments recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#414549: python-pygments: pygmentize cli fails with AttributeError
[Günter Milde, 12.03.2007] Version: 0.5.1-1 ^^^ version 0.5.1 contains cmdline_main, not cmdline.main - see line 79 in /usr/share/pycentral/python-pygments/site-packages/pygments/__init__.py (cmdline.main is used in leter version, see package from experimental) The command line interface for the pygments module `pygmentize` contains a leftover from previous version that prevents it from working at all:: You are still using the older version! (see above) [EMAIL PROTECTED]:~/.python/packages pygmentize pylit.py Traceback (most recent call last): File /usr/bin/pygmentize, line 4, in ? sys.exit(pygments.cmdline_main(sys.argv)) AttributeError: 'module' object has no attribute 'cmdline_main' Did you try to upgrade to 0.7.1-1 in the meantime? (it works fine here with both 0.5.1-1 and 0.7.1-1) -- :wq! pgpHllXO59txX.pgp Description: PGP signature
Bug#414549: python-pygments: pygmentize cli fails with AttributeError
On 12.03.07, Piotr Ozarowski wrote: [Günter Milde, 12.03.2007] Version: 0.5.1-1 ^^^ version 0.5.1 contains cmdline_main, not cmdline.main ... Did you try to upgrade to 0.7.1-1 in the meantime? Looking at the files in the package and at the installed files it looks like I had a 0.7.something version from a non-Debian easy_install installation which interfered with the package installed from Debian/unstable. Downgraded to 0.5.1 and it works, so please close the bug. I am very sorry for the inconvenience caused. Guenter -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]