pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py27-matplotlib graphics output?



Hi,

I'm no python programmer...  I'm however trying to use a script
which is using the py27-matplotlib library.  That script fails to
initialize and dumps the stack which ends in

  ...
  File "/usr/pkg/lib/python2.7/site-packages/matplotlib/pyplot.py", line 97, in 
<module>
    _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  File "/usr/pkg/lib/python2.7/site-packages/matplotlib/backends/__init__.py", 
line 25, in pylab_setup
    globals(),locals(),[backend_name])
  File 
"/usr/pkg/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py", 
line 11, in <module>
    import matplotlib.backends.tkagg as tkagg
  File "/usr/pkg/lib/python2.7/site-packages/matplotlib/backends/tkagg.py", 
line 2, in <module>
    from matplotlib.backends import _tkagg
ImportError: cannot import name _tkagg

In pkgsrc' graphics/py-matplotlib/Makefile I find

post-patch:
        ( echo "[directories]"; \
        echo "basedirlist=/usr"; \
        echo "[gui_support]"; \
        echo "gtk = False"; \
        echo "gtkagg = False"; \
        echo "tkagg = False"; \
        echo "wxagg = False" ) > ${WRKSRC}/setup.cfg

Does that mean that no graphical backend is enabled, and that I
need to re-build from source to use one of the graphical
backends?!?  If that isn't necessary, what do I need to do to fix
this error?

Confused,

- Håvard


Home | Main Index | Thread Index | Old Index