"No module named yaml" - not loading correct docker_base_image?
See original GitHub issueAgain, running locally on redux branch:
When I try to launch an experiment, get a ImportError: No module named yaml
when App.py is called.
pyyaml
is in the requirements.txt in base_docker_image, so not sure why this would be.
Learning from the last issue, I compared the ec2 docker-compose to the local docker-compose: The former has:
minionworker:
build: next/base_docker_image
The latter has:
minionworker:
build: /home/ubuntu/NEXT/next/base_docker_image
(same for nextbackenddocker
, which is also showing the import error)
So I thought this was the issue… calling the wrong requirements file or something… tried playing around with a few things with no luck.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
ImportError: No module named 'yaml' - python - Stack Overflow
sudo apt install python-yaml. ----- Updates -----. I had another issue for No module named 'rospkg' , but it was also installed already....
Read more >ModuleNotFoundError: No module named 'yaml' in Python
The Python "ModuleNotFoundError: No module named 'yaml'" occurs when we forget to install the pyyaml module before importing it or install it in...
Read more >ModuleNotFoundError: No module named 'yaml' #291 - GitHub
I have updated to the newest version 5.1 but yaml module is not ... pyyaml showing as installed but throwing the "no module"...
Read more >Fix ModuleNotFoundError (No Module Named YAML) Python ...
python #error # fix #fixed #howto Hey guys in this tutorial let's try to fix ModuleNotFoundError No module named YAML in cases where...
Read more >Error saying ImportError No module named yaml - Edureka
Your answer This error means It is unable to find the yaml package which is provided by PyYaml pip package.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@lalitkumarj figured it out. The redux version was trying to launch on the docker images built with the master version… I deleted the docker images and rebuilt them using the redux Dockerfile and it works now.
Also tried adding:
python-yaml
to the Dockerfile, which should install the ubuntu package containing that module… no luck