ModuleNotFoundError: No module named 'yaml' and more
See original GitHub issueHi, 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:
- Created 3 years ago
- Comments:9 (5 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' #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 >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 FreeTop 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
Top GitHub Comments
Thanks for confirming and closing the issue! Thanks @iscai-msft for looping us on this issue!
@srnagar I was!