You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: LoadError: PyError (PyImport_ImportModule
The Python package vtk.util.numpy_support could not be imported by pyimport. Usually this means
that you did not install vtk.util.numpy_support in the Python version being used by PyCall.
PyCall is currently configured to use the Julia-specific Python distribution
installed by the Conda.jl package. To install the vtk.util.numpy_support module, you can
use `pyimport_conda("vtk.util.numpy_support", PKG)`, where PKG is the Anaconda
package the contains the module vtk.util.numpy_support, or alternatively you can use the
Conda package directly (via `using Conda` followed by `Conda.add` etcetera).
Alternatively, if you want to use a different Python distribution on your
system, such as a system-wide Python (as opposed to the Julia-specific Python),
you can re-configure PyCall with that Python. As explained in the PyCall
documentation, set ENV["PYTHON"] to the path/name of the python executable
you want to use, run Pkg.build("PyCall"), and re-launch Julia.
) <class 'ModuleNotFoundError'>
ModuleNotFoundError("No module named 'vtkCommonCorePython'")
File "/Users/simon/.julia/conda/3/lib/python3.7/site-packages/vtk.py", line 32, in <module>
all_spec.loader.exec_module(all_m)
File "/Users/simon/.julia/conda/3/lib/python3.7/site-packages/vtkmodules/all.py", line 7, in <module>
from .vtkCommonCore import *
File "/Users/simon/.julia/conda/3/lib/python3.7/site-packages/vtkmodules/vtkCommonCore.py", line 9, in <module>
from vtkCommonCorePython import *
The text was updated successfully, but these errors were encountered:
It seems that the default vtk Python package installation assumes that instead of "python" command one will use "vtkpython". So, there is a chance that either pointing PyCall to vtkpython instead of python (PYCALL_JL_RUNTIME_PYTHONHOME and PYTHON env vars) or setting PYTHONPATH and LD_LIBRARY_PATH to include location of the vtkCommonCorePython.so file will help.
The text was updated successfully, but these errors were encountered: