Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error introduced in version 0.20.0 when using PyInstaller #6784

Open
rodrigomologni opened this issue Mar 7, 2023 · 2 comments
Open

Error introduced in version 0.20.0 when using PyInstaller #6784

rodrigomologni opened this issue Mar 7, 2023 · 2 comments
Labels

Comments

@rodrigomologni
Copy link

Description:

The executable produced by PyInstaller is producing an error introduced by scikit-image v0.20.0.

image

Way to reproduce:

No response

Traceback or output:

Traceback (most recent call last):
  File "__main__.py", line 4, 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 "views\main_view.py", line 9, 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 "services\project_service.py", line 5, 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 "analysis\classify_fullcore.py", line 6, 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 243, in attach_stub
ValueError: Cannot load imports from non-existent stub 'D:\\Users\\Rodrigo\\GitHub\\mosis\\dist\\mosis\\skimage\\__init__.pyci'

Version information:

3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
Windows-10-10.0.19045-SP0
scikit-image version: 0.20.0
numpy version: 1.24.2
@stefanv
Copy link
Member

stefanv commented Mar 7, 2023

See also scientific-python/lazy_loader#39

@jni jni changed the title Error introduced in version 0.20.0 Error introduced in version 0.20.0 when using PyInstaller Mar 7, 2023
@Czaki
Copy link
Contributor

Czaki commented Mar 13, 2023

more details how to solve it after lazy loader will be released could be found here #6772 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants