Bug 47300 - python-xlib-0.12-r1 and pypanel-1.1 works on amd64
Bug#: 47300 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: amd64@gentoo.org Reported By: hlobil@gmail.com
Component: Ebuilds
URL: 
Summary: python-xlib-0.12-r1 and pypanel-1.1 works on amd64
Keywords:  
Status Whiteboard: 
Opened: 2004-04-08 21:11 0000
Description:   Opened: 2004-04-08 21:11 0000
Please add "~amd64" to the KEYWORDS

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.50-r3 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
2.6.4-gentoo-r1)
=================================================================
System uname: 2.6.4-gentoo-r1 x86_64 4
Gentoo Base System version 1.4.6
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 apm arts avi berkdb crypt encode esd foomaticdb gdbm gif
gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mikmod motif mozilla mpeg
ncurses nls nogcj oggvorbis opengl oss pam pdflib perl png python qt quicktime
readline sdl slang spell ssl tcpd truetype xml2 xmms xv zlib"

------- Comment #1 From Danny van Dyk (RETIRED) 2004-04-15 15:25:57 0000 -------
Both packages seem to emerge fine, BUT...

dvandyk@phi qjackctl $ pypanel
/usr/lib/python2.3/site-packages/Xlib/display.py:30: DeprecationWarning: Non-ASCII character '\xf6' in file /usr/lib/python2.3/site-packages/Xlib/protocol/display.py on line 749, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
  import protocol.display
Segmentation fault

I tried to use it with xorg-x11 instead xfree.

Pavel: please report your version of X11

------- Comment #2 From Pavel 2004-04-19 08:09:47 0000 -------
I am using  x11-base/xorg-x11-6.7.0. All I can say is that my config[home
directory] file is from x86 machine. 

------- Comment #3 From Tom Martin (RETIRED) 2004-07-01 08:55:37 0000 -------
I added a magic comment (-*- coding: utf-8 -*-) to
/usr/lib/python2.3/site-packages/Xlib/protocol/display.py, and the PEP warning
is omitted, but still the same segfault. There doesn't seem to be any real
debugging output.

This bug doesn't /really/ seem to be related to the encoding PEP, but something
bigger and badder in python-xlib. I'd appreciate it lots and lots if someone
from another architecture could have a look.

------- Comment #4 From Jonathan Coome 2004-10-21 05:57:57 0000 -------
Re comment #1 - I get the same error, but no segfault. I'm currently using it
with xorg-x11-6.8.0-r1.

------- Comment #5 From Jonathan Coome 2004-10-21 06:26:14 0000 -------
And I'm using pypanel-1.3 for that matter... I didn't notice in my haste how
old the bug was...

------- Comment #6 From Tom Martin (RETIRED) 2004-10-27 02:07:32 0000 -------
python@gentoo.org: Any ideas guys?

------- Comment #7 From Eric Huff 2004-11-30 19:40:03 0000 -------
I get the same bug.

I am not on Gentoo, but I hope this info is helpful:

~ $ pypanel
/usr/lib/python2.3/site-packages/Xlib/display.py:30: DeprecationWarning: Non-ASCII character '\xf6' in file /usr/lib/python2.3/site-packages/Xlib/protocol/display.py on line 749, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
  import protocol.display

No seg fault, Pypanel does run, but as i switch desktops, the windows listed don't get erased.  The result is that after switching to a few desktops with windows in them, pypanel has a bunch of names written on top of each other.

My system:  
Intel Celeron
Mandrake 10.0 official (up to date on 2004-11-30)
kernel 2.6.3-7mdk

I compiled the imlib 2.0 myself, so the potential for error is there.
~ $ imlib2-config --version  == 1.1.2

~ $ Xorg -version
Release Date: 18 December 2003
X Protocol Version 11, Revision 0, Release 6.7
Build Operating System: Linux 2.6.4-1.tmb.5mdk i686 [ELF] 
Current Operating System: Linux cuda.ehuffy.com 2.6.3-7mdk #1 Wed Mar 17 15:56:42 CET 2004 i686
Build Date: 05 November 2004
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present

I'm also running pekwm, if that matters.

eric

------- Comment #8 From Tom Martin (RETIRED) 2004-12-17 06:29:22 0000 -------
Pypanel 2.0 works great for me.

Marked in CVS. Thanks all.