py2exe

BartHoekstra
BartHoekstra Posts: 1 Calcite Rank Badge
edited March 2023 in Oasis montaj
I'm wondering if anyone has any experience running py2exe to create a standalone executable that uses the Geosoft python module?

I'm getting the following error when I run the created executable

Traceback (most recent call last):
  File "export.py", line 6, in <module>
    import geosoft.gxpy as gxpy
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
  File "geosoft\__init__.pyc", line 11, in <module>
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Projects\\export\\dist\\library.zip\\geosoft\\pkg_info.json'

Tagged: