Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149223 - dev-python/python-xlib-0.12-r2 fails to run under python-2.5
Summary: dev-python/python-xlib-0.12-r2 fails to run under python-2.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: python-2.5
  Show dependency tree
 
Reported: 2006-09-26 13:22 UTC by Mike Auty (RETIRED)
Modified: 2007-01-12 22:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch against dev-python/python-xlib-0.12-r1 (encoding.diff,438 bytes, patch)
2006-11-16 18:51 UTC, Jim Dabell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Auty (RETIRED) gentoo-dev 2006-09-26 13:22:05 UTC
The error when running is:

  File "/usr/lib/python2.5/site-packages/Xlib/display.py", line 30, in <module>
    import protocol.display
  File "/usr/lib/python2.5/site-packages/Xlib/protocol/display.py", line 749
SyntaxError: Non-ASCII character '\xf6' in file /usr/lib/python2.5/site-packages/Xlib/protocol/display.py on line 749, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

As caused by the credits on line 749 contains an o with double dots over it (not sure of the precise name, sorry).  Changing this to a normal o lets it all work normally.  The problem could also be fixed by adding the correct encoding hint above the comment...
Comment 1 Jim Dabell 2006-11-16 18:51:25 UTC
Created attachment 102170 [details, diff]
Patch against dev-python/python-xlib-0.12-r1

This should fix it.
Comment 2 brad walker 2006-12-28 14:13:53 UTC
python-xlib-0.13 (released August 6th, 2006) fixes the encoding issue. grepping its Xlib/protocol/display.py shows "# -*- coding: latin-1 -*-". Unfortunately PyPanel-2.4 doesn't run with 0.13, at least on my machine.
Comment 3 Lukasz Strzygowski (RETIRED) gentoo-dev 2007-01-12 22:15:42 UTC
Fixed.