You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "skops\io_init_.py", line 1, in
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "skops\io_persist.py", line 22, in
File "importlib_init_.py", line 90, in import_module
ModuleNotFoundError: No module named 'skops.io._sklearn'
The text was updated successfully, but these errors were encountered:
I'm using version 0.10.0, the fix for now on my side was to add the following sets of hidden imports so that pyinstaller can collect/include the right files for skops in the distribution:
from PyInstaller.utils.hooks import collect_submodules
hidden_imports = collect_submodules("skops")
hidden_imports.extend(collect_submodules("skops.io.old"))
# give hidden_imports to pyinstaller
It's the first time I hear of pyinstaller. I'd welcome a fix here. It'd take me a while for me to get to this since I'd need to setup a windows machine and figure out how pyinstaller works to find a fix.
python 3.12 on windows 10 (pyinstaller 6.10.0):
File "skops\io_init_.py", line 1, in
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "skops\io_persist.py", line 22, in
File "importlib_init_.py", line 90, in import_module
ModuleNotFoundError: No module named 'skops.io._sklearn'
The text was updated successfully, but these errors were encountered: