EtienneCmb / visbrain

A multi-purpose GPU-accelerated open-source suite for brain data visualization
http://visbrain.org
Other
241 stars 65 forks source link

Import error: cannot import _cntr #13

Closed woolgathering closed 6 years ago

woolgathering commented 6 years ago

Getting this error on trying to import visbrain:

>>> import visbrain
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/roger/Documents/jacob/pieces/eoiayidbyII/eoiaw/lib/python3.6/site-packages/visbrain/__init__.py", line 23, in <module>
    from .brain import Brain
  File "/home/roger/Documents/jacob/pieces/eoiayidbyII/eoiaw/lib/python3.6/site-packages/visbrain/brain/__init__.py", line 2, in <module>
    from .brain import Brain
  File "/home/roger/Documents/jacob/pieces/eoiayidbyII/eoiaw/lib/python3.6/site-packages/visbrain/brain/brain.py", line 11, in <module>
    import vispy.scene.cameras as viscam
  File "/home/roger/Documents/jacob/pieces/eoiayidbyII/eoiaw/lib/python3.6/site-packages/vispy/scene/__init__.py", line 33, in <module>
    from .visuals import *  # noqa
  File "/home/roger/Documents/jacob/pieces/eoiayidbyII/eoiaw/lib/python3.6/site-packages/vispy/scene/visuals.py", line 18, in <module>
    from .. import visuals
  File "/home/roger/Documents/jacob/pieces/eoiayidbyII/eoiaw/lib/python3.6/site-packages/vispy/visuals/__init__.py", line 23, in <module>
    from .isocurve import IsocurveVisual  # noqa
  File "/home/roger/Documents/jacob/pieces/eoiayidbyII/eoiaw/lib/python3.6/site-packages/vispy/visuals/isocurve.py", line 18, in <module>
    from matplotlib import _cntr as cntr
ImportError: cannot import name '_cntr'

I'm on Python 3.6.5rc1, all packages installed today from pip. In my poking around I found this: https://stackoverflow.com/questions/49160142/how-should-cntr-should-be-imported-on-matplotlib-lts-2-2-0 Must one use an old version of matplotlib?

EtienneCmb commented 6 years ago

Hello @woolgathering , thanks for your feedback. Indeed, this issue is related to the _cntr module of matplotlib.

woolgathering commented 6 years ago

Got it; I'll install vispy from github as I don't need isocurve.