12.04 - Trouble loading paraview module on python, libprotobuf ERROR - Ask Ubuntu
i want automate use of paraview using python. i'm using python 2.7, paraview 3.14.1 on ubuntu 12.04 lts. however, having problems loading required modules write python script. when run
import paraview.simple
i get
libprotobuf error /build/buildd/paraview3.14.1/utilities/protobuf/ src/google/protobuf/descriptor_database.cc:57] file exists in database: vtkpvmessage.proto libprotobuf fatal /build/buildd/paraview3.14.1/utilities/protobuf/ src/google/protobuf/descriptor.cc:860] check failed: generated_database_- >add(encoded_file_descriptor, size): aborted (core dumped)
if run
import paraview help(paraview)
i get
name paraview file /usr/lib/python2.7/dist-packages/paraview/__init__.py module docs http://docs.python.org/library/paraview description module not meant used directly. please @ 1 of modules provides: servermanager pvfilters vtk numeric util simple :
and then
help(paraview.simple) attributeerror: 'module' has no attribute 'simple'
the file "simple.py" , "simple.pyc" in paraview folder indicated help(paraview). should note recommended way load module
try: paraview.simple except: paraview.simple import *
returns same libprotobuf error described above. since can access paraview module, seems though there issue library simple calling? maybe? have no idea of means. help.
edit
i able load paraview.simple few times, received errors described above. tried restarting ubuntu. shot in dark, know, don't know else do. tried load of other modules: paraview.pvfilters, paraview.vtk, , paraview.util loaded; while paraview.servermanager gave same error paraview.simple.
edit 2
going follow rabbit hole this link , see if helps
Comments
Post a Comment