You are not logged in.

#1 2007-01-25 03:19:36

dmax
Member
Registered: 2006-10-21
Posts: 58

cant load pypanel

Traceback (most recent call last):
  File "/usr/bin/pypanel", line 957, in <module>
    PyPanel(display.Display())
  File "/usr/lib/python2.5/site-packages/Xlib/display.py", line 80, in __init__
    self.display = _BaseDisplay(display)
  File "/usr/lib/python2.5/site-packages/Xlib/display.py", line 67, in __init__
    apply(protocol.display.Display.__init__, (self, ) + args, keys)
  File "/usr/lib/python2.5/site-packages/Xlib/protocol/display.py", line 121, in __init__
    raise error.DisplayConnectionError(self.display_name, r.reason)
Xlib.error.DisplayConnectionError: Can't connect to display ":0.0": No protocol specified

Offline

#2 2007-01-28 11:52:25

dedhart
Member
Registered: 2006-07-02
Posts: 123

Re: cant load pypanel

I've been getting the same errors,  since the latest upgrade pypanel just stopped working.

Offline

#3 2007-01-28 12:01:37

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: cant load pypanel

Same errors here sad

Last edited by Crooksey (2007-01-28 12:02:49)


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#4 2007-01-28 12:07:11

arox1
Member
From: Poland
Registered: 2006-07-08
Posts: 174

Re: cant load pypanel

AFAIK pypanel won't work with python 2.5

Offline

#5 2007-01-30 12:19:55

dedhart
Member
Registered: 2006-07-02
Posts: 123

Re: cant load pypanel

So is Pypanel obsolete now? Should I use another panel or is there a way to get pypanel working again?

Offline

#6 2007-01-30 13:13:40

jwbirdsong
Member
From: Western KS USA
Registered: 2006-11-25
Posts: 173

Re: cant load pypanel

pacman -S python24 should do it.

Has worked with my other apps that didn't like python 2.5 but not sure about pypanel


PLEASE read and try to FIX/FILE BUGS instead of assuming other have/will.

Offline

#7 2007-01-30 14:16:14

_adam_
Member
From: Dora, Alabama
Registered: 2006-05-18
Posts: 94

Re: cant load pypanel

install python24 and run pypanel with:

python2.4 /usr/bin/pypanel

Offline

#8 2007-01-30 14:32:40

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: cant load pypanel

arox1 wrote:

AFAIK pypanel won't work with python 2.5

Why pypanel won't work with 2.5?

Last edited by fk (2007-01-30 14:32:54)


Have you tried to turn it off and on again?

Offline

#9 2007-01-31 01:43:34

yankees26
Member
From: Connecticut, USA
Registered: 2006-09-29
Posts: 190

Re: cant load pypanel

fk wrote:

Why pypanel won't work with 2.5?

There was probably a change in 2.5 with xlib for python or something and since pypanel is no longer actively developed problems are likely to arise.

Offline

#10 2007-01-31 02:53:05

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: cant load pypanel

Maybe it's just a question of rebuilding python-xlib and pypanel...

Offline

#11 2007-01-31 06:17:25

dedhart
Member
Registered: 2006-07-02
Posts: 123

Re: cant load pypanel

Snowman wrote:

Maybe it's just a question of rebuilding python-xlib and pypanel...

nope, trust me I tried just about everything. In the end, I commented out the testing repositories in pacman.conf, removed python24, manually updated all software that was in testing, then re-installed python-xlib and pypanel.

Offline

#12 2007-01-31 07:02:38

Mo
Member
Registered: 2007-01-18
Posts: 92

Re: cant load pypanel

You can also use python 2.5 and 2.4. Just install python24 and start pypanel with "python2.4 /usr/bin/pypanel".

Offline

#13 2007-02-02 12:14:40

snowbear
Member
From: Prague, Czech Republic
Registered: 2007-02-02
Posts: 11

Re: cant load pypanel

Works fine for me with python-2.5 & python-xlib-0.12.

Offline

#14 2007-02-04 01:20:56

dedhart
Member
Registered: 2006-07-02
Posts: 123

Re: cant load pypanel

Mo wrote:

You can also use python 2.5 and 2.4. Just install python24 and start pypanel with "python2.4 /usr/bin/pypanel".

How would I write that in .xinitrc ?

Offline

#15 2007-02-11 21:57:35

synorgy
Member
From: $HOME
Registered: 2005-07-11
Posts: 272
Website

Re: cant load pypanel

I'm having problems after installing python24.

python2.4 /usr/bin/pypanel gives the following (as both regular and root user):

# python2.4 /usr/bin/pypanel 
Traceback (most recent call last):
  File "/usr/bin/pypanel", line 892, in ?
    from ppmodule import ppinit, ppshade, ppicon, ppfont, ppfontsize, ppclear
ImportError: No module named ppmodule

I've googled the last line and nothing turns up. Am I doing something wrong?

Last edited by synorgy (2007-02-11 21:58:19)


"Unix is basically a simple operating system, but you have to be a genius to understand the simplicity." (Dennis Ritchie)

Offline

#16 2007-02-27 08:07:28

dabox
Member
From: Czech republic
Registered: 2006-06-28
Posts: 10

Re: cant load pypanel

This is a problem with Python-Xlib. Under certain conditions, the receive buffer size isn't large enough. To fix it, open the following file:

/usr/lib/python<version>/site-packages/Xlib/protocol/display.py

and change line 530

FROM:

recv = self.socket.recv(2048)

TO:

recv = self.socket.recv(4096)

4096 should be large enough ..

Last edited by dabox (2007-02-27 08:08:46)

Offline

#17 2007-03-19 11:44:14

ourcach
Member
Registered: 2006-09-21
Posts: 7

Re: cant load pypanel

Whith python 2.4 works fine!
tanks

Offline

#18 2007-03-21 17:24:40

phydeaux
Member
Registered: 2005-06-13
Posts: 68

Re: cant load pypanel

I found a fix for the original problem in the xlib bug tracker http://sourceforge.net/tracker/index.ph … tid=110350
The new xauth.py got pypanel working for me in 2.5 with xlib 0.13

andy

Offline

Board footer

Powered by FluxBB