[Paraview] python error when importing paraview.simple with paraview 5.0

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Sun Apr 17 11:03:38 EDT 2016


Sean,

Sorry for not getting back to you sooner. But as you discovered, it's
generally not a good idea to set LD_LIBRARY_PATH globally. What you're
doing is a reasonable approach for now. In future, we do plan to
update the ParaView build infrastructure to use rpath for installed
binaries to avoid running into this issue. Not sure when that would
happen, but it's on the charts.

Utkarsh

On Sat, Apr 16, 2016 at 4:42 AM, sean read <read.sean62 at gmail.com> wrote:
> So I'm using wrapper files, described here to add the directory to my
> LD_LIBRARY_PATH where necessary. Not a great solution, but it's sufficient
> for now
>
> On Wed, 13 Apr 2016 at 12:04 sean read <read.sean62 at gmail.com> wrote:
>>
>> Wait, check that, so adding  ".../lib/paraview-5.0" did fix the problem
>> with python, but it has had other negative side effects. Now when I open
>> certain filetypes in vim (so far that I've checked, .py, .tex, .bib, which
>> are all types for which I have customised options) the terminal window shows
>> strange text. For example:
>>
>>  "exim.py" 258L, 6565CTraceback (most recent call last):
>>                                                          File
>> "/usr/lib/python2.7/site.py", line 563, in <module>
>>
>> main()
>>
>> File "/usr/lib/python2.7/site.py", line 545, in main
>>
>> known_paths = addusersitepackages(known_paths)
>>
>> File "/usr/lib/python2.7/site.py", line 272, in addusersitepackages
>>                                                                user_site =
>> getusersitepackages())
>>
>>
>>
>> After this it becomes unresponsive and I have to close the terminal. I am
>> not entirely familiar with the use of the LD_LIBRARY_PATH, is there any
>> reason that this alteration would effect the operation of vim?
>>
>>
>> On Tue, 12 Apr 2016 at 22:18 sean read <read.sean62 at gmail.com> wrote:
>>>
>>> Great! that fixed the problem, now everything is working perfectly
>>>
>>> On Tue, 12 Apr 2016 at 22:12 Utkarsh Ayachit
>>> <utkarsh.ayachit at kitware.com> wrote:
>>>>
>>>> Try setting your LD_LIBRARY_PATH to include the ".../lib/paraview-5.0"
>>>> directory.
>>>>
>>>> On Tue, Apr 12, 2016 at 5:53 AM, sean read <read.sean62 at gmail.com>
>>>> wrote:
>>>> > So I've downloaded paraview5.0 from the website
>>>> > http://www.paraview.org/download/nload/, and set my python path as
>>>> >
>>>> >
>>>> > :/home/sean/bin/ParaView-5.0.1-Qt4-OpenGL2-MPI-Linux-64bit/lib/paraview-5.0:/home/sean/bin/ParaView-5.0.1-Qt4-OpenGL2-MPI-Linux-64bit/lib/paraview-5.0/site-packages/vtk:/home/sean/bin/ParaView-5.0.1-Qt4-OpenGL2-MPI-Linux-64bit/bin:/home/sean/bin/ParaView-5.0.1-Qt4-OpenGL2-MPI-Linux-64bit/lib/paraview-5.0/site-packages
>>>> >
>>>> > When I import paraview.simple in python I get the error message
>>>> >
>>>> > ImportError: libvtkCommonCorePython27D-pv5.0.so.1: cannot open shared
>>>> > object
>>>> > file: No such file or directory
>>>> >
>>>> > but libvtkCommonCorePython27D-pv5.0.so.1 is in
>>>> >
>>>> > /home/sean/bin/ParaView-5.0.1-Qt4-OpenGL2-MPI-Linux-64bit/lib/paraview-5.0,
>>>> > which is in my python path.
>>>> >
>>>> > PV python is functioning as normal
>>>> >
>>>> > I am running linux mint 17.3
>>>> >
>>>> > Any suggestions?
>>>> > --
>>>> > Sean Read
>>>> > Level 1 Yantra Yoga Instructor
>>>> >
>>>> >
>>>> > _______________________________________________
>>>> > Powered by www.kitware.com
>>>> >
>>>> > Visit other Kitware open-source projects at
>>>> > http://www.kitware.com/opensource/opensource.html
>>>> >
>>>> > Please keep messages on-topic and check the ParaView Wiki at:
>>>> > http://paraview.org/Wiki/ParaView
>>>> >
>>>> > Search the list archives at: http://markmail.org/search/?q=ParaView
>>>> >
>>>> > Follow this link to subscribe/unsubscribe:
>>>> > http://public.kitware.com/mailman/listinfo/paraview
>>>> >
>>>
>>> --
>>> Sean Read
>>> Level 1 Yantra Yoga Instructor
>>>
>> --
>> Sean Read
>> Level 1 Yantra Yoga Instructor
>>
> --
> Sean Read
> Level 1 Yantra Yoga Instructor
>


More information about the ParaView mailing list