Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ParaView ParaView
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,962
    • Issues 1,962
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 98
    • Merge requests 98
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ParaViewParaView
  • ParaViewParaView
  • Issues
  • #20146
Closed
Open
Issue created Aug 13, 2020 by Bob Weigel@rweigel

Can't import numpy in pvpython on OS-X, ParaView 5.8.{0,1}

We were having difficulty running a script using

/Applications/ParaView-5.8.0.app/Contents/MacOS/paraview --script=...

The application would hang (OS-X spinner shown indefinitely). We suspect that the issue may involve importing numpy. If we execute

/Applications/ParaView-5.8.0.app/Contents/bin/pvpython

or

/Applications/ParaView-5.8.1.app/Contents/bin/pvpython

and enter import numpy, we are not returned a python command prompt (import six works as expected). This behavior was found on OS-X 10.15.4 and 10.15.6. The stack trace that is shown when we enter CTRL-C is shown below. On OS-X 10.14, I get a different error, which is shown below. To further complicate matters, I don't have this issue on a mac mini running OS-X 10.15.5. I don't know if the explanation involves the fact that the failures were observed on macbook pros or if there is something special about OS-X 10.15.5 (I am not given the option to install 10.15.5 on the macbook pro.)

If we do the same using

/Applications/ParaView-5.7.0.app/Contents/bin/pvpython

numpy imports as expected.

Stack Trace OS-X 10.15.4/ParaView 5.8.1

Produced using /Applications/ParaView-5.8.1.app/Contents/bin/pvpython, entering import numpy and then CTRL+C on OS-X 10.15.4

WARNING: Python 2.7 is not recommended. 
This version is included in macOS for compatibility with legacy software. 
Future versions of macOS will not include Python 2.7. 
Instead, it is recommended that you transition to using 'python3' from within Terminal.

Python 2.7.16 (default, Feb 29 2020, 17:48:40) 
[GCC 4.2.1 Compatible Apple LLVM 11.0.3 (clang-1103.0.29.20) (-macos10.15-objc- on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import six
>>> import numpy
^C
Loguru caught a signal: SIGINT
Stack trace:
80      0x7fff72185cc9 start + 1
79         0x10230e7d6 ParaViewPython::Run(int, int, char**) + 598
78         0x10370b795 vtkPythonInterpreter::PyMain(int, char**) + 485
77      0x7fff4356031b Py_Main + 3219
76      0x7fff4354e1a4 PyRun_AnyFileExFlags + 60
75      0x7fff4354e28f PyRun_InteractiveLoopFlags + 87
74      0x7fff4354e7fb PyRun_InteractiveOneFlags + 344
73      0x7fff4354e9b6 PyParser_ASTFromFile + 279
72      0x7fff4352c9d3 PyEval_EvalCode + 32
71      0x7fff4352cbec PyEval_EvalCodeEx + 531
70      0x7fff43530ad9 PyEval_EvalFrameEx + 14562
69      0x7fff43535feb PyEval_CallObjectWithKeywords + 159
68      0x7fff434b6143 PyObject_Call + 97
67      0x7fff4352876b _PyBuiltin_Init + 1280
66      0x7fff435452ca PyImport_ImportModuleLevel + 582
65      0x7fff435462c3 PyImport_AppendInittab + 770
64      0x7fff435466eb PyImport_AppendInittab + 1834
63      0x7fff43546eaf PyImport_AppendInittab + 3822
62      0x7fff43546c26 PyImport_AppendInittab + 3173
61      0x7fff43543ea9 PyImport_ExecCodeModuleEx + 212
60      0x7fff4352c9d3 PyEval_EvalCode + 32
59      0x7fff4352cbec PyEval_EvalCodeEx + 531
58      0x7fff43530ad9 PyEval_EvalFrameEx + 14562
57      0x7fff43535feb PyEval_CallObjectWithKeywords + 159
56      0x7fff434b6143 PyObject_Call + 97
55      0x7fff4352876b _PyBuiltin_Init + 1280
54      0x7fff435453ab PyImport_ImportModuleLevel + 807
53      0x7fff4354650f PyImport_AppendInittab + 1358
52      0x7fff435466eb PyImport_AppendInittab + 1834
51      0x7fff43546eaf PyImport_AppendInittab + 3822
50      0x7fff43546c26 PyImport_AppendInittab + 3173
49      0x7fff43543ea9 PyImport_ExecCodeModuleEx + 212
48      0x7fff4352c9d3 PyEval_EvalCode + 32
47      0x7fff4352cbec PyEval_EvalCodeEx + 531
46      0x7fff43530ad9 PyEval_EvalFrameEx + 14562
45      0x7fff43535feb PyEval_CallObjectWithKeywords + 159
44      0x7fff434b6143 PyObject_Call + 97
43      0x7fff4352876b _PyBuiltin_Init + 1280
42      0x7fff435453ab PyImport_ImportModuleLevel + 807
41      0x7fff4354650f PyImport_AppendInittab + 1358
40      0x7fff435466eb PyImport_AppendInittab + 1834
39      0x7fff43546c26 PyImport_AppendInittab + 3173
38      0x7fff43543ea9 PyImport_ExecCodeModuleEx + 212
37      0x7fff4352c9d3 PyEval_EvalCode + 32
36      0x7fff4352cbec PyEval_EvalCodeEx + 531
35      0x7fff43530ad9 PyEval_EvalFrameEx + 14562
34      0x7fff43535feb PyEval_CallObjectWithKeywords + 159
33      0x7fff434b6143 PyObject_Call + 97
32      0x7fff4352876b _PyBuiltin_Init + 1280
31      0x7fff435452ca PyImport_ImportModuleLevel + 582
30      0x7fff435462c3 PyImport_AppendInittab + 770
29      0x7fff435466eb PyImport_AppendInittab + 1834
28      0x7fff43546c26 PyImport_AppendInittab + 3173
27      0x7fff43543ea9 PyImport_ExecCodeModuleEx + 212
26      0x7fff4352c9d3 PyEval_EvalCode + 32
25      0x7fff4352cbec PyEval_EvalCodeEx + 531
24      0x7fff43530ad9 PyEval_EvalFrameEx + 14562
23      0x7fff43535feb PyEval_CallObjectWithKeywords + 159
22      0x7fff434b6143 PyObject_Call + 97
21      0x7fff4352876b _PyBuiltin_Init + 1280
20      0x7fff435452ca PyImport_ImportModuleLevel + 582
19      0x7fff435462c3 PyImport_AppendInittab + 770
18      0x7fff435466eb PyImport_AppendInittab + 1834
17      0x7fff43546eaf PyImport_AppendInittab + 3822
16      0x7fff43546c26 PyImport_AppendInittab + 3173
15      0x7fff43543ea9 PyImport_ExecCodeModuleEx + 212
14      0x7fff4352c9d3 PyEval_EvalCode + 32
13      0x7fff4352cbec PyEval_EvalCodeEx + 531
12      0x7fff43531b00 PyEval_EvalFrameEx + 18697
11      0x7fff4353668f _PyEval_SliceIndexNotNone + 368
10      0x7fff43531bad PyEval_EvalFrameEx + 18870
9       0x7fff434b6143 PyObject_Call + 97
8       0x7fff434f95fd PyType_Ready + 8041
7          0x1147b3344 PyCData_set + 3761
6          0x1147b77e6 _ctypes_alloc_callback + 171
5       0x7fff6ff341ad ffi_closure_alloc + 1501
4       0x7fff6ff35d92 dlmmap + 143
3       0x7fff6ff35df2 dlmmap_locked + 77
2       0x7fff6ff3603c open_temp_exec_file_dir + 104
1       0x7fff7221192d mkostemp + 84
0                  0x0 4   ???                                 0x0000000000000000 0x0 + 0
(  21.540s) [paraview        ]                       :0     FATL| Signal: SIGINT

Stack Trace OS-X 10.14/ParaView 5.8.1

Produced using /Applications/ParaView-5.8.0.app/Contents/bin/pvpython, entering import numpy and then CTRL+C.

Python 2.7.10 (default, Aug 17 2018, 17:41:52)
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Applications/ParaView-5.8.0.app/Contents/Python/numpy/__init__.py", line 142, in <module>
    from . import core
  File "/Applications/ParaView-5.8.0.app/Contents/Python/numpy/core/__init__.py", line 95, in <module>
    from . import numeric
  File "/Applications/ParaView-5.8.0.app/Contents/Python/numpy/core/numeric.py", line 39, in <module>
    from ._internal import TooHardError, AxisError
  File "/Applications/ParaView-5.8.0.app/Contents/Python/numpy/core/_internal.py", line 16, in <module>
    import ctypes
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 555, in <module>
    _reset_cache()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 279, in _reset_cache
    CFUNCTYPE(c_int)(lambda: None)
MemoryError
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking