Re: Didn't find pellet when executing app built by pyinstaller

Posted by Jiba on
URL: http://owlready.306.s1.nabble.com/Didn-t-find-pellet-when-executing-app-built-by-pyinstaller-tp1574p1584.html

Hi,

I get the same error with -F (ModuleNotFoundError: No module named 'packaging.version').

I fixed this problem by adding:

import packaging.version
import packaging.specifiers
import packaging.requirements
import packaging.markers

I now obtain a FileNotFoundError for Pellet (which is your error, I believe).

You can solve it using the "--add-data" parameter of pyinstaller, as follows:

    pyinstaller  --add-data ~/src/owlready2/pellet:owlready2/pellet  test4.py

You need to replace "~/src/owlready2/pellet" with the path to the pellet directory in Owlready2.

Jiba