gempy icon indicating copy to clipboard operation
gempy copied to clipboard

About issues encountered when using pyinstaller to package Windows programs

Open Lian-Po-s-Study-Diary opened this issue 1 year ago • 3 comments

I use pyinstaller to package Python scripts into Windows programs. An error occurred after the program was run, which should be related to the gcc compiler. It should be possible to run the script in a normal Python environment with Theano installed, but an error will be reported after packaging it into a Windows program. May I ask how I can solve this problem?

Lian-Po-s-Study-Diary avatar Jan 03 '24 14:01 Lian-Po-s-Study-Diary

QQ截图20240103223234

Lian-Po-s-Study-Diary avatar Jan 03 '24 14:01 Lian-Po-s-Study-Diary

After deleting some environment variables, the problem has been resolved.But after running the exe file, the calculation time of the model is greatly extended. Is there any solution.

Lian-Po-s-Study-Diary avatar Jan 05 '24 06:01 Lian-Po-s-Study-Diary

I found that this seems to be caused by "m2w64 toolchain" or "g++". I tried to copy "g++. exe" to the directory, but a new error message appeared and the model could not be generated

Lian-Po-s-Study-Diary avatar Jan 05 '24 14:01 Lian-Po-s-Study-Diary

Hi, sorry for the very late reply, I think we were note sure how to solve this and additionally working on the new gempy version. Have you tried this uisng gempy v3 (which does not rely on Theano anymore). Would be great to hear if this is resolved.

javoha avatar Jun 05 '24 07:06 javoha

thank you,this is resolved by using gempy v3

Lian-Po-s-Study-Diary avatar Jun 05 '24 10:06 Lian-Po-s-Study-Diary