Hi, have you find a solution for this? Because i faced the same problem, or similar...
Can you please tell me where you executed this commands? During bulding exe file?
pyi-makespec --paths=/path/to/thisdir \
--paths=/path/to/otherdir myscript.py
I will try to do this the same