Segmentation fault with matplotlib

12 views
Skip to first unread message

Hongkun Liang

unread,
Feb 4, 2020, 3:31:53 AM2/4/20
to PyInstaller
Hello there,
This is Johnson, and I am now using anaconda with pyinstaller to generate a executable script for linux.  And attached condaList is my conda setup and test.py is the script to re-product the issue.
I use below command to generate the executable script:
pyinstaller --noupx --onedir test.py

The generate script can work in anaconda environment, but when I use it outside of anaconda, it will get below error information:

[pid 23196] open("/home/s250_dft_1/users/hongkun/CQScan/sample_input_files/dist/test/test", O_RDONLY|O_CLOEXEC)
see here
[pid 23196] open("/home/s250_dft_1/users/hongkun/CQScan/sample_input_files/dist/test/test", O_RDONLY|O_CLOEXEC)
[pid 23196] open("/home/s250_dft_1/users/hongkun/CQScan/sample_input_files/dist/test/test", O_RDONLY|O_CLOEXEC)
[pid 23196] --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_KERNEL, si_addr=0} ---
Fatal Python error: Segmentation fault

Current thread 0x00002b727b55eba0 (most recent call first):
  File "<__array_function__ internals>", line 6 in dot
  File "site-packages/matplotlib/transforms.py", line 1991 in scale
  File "site-packages/matplotlib/figure.py", line 353 in __init__
  File "site-packages/matplotlib/backend_bases.py", line 3258 in new_figure_manager
  File "site-packages/matplotlib/pyplot.py", line 545 in figure
  File "site-packages/matplotlib/pyplot.py", line 603 in gcf
  File "site-packages/matplotlib/pyplot.py", line 919 in gca
  File "site-packages/seaborn/matrix.py", line 525 in heatmap
  File "test.py", line 15 in <module>
[pid 23196] --- SIGSEGV {si_signo=SIGSEGV, si_code=SI_TKILL, si_pid=23196, si_uid=30347} ---
[pid 23196] +++ killed by SIGSEGV +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=23196, si_status=SIGSEGV, si_utime=168, si_stime=33}
--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_TKILL, si_pid=23195, si_uid=30347} ---
+++ killed by SIGSEGV +++
Segmentation fault


Can someone help to check this and give me a hand?

Thanks and have a nice day.

Best regards

Johnson
test.py
condaList
Reply all
Reply to author
Forward
0 new messages