You are not logged in.
Pages: 1
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
There is a problem with pycairo-1.8.0:
http://bugs.freedesktop.org/show_bug.cgi?id=19287
Offline
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
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
BTW, it is just a simple rebuild so you could do that using ABS in the meantime.
Offline
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
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
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
I really have no idea.... Can you check you have no left over files in /usr/share/python2.5/site-packages/pychess ?
Offline
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
Pages: 1