Someone's already fixing that one. https://github.com/pyinstaller/pyinstaller-hooks-contrib/pull/565
On Thursday, March 30, 2023 at 2:39:38 PM UTC+1 Yitzhak Weissman wrote: > 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? > -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/01241d70-3abb-4a2e-a932-4ee0e320607cn%40googlegroups.com.
