Hi All,
I have changed the backend in matplotlibrc from GTKAgg to WX
#### CONFIGURATION BEGINS HERE
# the default backend; one of GTK GTKAgg GTKCairo FltkAgg QtAgg TkAgg
# WX WXAgg Agg Cairo GD GDK Paint PS PDF SVG Template
#backend : GTKAgg
backend : WX
Now I get
python -i nlp_3.py --verbose-helpful
$HOME=/home/nwagner
CONFIGDIR=/home/nwagner/.matplotlib
Bad key "text.markup" on line 154 in
/home/nwagner/.matplotlib/matplotlibrc.
You probably need to get an updated matplotlibrc file from
http://matplotlib.sf.net/matplotlibrc or from the matplotlib source
distribution
matplotlib data path /usr/local/lib64/python2.5/site-packages/matplotlib/mpl-data
loaded rc file /home/nwagner/.matplotlib/matplotlibrc
matplotlib version 0.98.0
verbose.level helpful
interactive is False
units is False
platform is linux2
Using fontManager instance from /home/nwagner/.matplotlib/fontManager.cache
numerix numpy 1.2.0.dev5282
backend WX version 2.6.3.3
···
-----------------------------------------------------
starting solver ipopt (license: CPL) with problem nlp3
[PyIPOPT] Ipopt will use Hessian approximation.
[PyIPOPT] nele_hess is 0
iter objFunVal log10(maxResidual)
0 -1.640e+02 0.81
Traceback (most recent call last):
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 1051, in _onSize
self.draw()
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 889, in draw
self.figure.draw(self.renderer)
File "/usr/local/lib64/python2.5/site-packages/matplotlib/figure.py", line 745, in draw
if self.frameon: self.figurePatch.draw(renderer)
File "/usr/local/lib64/python2.5/site-packages/matplotlib/patches.py", line 222, in draw
gc = renderer.new_gc()
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 359, in new_gc
self.gc = GraphicsContextWx(self.bitmap, self)
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 456, in __init__
gfx_ctx = wx.GraphicsContext.Create(dc)
AttributeError: 'module' object has no attribute 'GraphicsContext'
Traceback (most recent call last):
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 1051, in _onSize
self.draw()
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 889, in draw
self.figure.draw(self.renderer)
File "/usr/local/lib64/python2.5/site-packages/matplotlib/figure.py", line 745, in draw
if self.frameon: self.figurePatch.draw(renderer)
File "/usr/local/lib64/python2.5/site-packages/matplotlib/patches.py", line 222, in draw
gc = renderer.new_gc()
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 359, in new_gc
self.gc = GraphicsContextWx(self.bitmap, self)
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 456, in __init__
gfx_ctx = wx.GraphicsContext.Create(dc)
AttributeError: 'module' object has no attribute 'GraphicsContext'
Traceback (most recent call last):
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 1051, in _onSize
self.draw()
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 889, in draw
self.figure.draw(self.renderer)
File "/usr/local/lib64/python2.5/site-packages/matplotlib/figure.py", line 745, in draw
if self.frameon: self.figurePatch.draw(renderer)
File "/usr/local/lib64/python2.5/site-packages/matplotlib/patches.py", line 222, in draw
gc = renderer.new_gc()
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 359, in new_gc
self.gc = GraphicsContextWx(self.bitmap, self)
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 456, in __init__
gfx_ctx = wx.GraphicsContext.Create(dc)
AttributeError: 'module' object has no attribute 'GraphicsContext'
Traceback (most recent call last):
File "nlp_3.py", line 65, in <module>
r = p.solve(solver)
File "/usr/local/lib64/python2.5/site-packages/scikits/openopt/Kernel/BaseProblem.py", line 239, in solve
return runProbSolver(self, solvers, *args, **kwargs)
File "/usr/local/lib64/python2.5/site-packages/scikits/openopt/Kernel/runProbSolver.py", line 221, in runProbSolver
solver(p)
File "/usr/local/lib64/python2.5/site-packages/scikits/openopt/solvers/CoinOr/ipopt_oo.py", line 78, in __solver__
p.iterfcn(p.x0)
File "/usr/local/lib64/python2.5/site-packages/scikits/openopt/Kernel/BaseProblem.py", line 57, in <lambda>
self.iterfcn = lambda *args: ooIter(self, *args)# this parameter is only for OpenOpt developers, not common users
File "/usr/local/lib64/python2.5/site-packages/scikits/openopt/Kernel/ooIter.py", line 78, in ooIter
for df in p.graphics.drawFuncs: df(p)
File "/usr/local/lib64/python2.5/site-packages/scikits/openopt/Kernel/ooGraphics.py", line 127, in oodraw
if self.nSubPlots>1: pylab.subplot(self.nSubPlots, 1, 1)
File "/usr/local/lib64/python2.5/site-packages/matplotlib/pyplot.py", line 518, in subplot
fig = gcf()
File "/usr/local/lib64/python2.5/site-packages/matplotlib/pyplot.py", line 210, in gcf
return figure()
File "/usr/local/lib64/python2.5/site-packages/matplotlib/pyplot.py", line 200, in figure
draw_if_interactive()
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 1167, in draw_if_interactive
figManager.canvas.draw()
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 889, in draw
self.figure.draw(self.renderer)
File "/usr/local/lib64/python2.5/site-packages/matplotlib/figure.py", line 745, in draw
if self.frameon: self.figurePatch.draw(renderer)
File "/usr/local/lib64/python2.5/site-packages/matplotlib/patches.py", line 222, in draw
gc = renderer.new_gc()
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 359, in new_gc
self.gc = GraphicsContextWx(self.bitmap, self)
File "/usr/local/lib64/python2.5/site-packages/matplotlib/backends/backend_wx.py", line 456, in __init__
gfx_ctx = wx.GraphicsContext.Create(dc)
AttributeError: 'module' object has no attribute 'GraphicsContext'
Any idea ?
Nils