intrepidcs / python_ics

Library for interfacing with Intrepid devices in Python
MIT License
61 stars 29 forks source link

After I package the exe, the program will report an error #121

Closed hjkipom closed 2 years ago

hjkipom commented 2 years ago

error code: File "ics__init__.py", line 2, in AttributeError: module 'ics.structures' has no attribute 's_extended_data_flash_header'

hjkipom commented 2 years ago

The whole process

Traceback (most recent call last): File "GUI.py", line 5, in File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "C:\Users\Lenovo\AppData\Roaming\Python\Python39\site-packages\PyInstaller\loader\pyimod03_importers.py", line 49 3, in exec_module exec(bytecode, module.dict) File "MODEL.py", line 1, in File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "C:\Users\Lenovo\AppData\Roaming\Python\Python39\site-packages\PyInstaller\loader\pyimod03_importers.py", line 49 3, in exec_module exec(bytecode, module.dict) File "VALUE_CAN4.py", line 555, in File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "C:\Users\Lenovo\AppData\Roaming\Python\Python39\site-packages\PyInstaller\loader\pyimod03_importers.py", line 49 3, in exec_module exec(bytecode, module.dict) File "ics__init__.py", line 2, in AttributeError: module 'ics.structures' has no attribute 's_extended_data_flash_header'

drebbe-intrepid commented 2 years ago

Please see https://python-ics.readthedocs.io/en/v905.10/#pyinstaller for details on how to package

drebbe-intrepid commented 2 years ago

I'm going to close this out assuming this issue has been resolved. Please feel free to re-open this if not.