If I’m reading this right, you’ve got raw .py scripts in the src folder and 
presumably you’re running them as subprocesses using something akin to 
subprocess.run(["python", 
"src/IO_Analysis.py"]) or possibly something involving exec()? So you’re 
giving code to PyInstaller as data files so it has no idea that it needs to 
scan them for dependencies and you’re invoking that code using a random 
Python interpreter instead of the one PyInstaller collected so even if 
PyInstaller did know to collect numpy, you wouldn’t be able to use it 
anyway.

I suggest that you stop trying to structure your code like a C++ project. 
Move everything out of src and into the top level of your project then use 
import 
IO_Analysis; IO_Analysis.do_something() instead of whatever you're using to 
invoke the other scripts. Or better yet, learn how to properly structure 
Python projects 
<https://packaging.python.org/en/latest/tutorials/packaging-projects/>.
​

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/60218cae-e189-405d-95c8-4f8dcef8c50cn%40googlegroups.com.

Reply via email to