Open grelston opened 5 years ago
(base) C:\Users\User>conda activate mayavi
(mayavi) C:\Users\User>python
Python 3.7.3 (default, Apr 24 2019, 13:20:13) [MSC v.1915 32 bit (Intel)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.chdir(r'C:\Miniconda3\envs\mayavi\lib\site-packages\tvtk')
>>> import zipfile
>>> zipfile.ZipFile('tvtk_classes.zip').extractall()
>>> rwi_str = open('tvtk_classes/render_window_interactor.py', 'rt').read()
>>> open('tvtk_classes/render_window_interactor.py.orig', 'wt').write(rwi_str)
53516
>>> open('tvtk_classes/render_window_interactor.py', 'wt').write(rwi_str.replace('value=(0.0, nan)', 'value=(0.0, 0.0)'))
53516
>>> ^Z
(Restart python to clear the module cache)
(mayavi) C:\Users\User>python
Python 3.7.3 (default, Apr 24 2019, 13:20:13) [MSC v.1915 32 bit (Intel)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mayavi.api
>>> import tvtk.tvtk_classes
>>> tvtk.tvtk_classes.render_window_interactor
<module 'tvtk.tvtk_classes.render_window_interactor' from 'C:\\Miniconda3\\envs\\mayavi\\lib\\site-packages\\tvtk\\tvtk_classes\\render_window_interactor.py'>
>>>
I suspect this is an issue with the conda build of https://github.com/enthought/mayavi/tree/master/tvtk because a pip install of mayavi (and its apptools and envisage dependencies) works as expected.
(base) C:\Users\User>conda create --name mayavi-pip python=3.7 vtk numpy traitsui configobj six
Collecting package metadata: done
Solving environment: done
## Package Plan ##
environment location: C:\Miniconda3\envs\mayavi-pip
added / updated specs:
- configobj
- numpy
- python=3.7
- six
- traitsui
- vtk
The following NEW packages will be INSTALLED:
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate mayavi-pip
#
# To deactivate an active environment, use
#
# $ conda deactivate
(base) C:\Users\User>conda activate mayavi-pip
(mayavi-pip) C:\Users\User>pip --no-cache-dir install mayavi
Successfully built mayavi apptools envisage
Installing collected packages: apptools, envisage, mayavi
Successfully installed apptools-4.4.0 envisage-4.7.2 mayavi-4.6.2
(mayavi-pip) C:\Users\User>python
Python 3.7.3 (default, Apr 24 2019, 13:20:13) [MSC v.1915 32 bit (Intel)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mayavi.api
>>> import tvtk.tvtk_classes
>>> tvtk.tvtk_classes.render_window_interactor
<module 'tvtk.tvtk_classes.render_window_interactor' from 'C:\\Miniconda3\\envs\\mayavi-pip\\lib\\si
te-packages\\tvtk\\tvtk_classes.zip\\tvtk_classes\\render_window_interactor.pyc'>
>>>
Actual Behavior
Expected Behavior
Steps to Reproduce
Anaconda or Miniconda version:
Miniconda3-4.6.14-Windows-x86
Operating System:
Windows 7 Enterprise, Service Pack 1, 64-bit Operating System
conda info
conda list --show-channel-urls