Your message dated Mon, 12 Mar 2007 18:37:00 +0100 with message-id <[EMAIL PROTECTED]> and subject line Bug#414549: python-pygments: pygmentize cli fails with AttributeError has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---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.000000000 +0100 +++ /home/milde/.bin/pygmentize 2007-03-12 14:08:52.000000000 +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 python 2.4.4-2 An interactive high-level object-o ii python-central 0.5.12 register and build utility for Pyt python-pygments recommends no packages. -- no debconf information
--- End Message ---
--- Begin Message ---[G. Milde, 12.03.2007] > 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. It's not a good idea to mix Debian packages with ez_install'ed ones. Use ez_install in a sandbox (controlled environment)[1] or try to prepare simple packages with checkinstall / dh_make (or check if it's available in experimental :-) if you need newest versions. > Downgraded to 0.5.1 and it works, so please close the bug. done > I am very sorry for the inconvenience caused. no problem [1] f.e. with this script: http://peak.telecommunity.com/dist/virtual-python.py -- -=[ Piotr Ozarowski ]=- -=[ http://www.ozarowski.pl ]=-pgpbO0HfxipcL.pgp
Description: PGP signature
--- End Message ---