master2be1 / pychess

Automatically exported from code.google.com/p/pychess
GNU General Public License v3.0
0 stars 0 forks source link

Deprecated module #370

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With GNOME 2.24 and Python 2.6

linux:/home/linux/Desktop/pychess-0.10 # python
Python 2.6 (r26:66714, Nov  8 2008, 01:07:08) 
[GCC 4.3.2 [gcc-4_3-branch revision 141291]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

linux:/home/linux/Desktop/pychess-0.10 # PYTHONPATH=lib/ ./pychess
/home/linux/Desktop/pychess-0.10/lib/pychess/Players/engineNest.py:3:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, md5, imp

/home/linux/Desktop/pychess-0.10/lib/pychess/System/uistuff.py:367:
GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is
deprecated
  self.glade = gtk.glade.XML(addDataPrefix("glade/%s" % filename))

Original issue reported on code.google.com by leogregianin@gmail.com on 6 Jan 2009 at 3:59

GoogleCodeExporter commented 9 years ago
For the first problem we just change

import os, md5, imp

to

import os, imp
from hashlib import mp5

The second problem is a glade problem, so we can't really do anything against 
it.

Original comment by lobais on 6 Jan 2009 at 4:23

GoogleCodeExporter commented 9 years ago
Fixed the first problem. The glade problem should be resolved when pychess move 
to
glade 3.

Original comment by leogregianin@gmail.com on 11 Jan 2009 at 2:39

GoogleCodeExporter commented 9 years ago
Ah yes, moving to glade 3 will probably fix it.
I still don't like glade-3 too much though. If you create a hbox of size 3, 
there
seems to be no way to delete the middle or first dock without deleting 
everything.
I am using it more and more though, as glade-3 seems to be getting more 
compatible .

Original comment by lobais on 11 Jan 2009 at 9:58