You are not logged in.

#1 2008-12-30 05:23:46

greyhat.goon
Member
From: SF Bay Area
Registered: 2008-05-05
Posts: 57

pychess 0.8.2-1 and Python 2.6

Hi,  I just installed pychess 0.8.2-1 but there seems to be a probem using it with Python 2.6  Here's what I'm seeing:

[campbell@cipher ~]$ pychess
/usr/lib/python2.5/site-packages/pychess/Players/engineNest.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, md5, imp
/usr/lib/python2.5/site-packages/pychess/Main.py:439: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  self.widgets = gtk.glade.XML(addDataPrefix("glade/PyChess.glade"))
[campbell@cipher ~]$

Beware of all enterprises that require new clothes....Thoreau

Offline

#2 2008-12-30 06:22:32

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: pychess 0.8.2-1 and Python 2.6

There is a problem with pycairo-1.8.0:
http://bugs.freedesktop.org/show_bug.cgi?id=19287

Offline

#3 2009-01-11 04:54:05

greyhat.goon
Member
From: SF Bay Area
Registered: 2008-05-05
Posts: 57

Re: pychess 0.8.2-1 and Python 2.6

pycario was just updated today to 1.8.0-2, but now I get a long list of problems with pychess:

$ pychess
/usr/lib/python2.5/site-packages/pychess/Players/engineNest.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, md5, imp
/usr/lib/python2.5/site-packages/pychess/Main.py:439: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  self.widgets = gtk.glade.XML(addDataPrefix("glade/PyChess.glade"))
Traceback (most recent call last):
  File "/usr/bin/pychess", line 88, in <module>
    pychess.Main.run(sys.argv[1:])
  File "/usr/lib/python2.5/site-packages/pychess/Main.py", line 487, in run
    PyChess(args)
  File "/usr/lib/python2.5/site-packages/pychess/Main.py", line 402, in __init__
    self.initGlade()
  File "/usr/lib/python2.5/site-packages/pychess/Main.py", line 449, in initGlade
    uistuff.keep(self["side_panel1"], "side_panel1")
  File "/usr/lib/python2.5/site-packages/pychess/System/uistuff.py", line 45, in keep
    raise AttributeError, "key '%s' isn't in widgets" % key
AttributeError: key 'side_panel1' isn't in widgets
$

Last edited by greyhat.goon (2009-01-11 04:55:18)


Beware of all enterprises that require new clothes....Thoreau

Offline

#4 2009-01-11 05:03:35

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: pychess 0.8.2-1 and Python 2.6

Hmmm.... I thought pychess was at 0.8.2-2.   I guess I never uploaded it.  Update will be available in the next hour + time for your mirror to sync.

Offline

#5 2009-01-11 05:27:43

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: pychess 0.8.2-1 and Python 2.6

BTW, it is just a simple rebuild so you could do that using ABS in the meantime.

Offline

#6 2009-01-12 06:17:20

greyhat.goon
Member
From: SF Bay Area
Registered: 2008-05-05
Posts: 57

Re: pychess 0.8.2-1 and Python 2.6

Well, both pycairo and pychess are the lastest versions:

$ pacman -Q pychess
pychess 0.8.2-2
$ pacman -Q pycairo
pycairo 1.8.0-2

Pychess still won't run and I get these error messages:

$ pychess
/usr/lib/python2.6/site-packages/pychess/Players/engineNest.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, md5, imp
/usr/lib/python2.6/site-packages/pychess/Main.py:439: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  self.widgets = gtk.glade.XML(addDataPrefix("glade/PyChess.glade"))
Traceback (most recent call last):
  File "/usr/bin/pychess", line 88, in <module>
    pychess.Main.run(sys.argv[1:])
  File "/usr/lib/python2.6/site-packages/pychess/Main.py", line 487, in run
    PyChess(args)
  File "/usr/lib/python2.6/site-packages/pychess/Main.py", line 402, in __init__
    self.initGlade()
  File "/usr/lib/python2.6/site-packages/pychess/Main.py", line 449, in initGlade
    uistuff.keep(self["side_panel1"], "side_panel1")
  File "/usr/lib/python2.6/site-packages/pychess/System/uistuff.py", line 45, in keep
    raise AttributeError, "key '%s' isn't in widgets" % key
AttributeError: key 'side_panel1' isn't in widgets

Is this a problem with pychess and python 2.6?


Beware of all enterprises that require new clothes....Thoreau

Offline

#7 2009-01-12 06:24:34

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: pychess 0.8.2-1 and Python 2.6

I only get this:

/usr/lib/python2.6/site-packages/pychess/Players/engineNest.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, md5, imp
/usr/lib/python2.6/site-packages/pychess/Main.py:439: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  self.widgets = gtk.glade.XML(addDataPrefix("glade/PyChess.glade"))

which is the same as your first two lines and are just warnings.  So I can not replicate this problem.

Try removing (backup first if you want) your ~/.pychessconf and ~/pychess/

Offline

#8 2009-01-12 06:48:26

greyhat.goon
Member
From: SF Bay Area
Registered: 2008-05-05
Posts: 57

Re: pychess 0.8.2-1 and Python 2.6

I removed ~/.pychessconf and ~/.pychess,  still get the same errors.

I also tried installing it from the AUR, still the same errors.

Last edited by greyhat.goon (2009-01-12 07:01:08)


Beware of all enterprises that require new clothes....Thoreau

Offline

#9 2009-01-12 07:39:39

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,384
Website

Re: pychess 0.8.2-1 and Python 2.6

I really have no idea....  Can you check you have no left over files in /usr/share/python2.5/site-packages/pychess ?

Offline

#10 2009-01-13 03:58:42

greyhat.goon
Member
From: SF Bay Area
Registered: 2008-05-05
Posts: 57

Re: pychess 0.8.2-1 and Python 2.6

Ah ha!!  I uninstalled pychess, deleted the directory /usr/share/pychess and then reinstalled pychess.  Now it works fine!!!
Thanks for the help.


Beware of all enterprises that require new clothes....Thoreau

Offline

Board footer

Powered by FluxBB