我有一个tkinter gui,使用pyopenms包读取mzml文件。当我运行脚本时,它运行良好。但是在我使用pyinstaller将它部署到.exe文件后,它不起作用。我可以打开GUI,其他功能/按钮仍然可以使用。只有当我单击“读取”按钮(运行使用pyopenms包的读取mzml函数)时,gui才会自动关闭。
python 3.7版
我删除了使用pyopenms包的功能,然后部署到.exe。该GUI工作正常。因此,我相信是pyopenms部分停止了gui。
使用pyopenms的代码:
exp=MSExperiment()
MzMLFile().load(list_of_files[sample][2:],exp)
all_chroms=exp.getChromatograms()
for each_chrom in all_chroms:
intensity_serie = list()
for each_in in each_chrom:
intensity_serie.extend([each_in.getIntensity()])
intensity_df.append(np.array(intensity_serie))
i+=1