Re: Didn't find pellet when executing app built by pyinstaller
I've tried PyInstaller, but I get the following error, even before calling the reasoner:
Traceback (most recent call last):
File "site-packages/PyInstaller/loader/rthooks/pyi_rth_pkgres.py", line 11, in <module> File "/usr/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module
File "site-packages/pkg_resources/__init__.py", line 82, in <module> ModuleNotFoundError: No module named 'packaging.version'
 Failed to execute script pyi_rth_pkgres
I've never used PyInstaller previously, and so it is difficult for me to understand where is the problem... You probably need a custom spec file for declaring the Pellet dependency.
Note that Owlready2 use the owlready2.reasoning._PELLET_CLASSPATH list to store the files required by Pellet. You may put those file anywhere in your program's file, and then modify the value of _PELLET_CLASSPATH, as a workaround.