Score:0

ModuleNotFoundError: No module named 'pyaml'?

it flag

I cannot seem to get pyaml working correctly - is someone able to push me in the right direction?

novalak@ubuntu:~/DockerApps/autocompose$ python --version
Python 3.8.10

novalak@ubuntu:~/DockerApps/autocompose$ sudo python -m pip install pyyaml
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (5.3.1)

novalak@ubuntu:~/DockerApps/autocompose$ env
PYTHONPATH=/usr/lib/python3/dist-packages

novalak@ubuntu:~/DockerApps/autocompose$ sudo python autocompose.py plesk
Traceback (most recent call last):
  File "autocompose.py", line 3, in <module>
    import sys, argparse, pyaml, docker
ModuleNotFoundError: No module named 'pyaml'
Rustam A. avatar
za flag
You have pyyaml and pyaml, right? )
Score:0
tr flag

Notice that you have installed pyyaml but you are importing pyaml. Try pip install pyaml

or import sys, argparse, pyyaml, docker

I think it will solve the problem.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.