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.

ModuleNotFoundError: No module named 'yaml' and more

See original GitHub issue

Hi, I installed autorest via npm and tried to generate a python client but it failed with ModuleNotFoundError: No module named 'yaml'. My local python3 install has it, but the program seems to be using python from C:\\Users\\fuomag9\\.autorest\\@autorest_python@5.5.0\\node_modules\\@autorest\\python\\venv\\Scripts\\python.exe instead. I manually installed pyaml on that python but it complained about other dependencies, I installed jsonrpc as well but now it’s stuck at ImportError: cannot import name 'dispatcher' from 'jsonrpc' with the traceback below:

Traceback (most recent call last):
  File "C:\Users\fuomag9\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\fuomag9\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\fuomag9\.autorest\@autorest_python@5.5.0\node_modules\@autorest\python\autorest\jsonrpc\server.py", line 11, in <module>
    from jsonrpc import dispatcher, JSONRPCResponseManager
ImportError: cannot import name 'dispatcher' from 'jsonrpc' (C:\Users\fuomag9\.autorest\@autorest_python@5.5.0\node_modules\@autorest\python\venv\lib\site-packages\jsonrpc\__init__.py)
Command '['C:\\Users\\fuomag9\\.autorest\\@autorest_python@5.5.0\\node_modules\\@autorest\\python\\venv\\Scripts\\python.exe', '-m', 'autorest.jsonrpc.server']' returned non-zero exit status 1.
Process() cancelled due to failure

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
srnagarcommented, Dec 14, 2020

Thanks for confirming and closing the issue! Thanks @iscai-msft for looping us on this issue!

1reaction
fuomag9commented, Dec 14, 2020

@srnagar I was!

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' #291 - GitHub
This is a common issue with Macs that has nothing to do with pyyaml- need to read up on system Python vs user...
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 the ......
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 >
How to solve ModuleNotFoundError: No module named 'yaml'
How to solve ModuleNotFoundError: No module named 'yaml' · Solution 1: Install YAML packages · Solution 2: Ensure you use Python <= 3...
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