Python fails with static ParaView
Python is now failing with static ParaView. I believe we are also combining all of the Python files into a zip file, but I couldn't find the magic directory that Utkarsh points to:
python simple <module 'paraview.simple' from '/.../ParaViewBin-static/lib/python3.6/site-packages/_paraview.zip/paraview/simple.py'>
This is from bug number #19451.
Bug numer #19451 is probably related to this bug.
Here is how to replicate:
- Build ParaView static. I left everything 3rd party non static.
- NOTE - Non static builds work correctly.
- Linux, master (v5.7.0-789-gb0ea5870), remote server.
- View/ Python Shell.
>>> Python 3.7.4 (default, Nov 20 2019, 11:53:55) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)] on linux >>> from paraview.simple import * >>> sphere=Sphere() Traceback (most recent call last): File "<console>", line 1, in <module> NameError: name 'Sphere' is not defined