inkstitch / inkstitch

Ink/Stitch: an Inkscape extension for machine embroidery design
https://inkstitch.org
GNU General Public License v3.0
911 stars 168 forks source link

Inkstitch getting error: frozen importlib._bootstrap #2483

Open Gorinapkins opened 10 months ago

Gorinapkins commented 10 months ago

Whenever I transfer an embroidery file to my USB stick I "save as a copy" or "save as" in the "PES" format. After that when I want to continue working on the project (open the simulator or open the params) I get the error message below. Then I have to restart Inkscape/stitch to continue working.

Traceback (most recent call last): File "scipy__init.py", line 214, in getattr__ KeyError: '_lib'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "inkstitch.py", line 29, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "lib\extensions__init.py", line 6, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "lib\extensions\troubleshoot.py", line 11, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "lib\elements__init.py", line 9, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "lib\elements\fill_stitch.py", line 22, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "lib\stitches__init.py", line 7, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "lib\stitches\circular_fill.py", line 9, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "lib\stitches\contour_fill.py", line 6, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "trimesh__init.py", line 15, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "trimesh\base.py", line 8, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "trimesh\ray__init.py", line 1, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "trimesh\ray\ray_triangle.py", line 7, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "trimesh\ray\ray_util.py", line 4, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "trimesh\bounds.py", line 5, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "trimesh\convex.py", line 21, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "scipy\spatial\init__.py", line 105, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "scipy\spatial_kdtree.py", line 5, in File "_ckdtree.pyx", line 10, in init scipy.spatial._ckdtree File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "scipy\sparse\init.py", line 283, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "scipy\sparse\csgraph\init__.py", line 182, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "scipy\sparse\csgraph_laplacian.py", line 7, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "scipy\sparse\linalg\init__.py", line 120, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "scipy\sparse\linalg_isolve\init__.py", line 4, in File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 385, in exec_module File "scipy\sparse\linalg_isolve\iterative.py", line 149, in File "scipy_lib_threadsafety.py", line 57, in decorator File "scipy_lib_threadsafety.py", line 45, in decorate File "scipy\init.py", line 216, in getattr__ AttributeError: Module 'scipy' has no attribute '_lib'

What could I do to get rid of that error message? After restarting inkscape it works again until the next time I save the project as a copy.

Best regards and thank you for your awesome work! Gori

Gorinapkins commented 9 months ago

Hi there, does anybody has the same issue or is it just me? How do you export your PES files to your USB stick to not get this error message?

Best, Gori

tyrosinase commented 9 months ago

I have weird issues (maybe this, but it's been so long since I tried it that I don't remember the error) when saving to mine, but I assumed that was because I am a big weirdo and so mine are mounted as Samba shares. (They're these rather than actual USB sticks https://silverseams.com/tutorials/converting_a_usb_drive_embroidery_machine_to_wifi/index.html )

Maybe it's an issue with all mounted drives.

Anyway my workaround is just saving them to the regular drive and then copying them over to the mounted one.

Gorinapkins commented 8 months ago

I have an update on this: When I plug in the USB stick back in the computer Ink Stitch woprks normally. So it must be a failure due to the removal of the external storage. This problem did not exist befor the latest update of Inkstitch.

LasseSchnepel commented 7 months ago

Can confirm this issue and workaround with restart or plugging the usb stick back