michalsta / opentims

Open-source C++ and Python module for opening binary timsTOF data files.
Other
41 stars 11 forks source link

ImportError after Pyintaller packaging #8

Closed fangfeiz closed 2 years ago

fangfeiz commented 2 years ago

We used Pyinstaller to package our python based programs including timspy to process diaPASEF file into a binary executable file, however, we got these errors if we run the packaged binary. image Could you please help have a look at of these errors? We packaged sqlite3 but the errors seem still come from sqlite3.

michalsta commented 2 years ago

Okay, so this is quite complicated. I didn't have the time to play with PyInstaller+opentimspy combo yet, but you might get some luck trying the prerelease version of opentimspy (...a7 I think it is now) - we changed the build system a bit, which might resolve your issue. Or make it even worse ;) please report if it works, and if not I'll look into this further. I guess pyinstaller is something we would ultimately like to support...

fangfeiz commented 2 years ago

we recompiled the .so libraries and now it worked. Thanks for your suggestion anyway. All the best.