Creating an executable file from a Python script
OMIDMahmoodi
Posts: 3
Hi, I wrote a Python script to calculate the time decay constant for time-domain EM data, and it works well. But when I build an executable file from the Python script using cx_Freeze, I can't run the program. I get an Python error of "File NotFoundError" (attached image) caused by a file named "library.zip\geosoft\pkg_info.json".
I'd really appreciate it if anyone could help me with this.
Regards
Omid
I'd really appreciate it if anyone could help me with this.
Regards
Omid
1
Comments
-
Thanks for your responses. @IanMacLeod : copy/paste the pkg_info.json didn't solve the problem. Now, I'm trying @JacquesBeaurain 's solution. I had read that article, but I couldn't understand where I should paste the code : def find_data_file(filename): ..... .
I assume it should be in the setup.py file (the file that executes cx_Freeze). Is there any modification that should be made to the init.py for geosoft or the code: def find_data_file(filename): ?
Regards
O,0
This discussion has been closed.
Categories
- All Categories
- 302 Community
- 3 Get Started
- 17 Latest Releases
- 16 Member Spotlight
- 42 Learning
- 1.1K Products
- 565 Geology
- 538 Leapfrog
- 1 Volsung
- 26 Visible Geology
- 36 Data Management & Collaboration
- 14 MX Deposit
- 13 Central
- 9 Imago
- 137 Geotechnical
- 137 GeoStudio
- 332 Geophysics
- 321 Oasis montaj
- 1 Workbench
- SPIA
- 10 Res2DInv & Res3DInv
- 3 Evo
- 27 GX Developer