I've been receiving the error message
"matplotlib requires pygtk-1.99.16 or greater -- trying anyway. Please
hold on"
which is puzzling since I have pygtk 2.0 installed.
The message is triggered from this code in backend_gtk.py:
try: # todo: test this with default RHL8 install.
import pygtk
pygtk.require('2.0')
except:
print >>sys.stderr, 'matplotlib requires pygtk-1.99.16 or greater --
trying anyway. Please hold on'
The exception catches the error, but does not show you the error message
that pygtk.require('2.0') generates. I think it would be improved by
changing it to:
try: # todo: test this with default RHL8 install.
import pygtk
pygtk.require('2.0')
except:
print sys.exc_info()[1]
print >>sys.stderr, 'matplotlib requires pygtk-1.99.16 or greater --
trying anyway. Please hold on'
Which in my case, would then tell me:
"pygtk.require() must be called before importing gtk
matplotlib requires pygtk-1.99.16 or greater -- trying anyway. Please
hold on"
Which lets me know what I've done wrong.
Steve
···
--
Steve Chaplin <stevech1097@...41...>