[Paraview] problem freezing python

Burlen Loring bloring at lbl.gov
Mon Apr 24 18:03:29 EDT 2017


Hi Ben,

Right you are, should be : and not ' '. Seems as though the issues are 
all related to recent OS upgrades on our side. I reinstalled Python and 
the build completes without error and I see all the output of the 
freezing process.

One issue I'm still having is that import math fails. Other modules like 
numpy import it, and as a result fail to import as well. See below. I'm 
hesitant to install with freezing because of this. math seems to be an 
essential module, without which it would be difficult to do any on the 
fly calculations such as camera positioning etc. Do you have any plans 
to fix this?

swowner at cori01:/usr/common/software/ParaView/builds/ParaView-5.3.0> 
./bin/pvpython
Python 2.7.12 (default, Apr 24 2017, 13:19:37)
[GCC 6.3.0 20161221 (Cray Inc.)] on linux2
 >>> import math
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
ImportError: No module named math

On 04/24/2017 06:52 AM, Ben Boeckel wrote:
> On Fri, Apr 21, 2017 at 12:10:36 -0700, Burlen Loring wrote:
>> That file lives in: lib/python2.7/config/config.c.in
> OK, it looks like the freeze_paraview.py file can't find it. Could you
> debug around line 250 to see what it is actually doing?
>
>> -set(ENV{PYTHONPATH} "${PACKAGE_ROOT}")
>> +set(ENV{PYTHONPATH} "${PACKAGE_ROOT} $ENV{PYTHONPATH}")
> I don't see how this is valid (unless breaking the first entry in
> `PYTHONPATH` is the goal); it should be separated by a colon.
>
>> "/usr/common/software/ParaView/python/2.7.12/lib/python2.7/struct.py",
> What Python is this? Where did it come from?
>
>> line 1, in <module>
>>       from _struct import *
>> ImportError: No module named _struct
> Can you import it in the interpreter living in the above directory?
>
> --Ben



More information about the ParaView mailing list