ModuleNotFoundError
when running Python
#4248
Unanswered
dynamite-bud
asked this question in
Q&A
Replies: 3 comments 1 reply
-
The fix (from @Michael-F-Bryan ) is to mount the current directory on the host to a different directory in the guest (i.e. run |
Beta Was this translation helpful? Give feedback.
0 replies
-
We can mitigate the user experience impact. some ideas from @waynr :
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi,are there any solutions? I am struggling with some python dependencies questions. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
The problem is that the default current directory is
/
. Python gets its standard library from the files embedded in thepython/python
package, which are initially mounted in their default spot. When mounting the host's current directory to the guest's current directory, we end up clobbering the existing filesystem and core modules likeencodings
will no longer be available.Steps to reproduce
Additional context
The issue isn't specific to the python wapm package
Beta Was this translation helpful? Give feedback.
All reactions