Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brain import error #12

Closed
christian-oreilly opened this issue Mar 17, 2018 · 2 comments
Closed

Brain import error #12

christian-oreilly opened this issue Mar 17, 2018 · 2 comments

Comments

@christian-oreilly
Copy link
Collaborator

Code:

from visbrain import Brain

Result:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-7-05c534653bd0> in <module>()
----> 1 from visbrain import Brain

~/python_venv/venv-3.4/lib/python3.5/site-packages/visbrain/__init__.py in <module>()
     21 
     22 # Import modules :
---> 23 from .brain import Brain
     24 from .colorbar import Colorbar
     25 from .figure import Figure

~/python_venv/venv-3.4/lib/python3.5/site-packages/visbrain/brain/__init__.py in <module>()
      1 """From the brain file, import the brain module."""
----> 2 from .brain import Brain

~/python_venv/venv-3.4/lib/python3.5/site-packages/visbrain/brain/brain.py in <module>()
      9 import logging
     10 
---> 11 import vispy.scene.cameras as viscam
     12 
     13 from .interface import UiInit, UiElements, BrainShortcuts

~/python_venv/venv-3.4/lib/python3.5/site-packages/vispy/scene/__init__.py in <module>()
     31 """
     32 
---> 33 from .visuals import *  # noqa
     34 from .cameras import *  # noqa
     35 from ..visuals.transforms import *  # noqa

~/python_venv/venv-3.4/lib/python3.5/site-packages/vispy/scene/visuals.py in <module>()
     16 import weakref
     17 
---> 18 from .. import visuals
     19 from .node import Node
     20 from ..visuals.filters import ColorFilter, PickingFilter

~/python_venv/venv-3.4/lib/python3.5/site-packages/vispy/visuals/__init__.py in <module>()
     21 from .histogram import HistogramVisual  # noqa
     22 from .infinite_line import InfiniteLineVisual  # noqa
---> 23 from .isocurve import IsocurveVisual  # noqa
     24 from .isoline import IsolineVisual  # noqa
     25 from .isosurface import IsosurfaceVisual  # noqa

~/python_venv/venv-3.4/lib/python3.5/site-packages/vispy/visuals/isocurve.py in <module>()
     16 _HAS_MPL = has_matplotlib()
     17 if _HAS_MPL:
---> 18     from matplotlib import _cntr as cntr
     19 
     20 

ImportError: cannot import name '_cntr'

Virtual environement:

!pip3 freeze

alabaster==0.7.10
apptools==4.4.0
astroid==1.6.2
Babel==2.5.3
beautifulsoup4==4.6.0
bibtexparser==0.6.2
biopython==1.70
bleach==2.1.3
bluepy==0.11.11
bluepy-configfile==0.1.4
-e git+ssh://[email protected]/project/proj55/thalamus_pipeline@038eae051f9d5c96313f34a3df0df53cec430626#egg=BlueThalamus&subdirectory=BlueThalamus
-e git+ssh://[email protected]/nse/brainbuilder@de6587f4230eed2829dbbc0f90998a2cd8019561#egg=brainbuilder
certifi==2017.11.5
chardet==3.0.4
click==6.7
cloudpickle==0.5.2
colorlover==0.2.1
configobj==5.0.6
cssselect==1.0.3
cycler==0.10.0
Cython==0.27.3
decorator==4.2.1
docutils==0.14
entrypoints==0.2.3
enum34==1.1.6
envisage==4.6.0
eutils==0.3.2
feedparser==5.2.1
future==0.16.0
gitdb2==2.0.3
GitPython==2.1.8
h5py==2.7.1
html5lib==1.0.1
idna==2.6
imagesize==1.0.0
ipykernel==4.8.2
ipython==6.2.1
ipython-genutils==0.2.0
ipywidgets==7.1.2
isort==4.3.4
jedi==0.11.1
Jinja2==2.10
jsonschema==2.6.0
jupyter==1.0.0
jupyter-client==5.2.2
jupyter-console==5.2.0
jupyter-core==4.4.0
kiwisolver==1.0.1
lazy==1.3
lazy-object-proxy==1.3.1
lxml==4.1.1
MarkupSafe==1.0
matplotlib==2.2.0
mayavi==4.5.0
mccabe==0.6.1
metapub==0.4.3.6
mistune==0.8.3
mne==0.16.dev0
-e git+https://github.com/BlueBrain/nat.git@63fa7e2a0828852e0c41423ea0d18c643a712295#egg=nat
nbconvert==5.3.1
nbformat==4.4.0
-e git+https://github.com/BlueBrain/NeuroM.git@10b10751e288328495e14c6185dd08d04224f1d3#egg=neurom
nibabel==2.2.1
nine==1.0.0
notebook==5.4.0
numexpr==2.6.4
numpy==1.14.2
numpy-stl==2.3.2
numpydoc==0.7.0
packaging==17.1
pandas==0.22.0
pandocfilters==1.4.2
parse==1.8.2
parso==0.1.1
pathlib==1.0.1
patsy==0.5.0
pexpect==4.4.0
pickleshare==0.7.4
Pillow==5.0.0
pkg-resources==0.0.0
plotly==2.4.1
pluggy==0.6.0
progressbar2==3.34.3
prompt-toolkit==1.0.15
psutil==5.4.3
ptyprocess==0.5.2
py==1.5.2
pycodestyle==2.3.1
pyface==5.1.0
pyflakes==1.6.0
Pygments==2.2.0
pylint==1.8.3
pylru==1.0.9
pynrrd==0.2.4
PyOpenGL==3.1.0
pyparsing==2.2.0
PyQt5==5.9.2
pysurfer==0.8.0
python-dateutil==2.7.0
python-ternary==1.0.3
python-utils==2.2.0
pytz==2018.3
PyYAML==3.12
pyzmq==17.0.0
Pyzotero==1.3.0
QtAwesome==0.4.4
qtconsole==4.3.1
QtPy==1.4.0
quantities==0.12.1
requests==2.18.4
rope==0.10.7
scikit-learn==0.19.1
scikits.bootstrap==0.3.3
scipy==1.0.0
seaborn==0.8.1
Send2Trash==1.5.0
Shapely==1.3.2
simplegeneric==0.8.1
sip==4.19.8
six==1.11.0
sklearn==0.0
smmap2==2.0.3
snowballstemmer==1.2.1
Sphinx==1.7.1
sphinxcontrib-websupport==1.0.1
spyder==3.2.8
spyndle==0.4.0
SQLAlchemy==1.2.1
statsmodels==0.8.0
tables==3.4.2
tabulate==0.8.2
terminado==0.8.1
testpath==0.3.1
tornado==5.0
tox==2.9.1
tqdm==4.19.6
traitlets==4.3.2
traits==4.6.0
traitsui==5.1.0
Unidecode==1.0.22
urllib3==1.22
virtualenv==15.1.0
visbrain==0.3.9
vispy==0.5.2
voxcell==2.3.4.dev1
voxcellview==2.1.1
vtk==8.1.0
Wand==0.4.4
wcwidth==0.1.7
webencodings==0.5.1
widgetsnbextension==3.1.4
wonambi==3.1
wrapt==1.10.11
@raphaelvallat
Copy link
Collaborator

Hi @christian-oreilly! Thanks for the feedback. Unfortunately, VisPy is not yet compatible with the latest version of matplotlib (2.2). Downgrading matplotlib to a previous version should fix the issue. Thanks!

@christian-oreilly
Copy link
Collaborator Author

Indeed it does. Thanks for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants