Python 3.8.10 Ubuntu 20.04.3 LTS
I was getting an error saying module not found when importing unasync. Decided to go to python and access help() and then modules which displays a list of all available modules and confirms that unasync was available.
I then tried the "modules unasync" and received the following output
help> modules unasync
Here is a list of modules whose name or summary contains 'unasync'.
If there are any, enter a module name to get more help.
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.8/_sitebuiltins.py", line 103, in __call__ return pydoc.help(*args, **kwds) File "/usr/lib/python3.8/pydoc.py", line 1918, in __call__ self.interact() File "/usr/lib/python3.8/pydoc.py", line 1945, in interact self.help(request) File "/usr/lib/python3.8/pydoc.py", line 1964, in help self.listmodules(request.split()[1]) File "/usr/lib/python3.8/pydoc.py", line 2100, in listmodules apropos(key) File "/usr/lib/python3.8/pydoc.py", line 2194, in apropos ModuleScanner().run(callback, key, onerror=onerror) File "/usr/lib/python3.8/pydoc.py", line 2155, in run loader = spec.loader
AttributeError: 'NoneType' object has no attribute 'loader'any suggestions how I can unravel this situation much appreciated.
Brian
1 Answer
Ubuntu does not have such unasync package in the official repository.
Repology says that it is available via PyPi.
So you have to install this package by
sudo apt-get install python3-pip
sudo pip3 install unasyncand then retry to access it and its help.
1