'cannot import name 'hdrs' from partially initialized module 'aiohttp'


How to Solve RhinoWIP ScriptEditor ‘‘cannot import name ‘hdrs’ from partially initialized module ‘aiohttp’’’

It’s probably not installed properly. Try reinstalling it.

hdrs is a submodule of the latest version of aiohttp, and __init__.py imports it into its name space.

At the command line, can you do a dir c:\Users\...\default-...TVB\aiohttp, and a more c:\Users\...\default-...TVB\aiohttp\__init__.py (fill in the paths)?

That’s all correct, Python’s going to look in the same directory for hdrs.py. What’s the ouptut from the dir command?

I suspect hdrs.py is there as it should be. And that unfortunately like in Rhino 7 IronPython, perhaps the depth of the stack trace is limited. If so, when there is an error importing a module, no more information about the actual line of code (in that module or its own imports) the particular error ocurred on is given, just an ImportError.