The main script imports the other one as follows:
from file_2 import function_name.
Both files are in the same directory. This import apparently causes the issue. I tried adding flags: --hidden-import <file_2> and before that --paths
<file_2> , and got the same result.
The basic command was: python
pyinstaller --onefile file_1.py
, to which I added flags.
Can you see where the issue is?Thanks!