[Paraview] wxpython and paraview 3.98
pellegrini
pellegrini at ill.fr
Mon Dec 17 05:05:27 EST 2012
Hello everybody,
I just started recently to work with paraview. It looks great. I
installed the latest version (3.98) on a windows 7 64 bit machine.
I faced troubles when trying to use the wxpython backend. You will find
enclosed the scripts that triggered the troubles:
Here they are:
- wxpython is not shipped by default with paraview (an import wx in
the python shell failed). So, I had to install it by myself
in C:\Program Files (x86)\ParaView
3.98.0\lib\paraview-3.98\site-packages. Is this normal ?
- the standard wxpython installation process with the creation of a
wx.pth file in the aformentionned directory seems to be
broken. Indeed, an import wx still failed. To make it work, I had
to add the following awful hack at the beginning of my script:
##################################
import os
import sys
if os.name == 'nt':
sys.path.append(os.path.join(os.path.dirname(sys.exec_prefix),'lib','paraview-3.98','site-packages','wx-2.8-msw-unicode'))
##################################
This hack does more or less doing what is normally done with the
standard .pth files process. Is this also something known ?
- when ran in command line with the python console shipped with
paraview (pvpython.exe) the script works. When ran in
paraview through the macros process, the contents of the
ellipsoids.txt file is not flushed on the listbox. The problem seems to
be related with the opening of the 'ellipsoids.txt' file and also
occured on an ubuntu machine ? Very weird.
- when I used the docstring with the following format:
'''blablabla
'''
the script can not be executed from paraview. I have to format
them as they are in the enclosed scripts ?
for all these reasons, I have the feeling that the python shipped with
paraview is not a standard one or something is done on top of it.
Am I right ?
Would you have any idea of what is going wrong with my script (or with
paraview) ?
thank you very much
-------------- next part --------------
555771 0 0 0 1 2 3 1 0 0 0 1 0 0 0 1
555772 0 0 0 1 2 3 1 0 0 0 1 0 0 0 1
555773 0 0 0 1 2 3 1 0 0 0 1 0 0 0 1
555774 0 0 0 1 2 3 1 0 0 0 1 0 0 0 1
555775 0 0 0 1 2 3 1 0 0 0 1 0 0 0 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: racer_viz.py
Type: text/x-python-script
Size: 6491 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20121217/4f68b61a/attachment-0001.bin>
More information about the ParaView
mailing list