[Mne_analysis] VTK Module Import Error | Anaconda Windows 10
Mar Tin
beetlejuice920 at gmail.com
Sun Jan 27 09:23:43 EST 2019
External Email - Use Caution
Dear mne-community,
first of all, thanks a lot for your great work on mne-python, I am
benefiting a lot from it.
I read the issue about vtk and pip, probably my problem is related to this
issue (https://github.com/mne-tools/mne-python/issues/5858).
This weekend, I tried to install mne-python according to your instructions
and got this *ModuleNotFoundError* when the wheel for mayavi was built:
*Building wheels for collected packages: mayavi Running setup.py
bdist_wheel for mayavi ... error Complete output from command
C:\Anaconda3\envs\mne\python.exe -u -c "import setuptools,
tokenize;__file__='C:\\Users\\RCHNER~1\\AppData\\Local\\Temp\\pip-req-build-b24h2ill\\setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d
C:\Users\RCHNER~1\AppData\Local\Temp\pip-wheel-q3jzjwws --python-tag cp36:
running bdist_wheel running build Traceback (most recent call last):
File "C:\Anaconda3\envs\mne\lib\site-packages\vtk\vtkIOImage.py", line 5,
in <module> from .vtkIOImagePython import * ImportError: DLL load
failed: Das angegebene Modul wurde nicht gefunden. During handling of the
above exception, another exception occurred: Traceback (most recent call
last): File "<string>", line 1, in <module> File
"C:\Users\RCHNER~1\AppData\Local\Temp\pip-req-build-b24h2ill\setup.py",
line 470, in <module> **config File
"C:\Anaconda3\envs\mne\lib\site-packages\numpy\distutils\core.py", line
169, in setup return old_setup(**new_attr) File
"C:\Anaconda3\envs\mne\lib\site-packages\setuptools\__init__.py", line 143,
in setup return distutils.core.setup(**attrs) File
"C:\Anaconda3\envs\mne\lib\distutils\core.py", line 148, in setup
dist.run_commands() File "C:\Anaconda3\envs\mne\lib\distutils\dist.py",
line 955, in run_commands self.run_command(cmd) File
"C:\Anaconda3\envs\mne\lib\distutils\dist.py", line 974, in
run_command cmd_obj.run() File
"C:\Anaconda3\envs\mne\lib\site-packages\wheel\bdist_wheel.py", line 188,
in run self.run_command('build') File
"C:\Anaconda3\envs\mne\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command) File
"C:\Anaconda3\envs\mne\lib\distutils\dist.py", line 974, in
run_command cmd_obj.run() File
"C:\Users\RCHNER~1\AppData\Local\Temp\pip-req-build-b24h2ill\setup.py",
line 268, in run build_tvtk_classes_zip() File
"C:\Users\RCHNER~1\AppData\Local\Temp\pip-req-build-b24h2ill\setup.py",
line 254, in build_tvtk_classes_zip gen_tvtk_classes_zip() File
"tvtk\setup.py", line 83, in gen_tvtk_classes_zip from tvtk.code_gen
import TVTKGenerator File
"C:\Users\RCHNER~1\AppData\Local\Temp\pip-req-build-b24h2ill\tvtk\code_gen.py",
line 10, in <module> import vtk_module as vtk File
"tvtk\vtk_module.py", line 15, in <module> from vtk import * File
"C:\Anaconda3\envs\mne\lib\site-packages\vtk\__init__.py", line 56, in
<module> from .vtkIOImage import * File
"C:\Anaconda3\envs\mne\lib\site-packages\vtk\vtkIOImage.py", line 9, in
<module> from vtkIOImagePython import * ModuleNotFoundError: No
module named 'vtkIOImagePython'*
I tried the same on another windows computer, and got the same error. The
installation on Ubuntu is working.
After *changing the channel in environment.yml to conda-forge*, the
environment and mayavi could be installed. But the versions of several
packages are lower than in the channel=default installation.
Those are the outputs of mne.sys_info() from the failed and the
conda-forge-environment:
Python 3.6.8 |Anaconda, Inc.| (default, Dec 30 2018, 18:50:55) [MSC v.1915
64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mne
>>> mne.sys_info()
Platform: Windows-10-10.0.17763-SP0
Python: 3.6.8 |Anaconda, Inc.| (default, Dec 30 2018, 18:50:55) [MSC
v.1915 64 bit (AMD64)]
Executable: C:\Anaconda3\envs\mne\python.exe
CPU: Intel64 Family 6 Model 158 Stepping 9, GenuineIntel: 8 cores
Memory: 15.9 GB
mne: 0.17.0
numpy: 1.15.4 {blas=mkl_rt, lapack=mkl_rt}
scipy: 1.2.0
matplotlib: 3.0.2 {backend=Qt5Agg}
sklearn: 0.20.2
nibabel: 2.3.3
mayavi: Not found
cupy: Not found
pandas: 0.24.0
dipy: Not found
Python 3.6.6 | packaged by conda-forge | (default, Jul 26 2018, 11:48:23)
[MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mne
>>> mne.sys_info()
C:\Anaconda3\envs\mne_cf\lib\site-packages\sklearn\externals\joblib\externals\cloudpickle\cloudpickle.py:47:
DeprecationWarning: the imp module is deprecated in favour of importlib;
see the module's documentation for alternative uses
import imp
Platform: Windows-10-10.0.17763-SP0
Python: 3.6.6 | packaged by conda-forge | (default, Jul 26 2018,
11:48:23) [MSC v.1900 64 bit (AMD64)]
Executable: C:\Anaconda3\envs\mne_cf\python.exe
CPU: Intel64 Family 6 Model 158 Stepping 9, GenuineIntel: 8 cores
Memory: 15.9 GB
mne: 0.17.0
numpy: 1.15.4 {blas=mkl_rt, lapack=mkl_rt}
scipy: 1.1.0
matplotlib: 3.0.0 {backend=Qt5Agg}
sklearn: 0.20.0
nibabel: 2.3.3
mayavi: 4.7.0.dev0 {qt_api=pyqt5, PyQt5=5.9.2}
cupy: Not found
pandas: 0.24.0
dipy: 0.13.0
I am a very beginner in conda and python and can't really understand the
problem. Is mne-python also working with the conda-forge-packages?
Kind regards,
Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190127/fa94e2d1/attachment.html
More information about the Mne_analysis
mailing list