skimage error

299 views
Skip to first unread message

Yitzhak Weissman

unread,
Mar 30, 2023, 9:39:38 AM3/30/23
to PyInstaller
I have a script named skimage_test.py which reads:
import skimage
print(skimage.__version__)
When the script is executed, it prints the skimage version number (0.20.0 in my case).
I compiled this script with the script:
import PyInstaller.__main__
PyInstaller.__main__.run(['skimage_test.py', '--onefile'])
The resulting executable produces an error:
Traceback (most recent call last):
  File "skimage_test.py", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
  File "skimage\__init__.py", line 74, in <module>
  File "lazy_loader\__init__.py", line 245, in attach_stub
ValueError: Cannot load imports from non-existent stub 'C:\\Users\\USER\\AppData\\Local\\Temp\\_MEI383482\\skimage\\__init__.pyi'
Any fix?

bwoodsend

unread,
Mar 31, 2023, 11:47:51 AM3/31/23
to PyInstaller
Reply all
Reply to author
Forward
0 new messages