You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running pyinstaller on a script called foo. In the script's directory, there is a subdirectory named util, and in it is a script named bar.py. In foo, I have:
import os
import sys
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
from utils.bar import func1, func2
# ... etc. ...
after pyinstaller runs and I try running the executable in dist/, I get:
File "foo/foo.py", line 23, in <module>
ModuleNotFoundError: No module named 'utils'
Of course, the original script itself runs fine.
My question: Is this a pyinstaller bug, or am I doing something wrong?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm running pyinstaller on a script called
foo
. In the script's directory, there is a subdirectory namedutil
, and in it is a script namedbar.py
. Infoo
, I have:after pyinstaller runs and I try running the executable in
dist/
, I get:Of course, the original script itself runs fine.
My question: Is this a pyinstaller bug, or am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions