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

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/5a96a2ac-7bf9-42cc-a5cd-f2fe9d8df0d8%40googlegroups.com.
import numpy as np
import cv2,re,gzip,os,sys
import seaborn as sns; 
import binascii
import faulthandler
faulthandler.enable()


sns.set()
from pylab import savefig
maxRows = 561
maxCols = 461
faultDensityImg = np.zeros((maxRows,maxCols),dtype=np.float)
print ("see here") 
ax = sns.heatmap(faultDensityImg, vmin=0, vmax=1,cmap='hot_r')
print ("see here0") 
fig = ax.get_figure()
print ("see here1") 
fig.savefig('./faultDensityHeatMap.png')	

Attachment: condaList
Description: Binary data

Reply via email to