Your message dated Wed, 10 Jun 2020 05:08:45 +0000
with message-id <[email protected]>
and subject line Bug#938834: Removed package(s) from unstable
has caused the Debian Bug report #698198,
regarding img2py: fails when DISPLAY is unset
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
698198: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698198
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- /usr/share/pyshared/wx-2.8-gtk2-unicode/wx/tools/img2py.py	2010-04-15 06:26:37.000000000 +0200
+++ img2py.py	2013-01-15 03:39:32.000000000 +0100
@@ -95,7 +95,6 @@
 except AttributeError:
     b64encode = base64.encodestring
 
-app = None
 DEFAULT_APPEND = False
 DEFAULT_COMPRESSED = True
 DEFAULT_MASKCLR = None
@@ -145,10 +144,6 @@
     if functionCompatibile != -1:
         functionCompatible = functionCompatibile
         
-    global app
-    if not wx.GetApp():
-        app = wx.PySimpleApp()
-        
     # convert the image file to a temporary file
     tfname = tempfile.mktemp()
     try:

--- End Message ---
--- Begin Message ---
Version: 3.0.2.0+dfsg-8+rm

Dear submitter,

as the package wxpython3.0 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/938834

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to