[Freewx-maint] Bug#698198: img2py: fails when DISPLAY is unset

Nicolas Boulenguez nicolas at debian.org
Tue Jan 15 02:50:02 UTC 2013


Package: python-wxgtk2.8
Version: 2.8.12.1-12
Severity: minor

Hello.

Img2py should not require an xserver. For example, it should be
available in a pdebuild chroot.

You may reproduce the failure with
# touch src.png
# unset DISPLAY
# python /usr/share/pyshared/wx-2.8-gtk2-unicode/wx/tools/img2py.py src.png dest.py

Instead of creating dest.py, the interpreter aborts with the message
"Unable to access the X Display, is $DISPLAY set properly?"

The attached trivial patch seems to solve the problem.

Versions of packages python-wxgtk2.8 depends on:
ii  python            2.7.3~rc2-1
ii  python-wxversion  2.8.12.1-12
-------------- next part --------------
A non-text attachment was scrubbed...
Name: img2py.diff
Type: text/x-diff
Size: 608 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/freewx-maint/attachments/20130115/efed12d6/attachment.diff>


More information about the Freewx-maint mailing list