Import error when running python script inside docker container? Import error when running python script inside docker container? docker docker

Import error when running python script inside docker container?


I think this error occurred because of the '.' representing the path is wrong . In local '.' adopts to the current directory .But in Docker '.' gets the path from the some root directories.

Try to give that path as static path or use the os.getcwd() method.