-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
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 *
Metadata
Metadata
Assignees
Labels
No labels