gempy-project / gempy

GemPy is an open-source, Python-based 3-D structural geological modeling software, which allows the implicit (i.e. automatic) creation of complex geological models from interface and orientation data. It also offers support for stochastic modeling to address parameter and model uncertainties.
https://gempy.org
European Union Public License 1.2
941 stars 232 forks source link

About issues encountered when using pyinstaller to package Windows programs #862

Closed Lian-Po-s-Study-Diary closed 1 month ago

Lian-Po-s-Study-Diary commented 6 months ago

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 commented 6 months ago

QQ截图20240103223234

Lian-Po-s-Study-Diary commented 6 months ago

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 commented 6 months ago

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

javoha commented 1 month ago

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.

Lian-Po-s-Study-Diary commented 1 month ago

thank you,this is resolved by using gempy v3