Python Forum
problem with libspatialindex using tkinter - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: problem with libspatialindex using tkinter (/thread-28834.html)



problem with libspatialindex using tkinter - Timych - Aug-05-2020

I am trying to generate .exe with the help of pyinstaller. However, when I try to run my executable file it generates an error :

in exec_module
      exec(bytecode,module.__dict__)
File "rtree\core.py",line 126, in <module>
OSError: could not find or load spatialindex_c-64.dll
[16436] Failed to execute script main
I have seen few questions related to this problem but nothing helps. I tried to uninstall rtree and download a .whl file but after installation error was similiar but spatialindex_c-64.dll was substituted with spatialindex_c.dll


Thank for response!


RE: problem with libspatialindex using tkinter - buran - Aug-05-2020

First of all - your problem has nothing to do with tkinter. You don't mention pyinstaller in your thread title.
We don't see your code, but it's most likely that's a problem with the import or path
Check https://pyinstaller.readthedocs.io/en/stable/when-things-go-wrong.html