Closed tiger86023086 closed 3 years ago
I find in folder ics,the init.py:
try: from ics import from structures import except: from ics.ics import from ics.structures import
Is there an error in it?
Sorry for the late response, the proper way is to include the hidden_imports
into your installer script. This is currently a bug with the latest release (904.18). Master has fixed this and should be released in a couple weeks.
https://github.com/intrepidcs/python_ics/blob/master/ics/hiddenimports.py
Here is the documentation (still needs to be updated again): https://python-ics.readthedocs.io/en/master/#pyinstaller
ics.hidden_imports.hidden_imports
should be replaced with ics.hidden_imports
in the example.
for right now the only solution is copying the list in hiddenimports.py and tell pyinstaller to use them.
@tiger86023086 v905.10 is in the test repo now and should have this fixed.
https://python-ics.readthedocs.io/en/v905.10/#pyinstaller
https://test.pypi.org/project/python-ics/
If no issues are found this will be pushed to an actual release in the next week or so.
v905.11 is released and has this fixed.
When generate exe from my code which include code: ics.find_devices()
beacase genreating exe report error--no module structures.so I installl module structures 9.0.5. But then the code " ics.find_devices()" report error--ics have no attribute ''find_devices"