Pychess crash directly after starting

Bug #128300 reported by Wouter Stomp
22
Affects Status Importance Assigned to Milestone
pychess (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: pychess

On an uptodate gutsy install, pychess crashes directly after starting with the following error message:

Traceback (most recent call last):
  File "<string>", line 22, in <module>
  File "/usr/lib/python2.5/site-packages/pychess/Main.py", line 13, in <module>
    from pychess.widgets import ionest
  File "/usr/lib/python2.5/site-packages/pychess/widgets/ionest.py", line 79, in <module>
    loadSidePanel = BoardPreview.BoardPreview()
  File "/usr/lib/python2.5/site-packages/pychess/widgets/BoardPreview.py", line 65, in __init__
    self.add(self.widgets["mainvbox"])
TypeError: GtkContainer.add() argument 1 must be gtk.Widget, not None

Revision history for this message
Vincent Legout (vlegout) wrote :
Changed in pychess:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Wouter Stomp (wouterstomp-deactivatedaccount) wrote :

It happens because: "in gladelib for gnome 2.20 the widget disappars from 'widgets' when you unparrent it." (upstream developer) It is fixed in the latest svn version, revision 564. Could the ubuntu package be updated to this version??

Revision history for this message
Scott Kitterman (kitterman) wrote :

motu-uvf does not package stuff. It decides if it will get in after someone else has packaged it, so I've unsubscribed them from the bug.

Rather than jump to an svn snapshot late in the release cycle, it may be better to try and apply the patch to the current version in Gutsy. If someone will point me at the location for their SVN and the patch in question, I'll look at seeing if it solves the problem in the current version.

Revision history for this message
Wouter Stomp (wouterstomp-deactivatedaccount) wrote :

I got this response (meant to be posted here?) from Thomas Dybdahl Ahle, the main pychess developer:

He's probably right. We are close to 0.8 Philidor beta, but until then, I've backported the fix to the 0.6 branch, which you can check out by "svn checkout http://pychess.googlecode.com/svn/branches/0.6 pychess" I haven't tested it though, but it is the same fix as in Philidor, which is tested with a Gutsy tribe 5 livecd.

I can test it tomorrow on gutsy if needed.

Revision history for this message
Wouter Stomp (wouterstomp-deactivatedaccount) wrote :
Revision history for this message
Scott Kitterman (kitterman) wrote :

pychess (0.6.1-1ubuntu1) gutsy; urgency=low

  * Apply Glade widget patch provided by upstream (LP: #128300)
  * Change maintainter to MOTU

 -- Scott Kitterman <email address hidden> Sun, 09 Sep 2007 11:06:54 -0400

Changed in pychess:
status: Confirmed → Fix Released
Revision history for this message
Wouter Stomp (wouterstomp-deactivatedaccount) wrote :

Thanks!

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 128300] Re: Pychess crash directly after starting

No problem. Thanks for pointing out the patch. If you find patches for the
other pychess bugs, feel free to subscribe me to the bugs.

Revision history for this message
Vital Urbonavi (vital.urbonavi) wrote :

I would like to reopen the bug for pychess 0.8 beta 4.1 on AMD64 Hardy latest Alpha with latest updates.
Terminal output:
------
:~$ pychess
Traceback (most recent call last):
  File "/usr/games/pychess", line 41, in <module>
    pychess.Main.run(sys.argv[1:])
  File "/usr/lib/python2.5/site-packages/pychess/Main.py", line 468, in run
    PyChess(args)
  File "/usr/lib/python2.5/site-packages/pychess/Main.py", line 400, in __init__
    self.initGlade()
  File "/usr/lib/python2.5/site-packages/pychess/Main.py", line 433, in initGlade
    window["menubar1"].drag_dest_set(flags, dnd_list, gtk.gdk.ACTION_COPY)
TypeError: list items should be of form (string,int,int)

Revision history for this message
Scott Kitterman (kitterman) wrote :

Please file a new bug for this.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers