question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"No module named yaml" - not loading correct docker_base_image?

See original GitHub issue

Again, 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:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dconathancommented, May 26, 2016

@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.

0reactions
dconathancommented, May 26, 2016

Also tried adding: python-yaml to the Dockerfile, which should install the ubuntu package containing that module… no luck

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found