Open Ecauchy opened 6 years ago
Hi, I also have the same problem and would appreciate any help to resolve this issue.
I'm using Windows 10 (64 bit) and Python 3.6.5 |Anaconda, Inc.| [MSC v.1900 64 bit (AMD64)]
@Ecauchy -- please let us know how exactly you did the install? I have no idea which version anaconda ships. Right now if you have numpy installed you should be able to pip install mayavi
. On your platform, you should be able to do pip install pyqt5 mayavi
and it should work. Uninstall anaconda's version of mayavi and VTK though.
@prabhuramachandran Just used conda install mayavi
. Yes, I do have numpy installed, and I've worked on it for several months perfectly.
The anaconda version of mayavi is mayavi: 4.6.0-py36_vc14_0 conda-forge [vc14]
.
I have the same issue when installing mayavi 4.6.0 (and vtk 8.1.1) from the conda-forge repository. Motivated by the previous comment from @Ecauchy, I checked the version history at conda-forge: It was only recently updated from mayavi 4.5.0 (and vtk 7.1.1).
Installing/Reverting to mayavi 4.5.0 (and vtk 7.1.1) from conda-forge is working.
@Ecauchy, @christian-drescher -- can you let me know if removing the conda-forge package and then just doing a pip install of vtk and mayavi works? If so, then this is a conda-forge issue and nothing to do with Mayavi.
Although it would help to know if it is the VTK package or Mayavi package that has a problem. What if you installed vtk 7.1.1 from conda-forge and pip install mayavi?
I have the same problem
try this version of vtk, it works on my pc(win10 py3.6)
conda install -c viscid-hub vtk
@prabhuramachandran, this is to acknowledge your request but I have to pass on pip install anything when there is no wheels blob. (I find it troublesome to setup all build tools with restricted rights on my corporate machine.)
Having vtk in the __requires__
list in mayavi/__init__.py
causes this error. Since only the python wheel version from pypi will provide a distribution for vtk this does not work with any other means of installing vtk (e.g. using conda as many people do). I build a mayavi package myself and have removed the vtk from the __requires__
in order to work with my conda based vtk.
@bergtholdt -- Thank you for that. This is unfortunate and another irritating aspect of the different ways we have to package and install things in the Python world. Sigh. So what are we to do now? If I do not have it in the requires then people cannot just run pip install mayavi
and expect things to work for the most part. Is this a problem with conda? I am not sure that only a python wheel from pypi has the right to provide a distribution, pip should pick up any installed package typically unless conda is doing something different, no?
Should we ask the question to the conda developers?
Sent from my phone. Please forgive typos and briefness.
On Jun 21, 2018, 16:30, at 16:30, Prabhu Ramachandran notifications@github.com wrote:
@bergtholdt -- Thank you for that. This is unfortunate and another irritating aspect of the different ways we have to package and install things in the Python world. Sigh. So what are we to do now? If I do not have it in the requires then people cannot just run
pip install mayavi
and expect things to work for the most part. Is this a problem with conda? I am not sure that only a python wheel has the right to provide a distribution, pip should pick up any installed package typically unless conda is doing something different, no?-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/enthought/mayavi/issues/652#issuecomment-399123941
@GaelVaroquaux -- would be great if someone did. Just let me know what the best way to resolve this would be. I will be meeting folks at SciPy this year so can address it then but in the meanwhile it would help if someone could throw some light on this.
I don't think it has anything to do with the wheel coming from pypi. Just a normal installation via a CMake install mechanism in the standard vtk wrappers does not seem to provide a "distribution" (in the jargon of setuptools / pkg_resources) and so we get this DistributionNotFound error when we import mayavi.mlab. Hopefully the conda-forge maintainers for vtk will be able to provide the package with "distribution support" so that that the __requires__
section in mayavi can be as it is now. So I would suggest to ask the conda-forge maintainers for the vtk recipe to update the recipe using the mechanism from https://github.com/jcfr/VTKPythonPackage, but in a conda compatible way.
@prabhuramachandran -- can we talk at sprints this weekend? I'm part of conda-forge and would like to see this get resolved 😀
(I should add that I'll need help understanding the problem and how VTKPythonPackage solves it).
@mwcraig -- yes, sure, I plan to be at the sprints tomorrow.
Should it work now? I have the same problem. I'm using 64-bit Python 3.6.5 with Miniconda.
It ought to IIRC, Matt fixed this at SciPy and the PR has been merged. See the other PR listed above if there are issues. I just tested on Python 3.6 and it does seem to be resolved and fixed. So try installing the conda-forge VTK package and then pip install Mayavi. Closing this as the issue is now resolved.
I have the same problem try this version of vtk, it works on my pc(win10 py3.6)
conda install -c viscid-hub vtk
i meet the same problem and i solved by using your commands. thanks! But how do you get this commands?
Hi, this problem is still on. I solve it with conda install -c viscid-hub vtk but for every update, conda updates vtk. So i breaks again. Can you please fix it?
Hi, I've also this problem. I use conda and conda-forge to install mayavi and vtk, the win64 versions. I use the viscid-hub workaround but, as said above, it is not very convenient.
Thank you in advance for considering this issue again.
Can someone who is having this problem please report which version of vtk is installed when you have the problem?
I won't have time to look at this for at least a week or two but if you can recreate the problem and then paste the output of conda list
here that would be helpful...
Here is the output of a test environment to show the problem, and created with
conda install python=3.6.5
conda install -c conda-forge mayavi
(maya) λ conda list
# packages in environment at C:\Python\Anaconda64\envs\maya:
#
# Name Version Build Channel
apptools 4.4.0 py36_2 conda-forge
blas 1.0 mkl
ca-certificates 2018.10.15 ha4d7672_0 conda-forge
certifi 2018.10.15 py36_1000 conda-forge
configobj 5.0.6 py_0 conda-forge
envisage 4.7.0 py_0 conda-forge
expat 2.2.5 vc14_0 [vc14] conda-forge
freetype 2.8.1 vc14_0 [vc14] conda-forge
future 0.16.0 py36_1002 conda-forge
icc_rt 2017.0.4 h97af966_0
icu 58.2 vc14_0 [vc14] conda-forge
intel-openmp 2019.0 118
jpeg 9b vc14_2 [vc14] conda-forge
libflang 5.0.0 vc14_20180208 [vc14] conda-forge
libiconv 1.14 vc14_4 [vc14] conda-forge
libpng 1.6.34 vc14_0 [vc14] conda-forge
libtiff 4.0.9 vc14_0 [vc14] conda-forge
libxml2 2.9.5 vc14_1 [vc14] conda-forge
llvm-meta 5.0.0 0 conda-forge
mayavi 4.6.2 py36h2913537_1 conda-forge
mkl 2019.0 118
mkl_fft 1.0.6 py36_0 conda-forge
mkl_random 1.0.1 py36_0 conda-forge
numpy 1.15.2 py36ha559c80_0
numpy-base 1.15.2 py36h8128ebf_0
openmp 5.0.0 vc14_1 [vc14] conda-forge
openssl 1.0.2o vc14_0 [vc14] conda-forge
pip 10.0.1 py36_0
pyface 6.0.0 py_1 conda-forge
pygments 2.2.0 py_1 conda-forge
pyqt 5.6.0 py36h764d66f_7 conda-forge
python 3.6.5 h0c2934d_0
qt 5.6.2 vc14_1 [vc14] conda-forge
setuptools 40.4.3 py36_0
sip 4.18.1 py36h6538335_0 conda-forge
six 1.11.0 py36_1001 conda-forge
tbb 2018_20171205 vc14_0 [vc14] conda-forge
traits 4.6.0 py36hfa6e2cd_1002 conda-forge
traitsui 6.0.0 py_1 conda-forge
vc 14 0 conda-forge
vs2015_runtime 14.15.26706 h3a45250_0
vtk 8.1.0 py36_vc14h3f2a929_203 [vc14] conda-forge
wheel 0.32.1 py36_0
wincertstore 0.2 py36h7fe50ca_0
zlib 1.2.11 vc14_0 [vc14] conda-forge
(maya) λ python
Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import vtk
>>> import mayavi
>>> from mayavi import mlab
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python\Anaconda64\envs\maya\lib\site-packages\mayavi\mlab.py", line 16, in <module>
from mayavi.tools.camera import view, roll, yaw, pitch, move
File "C:\Python\Anaconda64\envs\maya\lib\site-packages\mayavi\tools\camera.py", line 24, in <module>
from .engine_manager import get_engine
File "C:\Python\Anaconda64\envs\maya\lib\site-packages\mayavi\tools\engine_manager.py", line 14, in <module>
from mayavi.core.engine import Engine
File "C:\Python\Anaconda64\envs\maya\lib\site-packages\mayavi\core\engine.py", line 34, in <module>
from mayavi.core.ui.mayavi_scene import viewer_factory
File "C:\Python\Anaconda64\envs\maya\lib\site-packages\mayavi\core\ui\mayavi_scene.py", line 12, in <module>
from tvtk.tools.ivtk import IVTK
File "C:\Python\Anaconda64\envs\maya\lib\site-packages\tvtk\tools\ivtk.py", line 35, in <module>
from tvtk.pyface.api import Scene, DecoratedScene
File "C:\Python\Anaconda64\envs\maya\lib\site-packages\tvtk\pyface\api.py", line 1, in <module>
from .decorated_scene import DecoratedScene
File "C:\Python\Anaconda64\envs\maya\lib\site-packages\tvtk\pyface\decorated_scene.py", line 12, in <module>
from tvtk.pyface.toolkit import toolkit_object
File "C:\Python\Anaconda64\envs\maya\lib\site-packages\tvtk\pyface\toolkit.py", line 3, in <module>
toolkit = toolkit_object = find_toolkit('tvtk.toolkits')
File "C:\Python\Anaconda64\envs\maya\lib\site-packages\pyface\base_toolkit.py", line 263, in find_toolkit
return import_toolkit(ETSConfig.toolkit, entry_point)
File "C:\Python\Anaconda64\envs\maya\lib\site-packages\pyface\base_toolkit.py", line 217, in import_toolkit
toolkit_object = plugin.load()
File "C:\Python\Anaconda64\envs\maya\lib\site-packages\pkg_resources\__init__.py", line 2331, in load
self.require(*args, **kwargs)
File "C:\Python\Anaconda64\envs\maya\lib\site-packages\pkg_resources\__init__.py", line 2354, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "C:\Python\Anaconda64\envs\maya\lib\site-packages\pkg_resources\__init__.py", line 781, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'vtk' distribution was not found and is required by the application
>>>
Can someone who is having this problem please report which version of vtk is installed when you have the problem?
I won't have time to look at this for at least a week or two but if you can recreate the problem and then paste the output of
conda list
here that would be helpful...
Version: anaconda3-5.0.1 System: MacOS
Meet the same problem when from mayavi import mlab
.
Traceback (most recent call last):
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/IPython/core/interactiveshell.py", line 2963, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-57-67847bc6bfd0>", line 1, in <module>
from mayavi import mlab
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 19, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/mayavi/mlab.py", line 16, in <module>
from mayavi.tools.camera import view, roll, yaw, pitch, move
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 19, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/mayavi/tools/camera.py", line 24, in <module>
from .engine_manager import get_engine
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 19, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/mayavi/tools/engine_manager.py", line 12, in <module>
from mayavi.preferences.api import preference_manager
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 19, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/mayavi/preferences/api.py", line 4, in <module>
from .preference_manager import preference_manager
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 19, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/mayavi/preferences/preference_manager.py", line 29, in <module>
from traitsui.api import View, Group, Item
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 19, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/traitsui/api.py", line 36, in <module>
from .editors.api import ArrayEditor
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 19, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/traitsui/editors/__init__.py", line 23, in <module>
from .api import ArrayEditor
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 19, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/traitsui/editors/api.py", line 24, in <module>
from .code_editor import CodeEditor
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 19, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/traitsui/editors/code_editor.py", line 37, in <module>
class ToolkitEditorFactory(EditorFactory):
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/traitsui/editors/code_editor.py", line 49, in ToolkitEditorFactory
mark_color = Color(0xECE9D8)
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/traits/traits.py", line 522, in __call__
return self.maker_function( *args, **metadata )
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/traits/traits.py", line 1236, in Color
return ColorTrait( *args, **metadata )
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/traitsui/toolkit_traits.py", line 8, in ColorTrait
return toolkit().color_trait(*args, **traits)
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/traitsui/toolkit.py", line 109, in toolkit
_toolkit = find_toolkit('traitsui.toolkits')
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/pyface/base_toolkit.py", line 281, in find_toolkit
return import_toolkit('null', entry_point)
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/pyface/base_toolkit.py", line 209, in import_toolkit
raise RuntimeError(msg)
RuntimeError: No traitsui.toolkits plugin found for toolkit null
I install the VTK and Mayavi by:
conda install -c conda-forge vtk
conda install -c conda-forge mayavi
# packages in environment at /Users/user/.pyenv/versions/anaconda3-5.0.1:
#
# Name Version Build Channel
_ipyw_jlab_nb_ext_conf 0.1.0 py35h0f4cdc0_0
alabaster 0.7.10 py35hb692fe1_0
anaconda custom py35hd7b5ba2_0
anaconda-client 1.6.14 py35_0
anaconda-navigator 1.8.7 py35_0
anaconda-project 0.8.2 py35ha24014a_0
appnope 0.1.0 py35hd172556_0
appscript 1.0.1 py35hdfff33c_1
apptools 4.4.0 py35_2 conda-forge
asn1crypto 0.24.0 py35_0
astroid 1.6.5 py35_0
astropy 3.0.3 py35h1de35cc_2
atomicwrites 1.1.5 py35_0
attrs 18.1.0 py35_0
babel 2.6.0 py35_0
backcall 0.1.0 py35_0
backports 1.0 py35h2556c16_1
backports.shutil_get_terminal_size 1.0.0 py35h40fcb1f_2
beautifulsoup4 4.6.0 py35hb75f182_1
bitarray 0.8.2 py35h1de35cc_0
bkcharts 0.2 py35h18a45e2_0
blas 1.0 mkl
blaze 0.11.3 py35h385aa17_0
bleach 2.1.3 py35_0
blosc 1.14.3 hd9629dc_0
bokeh 0.12.16 py35_0
boto 2.48.0 py35h10f7326_1
bottleneck 1.2.1 py35h969083f_0
bzip2 1.0.6 h1de35cc_5
ca-certificates 2018.10.15 ha4d7672_0 conda-forge
cairo 1.14.12 he60d9cb_2
certifi 2018.8.24 py35_1001 conda-forge
cffi 1.11.5 py35h342bebf_0
chardet 3.0.4 py35h16a84c2_1
click 6.7 py35hcc65ea6_0
cloudpickle 0.5.3 py35_0
clyent 1.2.2 py35h63ae3d7_0
colorama 0.3.9 py35h1d66b2b_0
conda 4.5.11 py35_0 conda-forge
conda-build 3.10.9 py35_0
conda-env 2.6.0 h36134e3_0
conda-verify 2.0.0 py35h2ddbee6_0
configobj 5.0.6 py_0 conda-forge
contextlib2 0.5.5 py35hc2c67b4_0
coverage 4.5.1 <pip>
cryptography 2.2.2 py35h1de35cc_0
curl 7.60.0 ha441bb4_0
cycler 0.10.0 py35hb89929e_0
Cython 0.23 <pip>
Cython 0.28.2 <pip>
cython 0.28.3 py35h1de35cc_0
cytoolz 0.9.0.1 py35h1de35cc_0
dask 0.18.0 py35_0
dask-core 0.18.0 py35_0
datashape 0.5.4 py35hd065018_0
dbus 1.13.2 h760590f_1
decorator 4.3.0 py35_0
dill 0.2.8.2 py35_0 anaconda
distributed 1.22.0 py35_0
docutils 0.14 py35hb13dbd9_0
entrypoints 0.2.3 py35h837ec6f_2
envisage 4.7.0 py_0 conda-forge
et_xmlfile 1.0.1 py35h40eb147_0
expat 2.2.5 hb8e80ba_0
fastcache 1.0.2 py35h1de35cc_2
ffmpeg 4.0 hc84425e_0
filelock 3.0.4 py35_0
flask 1.0.2 py35_1
flask-cors 3.0.4 py35_0
fontconfig 2.12.6 h9850fc5_0
freetype 2.8 h12048fb_1
future 0.16.0 <pip>
future 0.16.0 py35_2 anaconda
get_terminal_size 1.0.0 h7520d66_0
gettext 0.19.8.1 h15daf44_3
gevent 1.3.2.post0 py35h1de35cc_0
giflib 5.1.4 h1035379_1
glib 2.56.1 h35bc53a_0
glob2 0.6 py35hdef87b6_0
gmp 6.1.2 hb37e062_1
gmpy2 2.0.8 py35h212fb8a_2
graphite2 1.3.11 h2098e52_2
greenlet 0.4.13 py35h1de35cc_0
h2o 3.20.0.7 py35_0 h2oai
h2o-py 3.18.0.2 py35_0
h5py 2.8.0 py35hd30518d_0 anaconda
harfbuzz 1.7.6 h171471c_1
hdf5 1.8.18 h017327d_1 anaconda
heapdict 1.0.0 py35_2
html5lib 1.0.1 py35h2f9c1c0_0
icu 58.2 h4b95b61_1
idna 2.6 py35h01aacb0_1
imageio 2.3.0 py35_0
imagesize 1.0.0 py35_0
intel-openmp 2018.0.3 0
ipykernel 4.8.2 py35_0
ipython 6.4.0 py35_0
ipython_genutils 0.2.0 py35hf129286_0
ipywidgets 7.2.1 py35_0
isort 4.3.4 py35_0
itsdangerous 0.24 py35hfbd69cd_1
jasper 2.0.14 h636a363_1
jbig 2.1 h4d881f8_0
jdcal 1.4 py35_0
jedi 0.12.0 py35_1
jinja2 2.10 py35h6ff70ae_0
jpeg 9b he5867d9_2
jsoncpp 1.8.4 h04f5b5a_0 anaconda
jsonschema 2.6.0 py35h2dd9e4b_0
jupyter 1.0.0 py35_4
jupyter_client 5.2.3 py35_0
jupyter_console 5.2.0 py35hd2aa692_1
jupyter_core 4.4.0 py35h4ad9194_0
jupyterlab 0.32.1 py35_0
jupyterlab_launcher 0.10.5 py35_0
Kivy-Garden 0.1.4 <pip>
kiwisolver 1.0.1 py35h219a9d8_0
lazy-object-proxy 1.3.1 py35h7293e74_0
libcurl 7.60.0 hf30b1f0_0
libcxx 4.0.1 h579ed51_0
libcxxabi 4.0.1 hebd6815_0
libedit 3.1.20170329 hb402a30_2
libffi 3.2.1 h475c297_4
libgfortran 3.0.1 h93005f0_2
libiconv 1.15 hdd342a3_7
libopenblas 0.2.20 hdc02c5d_7
libopencv 3.4.1 he076b03_1 anaconda
libopus 1.2.1 h169cedb_0
libpng 1.6.34 he12f830_0
libprotobuf 3.5.2 h2cd40f5_0
libsodium 1.0.16 h3efe00b_0
libssh2 1.8.0 h322a93b_4
libtiff 4.0.9 hcb84e12_1
libvpx 1.7.0 h378b8a2_0
libwebp 0.5.2 7 conda-forge
libxml2 2.9.8 hab757c2_1
libxslt 1.1.32 hb819dd2_0
llvmlite 0.23.1 py35hc454e04_0
locket 0.2.0 py35h58cf053_1
lxml 4.2.1 py35h7166777_0
lzo 2.10 h362108e_2
markupsafe 1.0 py35h9ba0a7f_1
matplotlib 2.2.2 py35ha7267d0_0
mayavi 4.6.2 py35h18b3941_1 conda-forge
mccabe 0.6.1 py35h3f6a9a1_0
mistune 0.8.3 py35h1de35cc_1
mkl 2018.0.3 1
mkl-service 1.1.2 py35h6a6947a_4
mkl_fft 1.0.1 py35h917ab60_0
mkl_random 1.0.1 py35h78cc56f_0
more-itertools 4.2.0 py35_0
mpc 1.0.3 h7a72875_5
mpfr 3.1.5 h711e7fd_2
mpmath 1.0.0 py35he743aed_2
msgpack 0.5.6 <pip>
msgpack-python 0.5.6 py35h04f5b5a_0
multipledispatch 0.5.0 py35_0
navigator-updater 0.2.1 py35_0
nbconvert 5.3.1 py35h63fb950_0
nbformat 4.4.0 py35h41c2038_0
ncurses 6.1 h0a44026_0
networkx 2.1 py35_0
nltk 3.3.0 py35_0
nose 1.3.7 py35h9ce1e3a_2
notebook 5.5.0 py35_0
numba 0.38.0 py35h1702cab_0
numexpr 2.6.5 py35h057f876_0
numpy 1.13.3 py35ha9ae307_4 anaconda
numpy-base 1.14.5 py35ha9ae307_0
numpydoc 0.8.0 py35_0
odo 0.5.1 py35h7f7a387_0
olefile 0.45.1 py35_0
openblas 0.2.20 4
openblas-devel 0.2.20 7
opencv 3.4.1 py35h40b0b35_2 anaconda
openjdk 8.0.152 h393ad39_1
openpyxl 2.5.4 py35_0
openssl 1.0.2p h470a237_1 conda-forge
packaging 17.1 py35_0
pandas 0.23.1 py35h1702cab_0
pandastable 0.9.0 <pip>
pandastable 0.7.1 py35_0 dmnfarrell
pandoc 1.19.2.1 ha5e8f32_1
pandocfilters 1.4.2 py35hff87490_1
parso 0.2.1 py35_0
partd 0.3.8 py35h6fadee7_0
path.py 11.0.1 py35_0
pathlib2 2.3.2 py35_0
patsy 0.5.0 py35_0
pcre 8.42 h378b8a2_0
pep8 1.7.1 py35_0
pexpect 4.6.0 py35_0
pickleshare 0.7.4 py35h9517181_0
pillow 5.1.0 py35hfcce615_0
pip 10.0.1 py35_0
pixman 0.34.0 hca0a616_3
pkginfo 1.4.2 py35_1
pluggy 0.6.0 py35hf57b818_0
ply 3.11 py35_0
prompt_toolkit 1.0.15 py35h93950c5_0
psutil 5.4.6 py35h1de35cc_0
ptyprocess 0.5.2 py35hfc37984_0
py 1.5.3 py35_0
py-opencv 3.4.1 py35ha6b5d2e_1 anaconda
pycodestyle 2.4.0 py35_0
pycosat 0.6.3 py35h745f8c1_0
pycparser 2.18 py35hab820b0_1
pycrypto 2.6.1 py35h1de35cc_8
pycurl 7.43.0.2 py35hdbc3d79_0
pyface 6.0.0 py_1 conda-forge
pyflakes 2.0.0 py35_0
pygments 2.2.0 py35h392a662_0
pylint 1.9.2 py35_0
pyodbc 4.0.23 py35h0a44026_0
pyopengl 3.1.1a1 np113py35_0 anaconda
pyopenssl 18.0.0 py35_0
pyparsing 2.2.0 py35h31fab04_0
pyqt 5.9.2 py35h11d3b92_0
pyqtgraph 0.10.0 py35_0 anaconda
pysocks 1.6.8 py35_0
pytables 3.4.4 py35h4425412_0 anaconda
pytest 3.6.1 py35_0
pytest-arraydiff 0.2 py35_0
pytest-astropy 0.4.0 py35_0
pytest-doctestplus 0.1.3 py35_0
pytest-openfiles 0.3.0 py35_0
pytest-remotedata 0.3.0 py35_0
python 3.5.5 h0a44026_3
python-dateutil 2.7.3 py35_0
python.app 2 py35he4d1c94_7
pytz 2018.4 py35_0
pywavelets 0.5.2 py35h9dc8fb8_0
pyyaml 3.12 py35hf8cec8a_1
pyzmq 17.0.0 py35h1de35cc_1
qt 5.9.5 h02808f3_0
qtawesome 0.4.4 py35h21e61ad_0
qtconsole 4.3.1 py35hd6d667b_0
qtpy 1.4.2 py35_0
readline 7.0 hc1231fa_4
requests 2.18.4 py35h0d65e6b_1
rope 0.10.7 py35h27868a4_0
ruamel_yaml 0.15.37 py35h1de35cc_2
scikit-image 0.13.1 py35h1de35cc_1
scikit-learn 0.19.1 py35h2b554eb_0
scipy 1.1.0 py35hcaad992_0
seaborn 0.8.1 py35he0bbe96_0
send2trash 1.5.0 py35_0
setuptools 39.2.0 py35_0
simplegeneric 0.8.1 py35_2
singledispatch 3.4.0.3 py35h0acf360_0
sip 4.19.8 py35h0a44026_0
six 1.11.0 py35h39a4c60_1
snappy 1.1.7 he62c110_3
snowballstemmer 1.2.1 py35hbb7be01_0
sortedcollections 1.0.1 py35_0
sortedcontainers 2.0.4 py35_0
sphinx 1.7.5 py35_0
sphinxcontrib 1.0 py35h3eabf46_1
sphinxcontrib-websupport 1.1.0 py35_1
spyder 3.2.8 py35_0
sqlalchemy 1.2.8 py35h1de35cc_0
sqlite 3.23.1 hf1716c9_0
statsmodels 0.9.0 py35h917ab60_0
sympy 1.1.1 py35he478fab_0
tabulate 0.8.2 py35_0 anaconda
tbb 2019.1 h04f5b5a_0 anaconda
tblib 1.3.2 py35h1b9c5fd_0
terminado 0.8.1 py35_1
testpath 0.3.1 py35hf8009f4_0
tk 8.6.7 h35a86e2_3
toolz 0.9.0 py35_0
tornado 5.0.2 py35_0
traitlets 4.3.2 py35hd3d1486_0
traits 4.6.0 py35h470a237_2 conda-forge
traitsui 6.0.0 py_1 conda-forge
typing 3.6.4 py35_0
unicodecsv 0.14.1 py35h2154ad0_0
unixodbc 2.3.6 h3efe00b_0
urllib3 1.22 py35he002d57_0
vtk 8.1.0 py35he461554_202 conda-forge
wcwidth 0.1.7 py35hdd0c235_0
webencodings 0.5.1 py35hcf8ebf9_1
werkzeug 0.14.1 py35_0
wheel 0.31.1 py35_0
widgetsnbextension 3.2.1 py35_0
wrapt 1.10.11 py35ha18cf31_0
x264 20131218 0 conda-forge
xlrd 1.1.0 py35h892fcf7_1
xlsxwriter 1.0.5 py35_0
xlwings 0.11.8 py35_0
xlwt 1.2.0 py35hf70d7fa_0
xz 5.2.4 h1de35cc_4
yaml 0.1.7 hc338f04_2
zeromq 4.2.5 h378b8a2_0
zict 0.1.3 py35h1ae85d2_0
zlib 1.2.11 hf3cbc9b_2
Can someone who is having this problem please report which version of vtk is installed when you have the problem?
I won't have time to look at this for at least a week or two but if you can recreate the problem and then paste the output of
conda list
here that would be helpful...
Now, I find that even import vtk
can get this problem:
Traceback (most recent call last):
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/vtk/vtkRenderingFreeType.py", line 5, in <module>
from .vtkRenderingFreeTypePython import *
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 19, in do_import
module = self._system_import(name, *args, **kwargs)
ImportError: dlopen(/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/vtk/vtkRenderingFreeTypePython.so, 2): Library not loaded: @rpath/libfreetype.6.dylib
Referenced from: /Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/vtk/vtkRenderingFreeTypePython.so
Reason: Incompatible library version: vtkRenderingFreeTypePython.so requires version 22.0.0 or later, but libfreetype.6.dylib provides version 21.0.0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/IPython/core/interactiveshell.py", line 2963, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-3-7c7f66f02cd3>", line 1, in <module>
import vtk
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 19, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/vtk/__init__.py", line 26, in <module>
from .vtkRenderingFreeType import *
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 19, in do_import
module = self._system_import(name, *args, **kwargs)
File "/Users/user/.pyenv/versions/anaconda3-5.0.1/python.app/Contents/lib/python3.5/site-packages/vtk/vtkRenderingFreeType.py", line 9, in <module>
from vtkRenderingFreeTypePython import *
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 19, in do_import
module = self._system_import(name, *args, **kwargs)
ImportError: No module named 'vtkRenderingFreeTypePython'
@ggyyhw -- The first issue is probably because you have ETS_TOOLKIT=null
set in your environment. The second looks like a conda VTK build issue. Looks like conda provides its own freetype and vtk requires a newer version. Can you pip install vtk
and see if that works for you?
@ggyyhw -- The first issue is probably because you have
ETS_TOOLKIT=null
set in your environment. The second looks like a conda VTK build issue. Looks like conda provides its own freetype and vtk requires a newer version. Can youpip install vtk
and see if that works for you?
Thanks! As you suggested, I removed conda VTK and conda mayavi (also manually delete all the related folders), then use pip install vtk
and pip install mayavi
. Now I can successfully import vtk
and from mayavi import mlab
.
` from mayavi import mlab Changing backend to Qt4 for Mayavi Traceback (most recent call last):
File "
File "C:\ProgramData\Anaconda3\lib\site-packages\mayavi\mlab.py", line 16, in
File "C:\ProgramData\Anaconda3\lib\site-packages\mayavi\tools\camera.py", line 24, in
File "C:\ProgramData\Anaconda3\lib\site-packages\mayavi\tools\engine_manager.py", line 14, in
File "C:\ProgramData\Anaconda3\lib\site-packages\mayavi\core\engine.py", line 34, in
File "C:\ProgramData\Anaconda3\lib\site-packages\mayavi\core\ui\mayavi_scene.py", line 12, in
File "C:\ProgramData\Anaconda3\lib\site-packages\tvtk\tools\ivtk.py", line 35, in
File "C:\ProgramData\Anaconda3\lib\site-packages\tvtk\pyface\api.py", line 1, in
File "C:\ProgramData\Anaconda3\lib\site-packages\tvtk\pyface\decorated_scene.py", line 12, in
File "C:\ProgramData\Anaconda3\lib\site-packages\tvtk\pyface\toolkit.py", line 3, in
File "C:\ProgramData\Anaconda3\lib\site-packages\pyface\base_toolkit.py", line 263, in find_toolkit return import_toolkit(ETSConfig.toolkit, entry_point)
File "C:\ProgramData\Anaconda3\lib\site-packages\pyface\base_toolkit.py", line 217, in import_toolkit toolkit_object = plugin.load()
File "C:\ProgramData\Anaconda3\lib\site-packages\pkg_resources__init__.py", line 2323, in load self.require(*args, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\pkg_resources__init__.py", line 2346, in require items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "C:\ProgramData\Anaconda3\lib\site-packages\pkg_resources__init__.py", line 778, in resolve raise DistributionNotFound(req, requirers)
DistributionNotFound: The 'vtk' distribution was not found and is required by the application `
`
#
_ipyw_jlab_nb_ext_conf 0.1.0 py36he6757f0_0
_r-mutex 1.0.0 mro_2
absl-py 0.1.10 py_0 conda-forge
aenum 2.1.0 py36_0 conda-forge
affine 2.2.0 py_0 conda-forge
alabaster 0.7.10 py36_1 conda-forge
anaconda custom py36h363777c_0
anaconda-client 1.6.14 py_0 conda-forge
anaconda-navigator 1.9.2 py36_0
anaconda-project 0.8.2 py36_0 conda-forge
appdirs 1.4.3 py_0 conda-forge
apptools 4.4.0 py36_0 conda-forge
asn1crypto 0.24.0 py36_0 conda-forge
astor 0.6.2 py_0 conda-forge
astroid 1.6.2 py36_0 conda-forge
astropy 3.0.1 py36_1 conda-forge
attrs 17.4.0 py_0 conda-forge
automat 0.7.0 py36_0 conda-forge
babel 2.5.3 py36_0 conda-forge
backcall 0.1.0 py_0 conda-forge
backports 1.0 py36_1 conda-forge
backports.functools_lru_cache 1.5 py36_0 conda-forge
backports.shutil_get_terminal_size 1.0.0 py_3 conda-forge
backports.weakref 1.0rc1 py36_1 conda-forge
basemap 1.1.0 py36h157f2ec_5 conda-forge
basemap 1.1.0
blaze 0.11.3 py36_0 conda-forge
bleach 1.5.0 py36_0 conda-forge
blinker 1.4 py_0 conda-forge
bokeh 0.12.15 py36_0 conda-forge
boost 1.66.0 py36_vc14_1 [vc14] conda-forge
boost-cpp 1.66.0 vc14_1 [vc14] conda-forge
boto 2.48.0 py36h1a776d2_1
boto3 1.6.21 py_0 conda-forge
botocore 1.9.21 py_0 conda-forge
bottleneck 1.2.1 py36_1 conda-forge
bruges 0.3.3
bzip2 1.0.6 vc14_1 [vc14] conda-forge
ca-certificates 2018.8.24 ha4d7672_0 conda-forge
cachecontrol 0.12.4 py_0 conda-forge
cachetools 2.0.1 py_0 conda-forge
certifi 2018.8.24 py36_1001 conda-forge
cffi 1.11.5 py36_0 conda-forge
cgal 4.12 py36_vc14_0 [vc14] conda-forge
chardet 3.0.4 py36_0 conda-forge
click 6.7 py_1 conda-forge
click-plugins 1.0.3 py36_0 conda-forge
cligj 0.4.0 py36_0 conda-forge
cloudpickle 0.5.2 py_0 conda-forge
clyent 1.2.2 py36_0 conda-forge
colorama 0.3.9 py36_0 conda-forge
comtypes 1.1.4 py36_0 conda-forge
conda 4.5.11 py36_1000 conda-forge
conda-build 3.8.0 py36_0 conda-forge
conda-env 2.6.0 0 conda-forge
conda-verify 2.0.0 py36_0 conda-forge
configobj 5.0.6 py36_0
configobj 5.0.6
constantly 15.1.0 py_0 conda-forge
contextlib2 0.5.5 py36_1 conda-forge
cryptography 2.2.1 py36_0 conda-forge
cudatoolkit 8.0 3
cudnn 6.0 0
curl 7.59.0 vc14_0 [vc14] conda-forge
cycler 0.10.0 py36_0 conda-forge
cython 0.28.1 py36_0 conda-forge
cytoolz 0.9.0.1 py36_0 conda-forge
dask 0.17.2 py_0 conda-forge
dask-core 0.17.2 py_0 conda-forge
datashape 0.5.4 py36_0 conda-forge
dbf 0.97.2 py_0 conda-forge
dbfread 2.0.7 py36_0 conda-forge
decorator 4.2.1 py36_0 conda-forge
descartes 1.1.0 py_1 conda-forge
dill 0.2.7.1 py36_0 conda-forge
distlib 0.2.6 py36_0
distributed 1.21.5 py36_0 conda-forge
docrep 0.2.2 py36_0 conda-forge
docutils 0.14 py36_0 conda-forge
entrypoints 0.2.3 py36_1 conda-forge
envisage 4.5.1 py36_0 conda-forge
et_xmlfile 1.0.1 py36_0 conda-forge
expat 2.2.5 vc14_0 [vc14] conda-forge
fast-histogram 0.3 py36_0 conda-forge
fastcache 1.0.2 py36_0 conda-forge
fasteners 0.14.1 py36_2 conda-forge
ffmpeg 4.0.2 h8fefcd1_0 conda-forge
filelock 3.0.4 py36_0 conda-forge
fiona 1.7.11 py36_3 conda-forge
flask 0.12.2 py36_0 conda-forge
flask-cors 3.0.3 py36_0 conda-forge
flopy 3.2.9
font-ttf-inconsolata 2.001 hcb22688_0
font-ttf-source-code-pro 2.030 h7457263_0
font-ttf-ubuntu 0.83 h8b1ccd4_0
fonts-anaconda 1 h8fa9717_0
freetype 2.8.1 vc14_0 [vc14] conda-forge
freexl 1.0.2 vc14_2 [vc14] conda-forge
funcargparse 0.2.0 py36_0 conda-forge
future 0.16.0 py36_0 conda-forge
gast 0.2.0 py36_0
gdal 2.2.4 py36_0 conda-forge
gensim 3.4.0 py36_vc14_0 [vc14] conda-forge
geos 3.6.2 vc14_1 [vc14] conda-forge
geostatsmodels 0.1
gevent 1.3a1 py36_0 conda-forge
glob2 0.5 py36_0 conda-forge
glue-core 0.13.3 py36_0 conda-forge
glue-vispy-viewers 0.10 py36_0 conda-forge
glueviz 0.13.3 0 conda-forge
google-api-core 1.1.0 py_0 conda-forge
google-api-python-client 1.6.6 py_0 conda-forge
google-auth 1.4.1 py_0 conda-forge
googleapis-common-protos 1.5.3 py36_0 conda-forge
googlemaps 2.5.1 py_0 conda-forge
greenlet 0.4.13 py36_0 conda-forge
grpcio 1.11.0 py36he025d50_0
h5netcdf 0.5.0 py_0 conda-forge
h5py 2.7.1 py36_2 conda-forge
hdf4 4.2.13 vc14_0 [vc14] conda-forge
hdf5 1.10.1 vc14_2 [vc14] conda-forge
heapdict 1.0.0 py36_0 conda-forge
html5lib 0.9999999 py36_0 conda-forge
httplib2 0.11.1 py36_0 conda-forge
hyperlink 17.3.1 py_0 conda-forge
icc_rt 2017.0.4 h97af966_0
icu 58.2 vc14_0 [vc14] conda-forge
idna 2.6 py36_1 conda-forge
imageio 2.3.0 py36_0 conda-forge
imagesize 1.0.0 py36_0 conda-forge
incremental 17.5.0 py_0 conda-forge
intel-openmp 2018.0.0 8
ipykernel 4.8.2 py36_0 conda-forge
ipyleaflet 0.9.0 py36_1 conda-forge
ipython 6.4.0 py36_0 conda-forge
ipython_genutils 0.2.0 py36_0 conda-forge
ipyvolume 0.4.6 py_1 conda-forge
ipywebrtc 0.4.0 py_0 conda-forge
ipywidgets 7.2.0 py36_0 conda-forge
isort 4.3.4 py36_0 conda-forge
itsdangerous 0.24 py_2 conda-forge
jdcal 1.3 py36_0 conda-forge
jedi 0.11.1 py36_0 conda-forge
jinja2 2.10 py36_0 conda-forge
jmespath 0.9.3 py36_0 conda-forge
joblib 0.11 py36_0 conda-forge
jpeg 9b vc14_2 [vc14] conda-forge
jsoncpp 1.8.1 vc14_0 [vc14] conda-forge
jsonschema 2.6.0 py36_1 conda-forge
jupyter 1.0.0 py_1 conda-forge
jupyter_client 5.2.3 py36_0 conda-forge
jupyter_console 5.2.0 py36_0 conda-forge
jupyter_core 4.4.0 py_0 conda-forge
jupyterlab 0.34.12 py36_1000 conda-forge
jupyterlab_launcher 0.13.1 py_2 conda-forge
kealib 1.4.7 vc14_4 [vc14] conda-forge
keyring 13.2.1 py36_0 conda-forge
kiwisolver 1.0.1 py36_1 conda-forge
krb5 1.14.2 vc14_0 [vc14] conda-forge
Lasagne 0.2.dev1
libflang 5.0.0 vc14_20180207 [vc14] conda-forge
libgdal 2.2.4 vc14_0 [vc14] conda-forge
libgpuarray 0.7.6 vc14_0 [vc14] conda-forge
libiconv 1.14 vc14_4 [vc14] conda-forge
libkml 1.3.0 vc14_6 [vc14] conda-forge
libnetcdf 4.4.1.1 vc14_10 [vc14] conda-forge
libpng 1.6.34 vc14_0 [vc14] conda-forge
libpq 9.6.3 vc14_0 [vc14] conda-forge
libprotobuf 3.6.0 h1a1b453_0 conda-forge
libsodium 1.0.16 vc14_0 [vc14] conda-forge
libspatialite 4.3.0a vc14_19 [vc14] conda-forge
libssh2 1.8.0 vc14_2 [vc14] conda-forge
libtiff 4.0.9 vc14_0 [vc14] conda-forge
libwebp 0.5.2 vc14_7 [vc14] conda-forge
libxcb 1.12 vc14_1 [vc14] conda-forge
libxml2 2.9.5 vc14_1 [vc14] conda-forge
libxslt 1.1.32 vc14_0 [vc14] conda-forge
llvm-meta 6.0.0 0 conda-forge
llvmlite 0.23.2 py36_1 conda-forge
locket 0.2.0 py36_1 conda-forge
lockfile 0.12.2 py36_0 conda-forge
lxml 4.2.1 py36_0 conda-forge
lz4-c 1.8.2 vc14_0 [vc14] conda-forge
lzo 2.10 vc14_0 [vc14] conda-forge
m2-bash 4.3.042 5
m2-gcc-libs 5.3.0 4
m2-heimdal 1.5.3 10
m2-heimdal-libs 1.5.3 10
m2-icu 56.1 2
m2-libcrypt 1.3 2
m2-libdb 5.3.28 3
m2-libedit 3.1 20150326
m2-libopenssl 1.0.2.g 2
m2-libreadline 6.3.008 8
m2-libsqlite 3.10.0.0 2
m2-msys2-runtime 2.5.0.17080.65c939c 3
m2-ncurses 6.0.20160220 2
m2-openssh 7.1p2 2
m2-openssl 1.0.2.g 2
m2-zlib 1.2.8 4
m2w64-bwidget 1.9.10 2
m2w64-bzip2 1.0.6 6
m2w64-ca-certificates 20150426 103
m2w64-diffutils 3.3.2 2
m2w64-expat 2.1.1 2
m2w64-fftw 3.3.4 6
m2w64-flac 1.3.1 3
m2w64-gcc-libgfortran 5.3.0 6
m2w64-gcc-libs 5.3.0 7
m2w64-gcc-libs-core 5.3.0 7
m2w64-gettext 0.19.7 2
m2w64-gmp 6.1.0 2
m2w64-grep 2.24 2
m2w64-gsl 2.1 2
m2w64-libffi 3.2.1 4
m2w64-libiconv 1.14 6
m2w64-libjpeg-turbo 1.4.2 3
m2w64-libogg 1.3.2 3
m2w64-libpng 1.6.21 2
m2w64-libsndfile 1.0.26 2
m2w64-libtasn1 4.7 2
m2w64-libtiff 4.0.6 2
m2w64-libvorbis 1.3.5 2
m2w64-libwinpthread-git 5.0.0.4634.697f757 2
m2w64-libxml2 2.9.3 4
m2w64-mpfr 3.1.4 4
m2w64-openssl 1.0.2.g 2
m2w64-p11-kit 0.23.2 2
m2w64-pcre 8.38 2
m2w64-speex 1.2rc2 3
m2w64-speexdsp 1.2rc3 3
m2w64-tcl 8.6.5 3
m2w64-tk 8.6.5 3
m2w64-tktable 2.10 5
m2w64-wineditline 2.101 5
m2w64-xz 5.2.2 2
m2w64-zlib 1.2.8 10
mako 1.0.7 py36_0 conda-forge
mapsplotlib 1.0.7
mkl-service 1.1.2 py36h57e144c_4
mkl_fft 1.0.6 py36_0 conda-forge
mkl_random 1.0.1 py36_0 conda-forge
monotonic 1.4 py36_0 conda-forge
more-itertools 4.1.0 py_0 conda-forge
mpfr 4.0.1 vc14_0 [vc14] conda-forge
mpir 3.0.0 vc14_0 [vc14] conda-forge
mpl-scatter-density 0.3 py36_0 conda-forge
mpld3 0.3 py_1 conda-forge
mplleaflet 0.0.5 py_2 conda-forge
mpmath 1.0.0 py_0 conda-forge
mro-base 3.4.3 0
mro-basics 3.4.3 0
msgpack-python 0.5.6 py36_0 conda-forge
msys2-conda-epoch 20160418 1
multipledispatch 0.5.0 py36_0 conda-forge
munch 2.3.2 py_0 conda-forge
navigator-updater 0.1.0 py36h8a7b86b_0
nbconvert 5.3.1 py_1 conda-forge
nbformat 4.4.0 py36_0 conda-forge
netcdf4 1.3.1 py36_1 conda-forge
networkx 2.1 py36_0 conda-forge
nine 1.0.0
numexpr 2.6.5 py36_0 conda-forge
numpy 1.14.4 py36h9fa60d3_0
numpy-base 1.14.4 py36h5c71026_0
numpy-stl 2.3.2
pyface 6.0.0 py_1 conda-forge
pyflakes 1.6.0 py36_0 conda-forge
pygimli 1.0.3
pyserial 3.4 py36_0 conda-forge
pyshp 1.2.12
r-cluster 2.0.6 r3.4.1_0 conda-forge
r-codetools 0.2_15 r3.4.1_0 conda-forge
r-colorspace 1.3_2 r3.4.1_0 conda-forge
r-config 0.2 r3.4.1_0 conda-forge
r-crayon 1.3.4 r3.4.1_0 conda-forge
r-curl 3.1 r3.4.1_0 conda-forge
r-cvst 0.2_1 r3.4.1_0 conda-forge
r-data.table 1.10.4_3 mro343h889e2dd_0
r-dbi 0.8 r3.4.1_0 conda-forge
r-dbplyr 1.1.0 r3.4.1_0 conda-forge
r-ddalpha 1.3.2 r3.4.1_0 conda-forge
r-deoptimr 1.0_8 r3.4.1_0 conda-forge
r-deployrrserve 9.0.0 mro343_0
r-dichromat 2.0_0 r3.4.1_0 conda-forge
r-digest 0.6.12 r3.4.1_0 conda-forge
r-dimred 0.1.0 r3.4.1_0 conda-forge
r-doparallel 1.0.12 mro343_0
r-dplyr 0.7.4 r3.4.1_0 conda-forge
r-drr 0.0.3 r3.4.1_0 conda-forge
r-essentials 3.4.3 mro343_0
r-evaluate 0.10.1 r3.4.1_0 conda-forge
r-fnn 1.1 r3.4.1_0 conda-forge
r-forcats 0.3.0 r3.4.1_0 conda-forge
r-foreach 1.4.5 mro343_0
r-foreign 0.8_69 mro343_0
r-formatr 1.5 r3.4.1_0 conda-forge
r-geometry 0.3_6 r3.4.1_0 conda-forge
r-ggplot2 2.2.1 r3.4.1_0 conda-forge
r-glmnet 2.0_13 mro343h889e2dd_0
r-glue 1.2.0 r3.4.1_0 conda-forge
r-gower 0.1.2 r3.4.1_0 conda-forge
r-gstat 1.1_5 r3.4.1_0 conda-forge
r-gtable 0.2.0 r3.4.1_0 conda-forge
r-haven 1.1.1 r3.4.1_0 conda-forge
r-hexbin 1.27.2 r3.4.1_0 conda-forge
r-highr 0.6 r3.4.1_0 conda-forge
r-hms 0.4.0 mro343h889e2dd_0
r-htmltools 0.3.6 r3.4.1_0 conda-forge
r-htmlwidgets 1.0 r3.4.1_0 conda-forge
r-httpuv 1.3.6.2 r3.4.1_0 conda-forge
r-httr 1.3.1 r3.4.1_0 conda-forge
r-intervals 0.15.1 r3.4.1_0 conda-forge
r-ipred 0.9_6 r3.4.1_0 conda-forge
r-irdisplay 0.4.4 r3.4.1_0 conda-forge
r-irkernel 0.8.11 r3.4.1_0 conda-forge
r-iterators 1.0.9 r3.4.1_0 conda-forge
r-jsonlite 1.5 r3.4.1_0 conda-forge
r-kernlab 0.9_25 r3.4.1_0 conda-forge
r-kernsmooth 2.23_15 r3.4.1_0 conda-forge
r-knitr 1.20 r3.4.1_0 conda-forge
r-labeling 0.3 r3.4.1_0 conda-forge
r-lattice 0.20_35 mro343_0
r-lava 1.6.1 r3.4.1_0 conda-forge
r-lazyeval 0.2.1 r3.4.1_0 conda-forge
r-lubridate 1.7.4 r3.4.1_0 conda-forge
r-magic 1.5_6 r3.4.1_0 conda-forge
r-magrittr 1.5 r3.4.1_0 conda-forge
r-maps 3.3.0 r3.4.1_0 conda-forge
r-markdown 0.8 r3.4.1_1 conda-forge
r-mass 7.3_47 mro343_0
r-matrix 1.2_12 r3.4.1_0 conda-forge
r-memoise 1.1.0 r3.4.1_0 conda-forge
r-mgcv 1.8_22 mro343_0
r-microsoftr 3.4.3.0097 mro343_0
r-mime 0.5 r3.4.1_0 conda-forge
r-miniui 0.1.1 r3.4.1_0 conda-forge
r-mnormt 1.5_5 r3.4.1_0 conda-forge
r-modelmetrics 1.1.0 r3.4.1_0 conda-forge
r-modelr 0.1.1 r3.4.1_0 conda-forge
r-mongolite 1.4 mro343h889e2dd_0
r-munsell 0.4.3 r3.4.1_0 conda-forge
r-nlme 3.1_131 r3.4.1_0 conda-forge
r-nnet 7.3_12 r3.4.1_0 conda-forge
r-numderiv 2016.8_1 r3.4.1_0 conda-forge
r-odbc 1.1.3 mro343h889e2dd_0
r-openssl 1.0.1 r3.4.1_0 conda-forge
r-packrat 0.4.9 r3.4.1_0 conda-forge
r-pbdzmq 0.3_2 r3.4.1_0 conda-forge
r-pillar 1.2.1 r3.4.1_0 conda-forge
r-pkgconfig 2.0.1 r3.4.1_0 conda-forge
r-pki 0.1_3 r3.4.1_0 conda-forge
r-plogr 0.1_1 r3.4.1_0 conda-forge
r-plyr 1.8.4 r3.4.1_0 conda-forge
r-png 0.1_7 r3.4.1_0 conda-forge
r-prettyunits 1.0.2 r3.4.1_0 conda-forge
r-prodlim 1.6.1 r3.4.1_0 conda-forge
r-profvis 0.3.4 mro343h889e2dd_0
r-psych 1.7.8 r3.4.1_0 conda-forge
r-purrr 0.2.4 r3.4.1_0 conda-forge
r-quantmod 0.4_12 mro343h889e2dd_0
r-r6 2.2.2 r3.4.1_0 conda-forge
r-randomforest 4.6_12 r3.4.1_0 conda-forge
r-rappdirs 0.3.1 r3.4.1_0 conda-forge
r-rbokeh 0.6.3 mro343_0
r-rcolorbrewer 1.1_2 r3.4.1_0 conda-forge
r-rcpp 0.12.15 r3.4.1_0 conda-forge
r-rcpproll 0.2.2 r3.4.1_0 conda-forge
r-rcurl 1.95_4.9 mro343h889e2dd_0
r-readr 1.1.1 r3.4.1_0 conda-forge
r-readxl 1.0.0 r3.4.1_0 conda-forge
r-recipes 0.1.2 r3.4.1_0 conda-forge
r-recommended 3.4.3 mro343_0
r-rematch 1.0.1 r3.4.1_0 conda-forge
r-repr 0.12 r3.4.1_0 conda-forge
r-reprex 0.1.1 mro343h889e2dd_0
r-reshape2 1.4.3 r3.4.1_0 conda-forge
r-revoioq 8.0.9 mro343_0
r-revomods 11.0.0 mro343_0
r-revoutilsmath 10.0.1 mro343_0
r-rjava 0.9_9 mro343h889e2dd_0
r-rjdbc 0.2_5 mro343h889e2dd_0
r-rjsonio 1.3_0 r3.4.1_0 conda-forge
r-rlang 0.2.0 r3.4.1_0 conda-forge
r-rmarkdown 1.8 r3.4.1_0 conda-forge
r-robustbase 0.92_7 r3.4.1_0 conda-forge
r-rpart 4.1_11 mro343_0
r-rprojroot 1.3_2 r3.4.1_0 conda-forge
r-rsconnect 0.8.5 mro343h889e2dd_0
r-rsqlite 2.0 r3.4.1_0 conda-forge
r-rstudioapi 0.7 r3.4.1_0 conda-forge
r-runit 0.4.26 mro343_0
r-rvest 0.3.2 r3.4.1_0 conda-forge
r-scales 0.5.0 r3.4.1_0 conda-forge
r-selectr 0.3_1 r3.4.1_0 conda-forge
r-sfsmisc 1.1_1 r3.4.1_0 conda-forge
r-shiny 1.0.5 r3.4.1_0 conda-forge
r-sourcetools 0.1.6 r3.4.1_0 conda-forge
r-sp 1.2_7 r3.4.1_0 conda-forge
r-spacetime 1.2_1 r3.4.1_0 conda-forge
r-sparklyr 0.7.0 r3.4.1_0 conda-forge
r-spatial 7.3_11 r3.4.1_0 conda-forge
r-squarem 2017.10_1 r3.4.1_0 conda-forge
r-stringi 1.1.6 r3.4.1_0 conda-forge
r-stringr 1.3.0 r3.4.1_0 conda-forge
r-survival 2.41_3 mro343_0
r-tibble 1.4.2 r3.4.1_0 conda-forge
r-tidyr 0.8.0 r3.4.1_0 conda-forge
r-tidyselect 0.2.4 r3.4.1_0 conda-forge
r-tidyverse 1.2.1 mro343h889e2dd_0
r-timedate 3012.100 r3.4.1_0 conda-forge
r-ttr 0.23_1 r3.4.1_0 conda-forge
r-utf8 1.1.3 r3.4.1_0 conda-forge
r-uuid 0.1_2 r3.4.1_0 conda-forge
r-viridislite 0.2.0 r3.4.1_0 conda-forge
r-whisker 0.3_2 r3.4.1_0 conda-forge
r-withr 2.1.1 r3.4.1_0 conda-forge
r-xml2 1.1.1 r3.4.1_0 conda-forge
r-xtable 1.8_2 r3.4.1_0 conda-forge
r-xts 0.10_1 r3.4.1_0 conda-forge
r-yaml 2.1.14 r3.4.1_0 conda-forge
r-zoo 1.8_1 r3.4.1_0 conda-forge
rasterio 1.0.3 py36hfa10f2d_0 conda-forge
redis 3.2.100 h81e342f_0
requests 2.18.4 py36_1 conda-forge
requests-oauthlib 0.8.0 py36_1 conda-forge
rope 0.10.7 py36_0 conda-forge
rpy2 2.9.3 py36r3.4.1_0 conda-forge
rsa 3.4.2 py36_0 conda-forge
rstudio 1.1.423 h8c352d3_0
ruamel_yaml 0.15.35 py36_0 conda-forge
s3transfer 0.1.13 py36_0 conda-forge
scikit-data 0.1.3 py36_0 conda-forge
scikit-garden 0.1.3 py36_0 conda-forge
scikit-gstat 0.1.8
scikit-mdr 0.4.4 py_0 conda-forge
scikit-optimize 0.5.2 py_0 conda-forge
scikit-plot 0.3.7 py_0 conda-forge
scipy 1.1.0 py36h672f292_0
seaborn 0.9.0 py_0 conda-forge
send2trash 1.5.0 py_0 conda-forge
service_identity 17.0.0 py_0 conda-forge
setuptools 39.0.1 py36_0 conda-forge
shapely 1.6.4 py36_0 conda-forge
simplegeneric 0.8.1 py36_0 conda-forge
simplejson 3.15.0 py36_0 conda-forge
singledispatch 3.4.0.3 py36_0 conda-forge
sip 4.18 py36_1 conda-forge
six 1.11.0 py36_1 conda-forge
smart_open 1.5.7 py36_0 conda-forge
snowballstemmer 1.2.1 py36_0 conda-forge
snuggs 1.4.1 py36_0 conda-forge
sortedcollections 0.6.1 py36_0 conda-forge
sortedcontainers 1.5.9 py36_0 conda-forge
sphinx 1.6.7 py36_0 conda-forge
sphinx_rtd_theme 0.2.4 py36_0 conda-forge
sphinxcontrib 1.0 py36hbbac3d2_1
sphinxcontrib-websupport 1.0.1 py36_0 conda-forge
spyder 3.3.1 py36_1 conda-forge
spyder-kernels 0.2.4 py36_0 conda-forge
sqlalchemy 1.2.6 py36_0 conda-forge
sqlite 3.20.1 vc14_2 [vc14] conda-forge
statsmodels 0.9.0 py36_0 conda-forge
sympy 1.1.1 py36_0 conda-forge
tbb 2018_20171205 vc14_0 [vc14] conda-forge
tblib 1.3.2 py36_0 conda-forge
tensorboard 1.10.0 py36_0 conda-forge
tensorflow 1.10.0 py36_0 conda-forge
tensorflow-base 1.8.0 py36h1a1b453_0
termcolor 1.1.0 py36_1 conda-forge
terminado 0.8.1 py36_0 conda-forge
testpath 0.3.1 py36_0 conda-forge
theano 0.9.0 py36_1 conda-forge
Theano 0.8.2
twython 3.6.0 py36_0 conda-forge
typing 3.6.4 py36_0 conda-forge
tzlocal 1.5.1 py_0 conda-forge
unicodecsv 0.14.1 py36_0 conda-forge
uritemplate 3.0.0 py36_0 conda-forge
urllib3 1.22 py36_0 conda-forge
vboxapi 1.0
`
@ggyyhw -- The first issue is probably because you have
ETS_TOOLKIT=null
set in your environment. The second looks like a conda VTK build issue. Looks like conda provides its own freetype and vtk requires a newer version. Can youpip install vtk
and see if that works for you?
Just pip install vtk
(without removing conda vtk and conda mayavi) worked for me.
I have the same problem try this version of vtk, it works on my pc(win10 py3.6)
conda install -c viscid-hub vtk
this helps in win10 conda environment, and this also solved the conflict between opencv and mayavi in my computer. I think linux also suitable.
The solution won't work on win7.
I just experienced this problem installing the latest release version (mayavi-4.6.2 and latest enthought dependencies) via Macports. No Conda, no pip, just setup
commands. VTK is 8.1.1 with python extension.
Same issue, e.g. when using import mayavi.mlab
.
DistributionNotFound: The 'vtk' distribution was not found and is required by the application
Anaconda Windows 10 Python 3.6 VTK 8.1.0 pyQt 5.6.0 mayavi 4.6.2
(packages from from conda-forge
)
But import vtk
works fine...
Any workarounds for this?
@solarjoe, as described above, it seems that one workaround is to use pip to install mayavi.
@prabhuramachandran, please reopen. This is is not fixed for reasonable installation cases.
@ggyyhw -- The first issue is probably because you have
ETS_TOOLKIT=null
set in your environment. The second looks like a conda VTK build issue. Looks like conda provides its own freetype and vtk requires a newer version. Can youpip install vtk
and see if that works for you?Thanks! As you suggested, I removed conda VTK and conda mayavi (also manually delete all the related folders), then use
pip install vtk
andpip install mayavi
. Now I can successfullyimport vtk
andfrom mayavi import mlab
.
This worked for me too. conda remove vtk
conda remove mayavi
and installing with pip install vtk
and pip install mayavi
. Thanks for your help!
Using pip
instead of conda
for both packages also works for me.
I would like to point out that this problem also happens on linux (Fedora 30 to be specific).
Installing both vtk
and mayavi
with the package manager works just fine (dnf install python3-vtk python3-mayavi
), but import mayavi.mlab
yields the same error message as above.
I faced the same problem and waste a lot of time. if you are installing from anaconda command prompt then the problem can be fixed by following command conda install mayavi
Remember to run conda activate
before launching anything.
I have the same issue. Following some suggestions I use pip and that failed:
conda create --name test_mayavi --channel conda-forge python=3.9.5 conda install -c anaconda spyder pip3 install vtk pip3 install mayavi ERROR: Failed building wheel for mayavi Running setup.py clean for mayavi Failed to build mayavi Installing collected packages: traits, importlib-resources, pyface, traitsui, configobj, apptools, envisage, mayavi Running setup.py install for mayavi ... error : : : ERROR: Command errored out with exit status 1: /nfs/chess/user/rv43/miniconda3/envs/test_mayavi/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-hsgzt03g/mayavi_b910d5862313408db443a7eda76b80c1/setup.py'"'"'; file='"'"'/tmp/pip-install-hsgzt03g/mayavi_b910d5862313408db443a7eda76b80c1/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-hu1r9olj/install-record.txt --single-version-externally-managed --compile --install-headers /nfs/chess/user/rv43/miniconda3/envs/test_mayavi/include/python3.9/mayavi Check the logs for full command output.
Can someone explain why what should work isn't?
I changed it to conda instead of pip and that installed and I was able to run a quick test. However using mlab.show fails with the following error:
b'\x1b[0m\x1b[31m2021-12-17 13:33:35.324 ( 29.098s) [ C4572740]vtkOpenGLRenderWindow.c:575 ERR| vtkXOpenGLRenderWindow (0x5588abd38d60): Unable to find a valid OpenGL 3.2 or later implementation. ......
Actually I should call it a problem with vtk or something else. I use anaconda to install it, successfully.
import vtk
OKimport mayavi
No problemfrom mayavi import mlab
I use