opengeostat / pygslib

GSLIB fortran code wrapped into python
MIT License
122 stars 55 forks source link

I don't import PyGSLIB #33

Open emreekm opened 5 years ago

emreekm commented 5 years ago

Why I don't import PyGSLIB

ImportError Traceback (most recent call last) ~/anaconda3/envs/pygslib/lib/python3.6/site-packages/vtk/vtkIOParallel.py in 4 # use relative import for installed modules ----> 5 from .vtkIOParallelPython import * 6 except ImportError:

ImportError: dlopen(/Users/ekim/anaconda3/envs/pygslib/lib/python3.6/site-packages/vtk/vtkIOParallelPython.so, 2): Library not loaded: @rpath/libjsoncpp.11.dylib Referenced from: /Users/ekim/anaconda3/envs/pygslib/lib/libvtkIOParallel-8.1.1.dylib Reason: image not found

During handling of the above exception, another exception occurred:

ModuleNotFoundError Traceback (most recent call last)

in ----> 1 import pygslib ~/anaconda3/envs/pygslib/lib/python3.6/site-packages/pygslib/__init__.py in 24 25 # import pygslib modules (compatible with python 3x) ---> 26 from . import drillhole, blockmodel, vtktools, nonlinear, sandbox, gslib, plothtml, charttable, progress 27 28 from . import version cython_code/drillhole.pyx in init pygslib.drillhole() ~/anaconda3/envs/pygslib/lib/python3.6/site-packages/vtk/__init__.py in 78 from .vtkIONetCDF import * 79 from .vtkIOPLY import * ---> 80 from .vtkIOParallel import * 81 from .vtkIOParallelXML import * 82 from .vtkIOSQL import * ~/anaconda3/envs/pygslib/lib/python3.6/site-packages/vtk/vtkIOParallel.py in 7 # during build and testing, the modules will be elsewhere, 8 # e.g. in lib directory or Release/Debug config directories ----> 9 from vtkIOParallelPython import * ModuleNotFoundError: No module named 'vtkIOParallelPython'
opengeostat commented 5 years ago

@emreekm,

This looks like a broken installation of VTK. This is a Linux or a Mac OS?