Summary: | aiohttp.* are not importable | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | Ivan Zakharyaschev <imz> |
Component: | python3-module-aiohttp | Assignee: | Антон Мидюков <antohami> |
Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
Severity: | normal | ||
Priority: | P3 | CC: | antohami, iv, ldv |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
Ivan Zakharyaschev
2019-03-13 04:24:57 MSK
> ModuleNotFoundError: No module named 'cchardet' `ccharted` is only mentioned in client_reqrep.py in the following construct: try: import cchardet as chardet except ImportError: # pragma: no cover import chardet `python.req` usually ignores such constructions, so this package is missing dependency on python3(chardet). If you install pythno3-module-chardet in your hasher, aiohttp kind of works. This dependency should, of course, be added. `aiohttp.multidit` is another story -- there is no such submodule in python3-module-aiohttp-2.2.5-alt1.1.1, nor in upstream master (https://github.com/aio-libs/aiohttp/tree/master/aiohttp). aiocouchdb requires aiohttp==0.17.4 and apparently won't work with more recent versions, so it should be removed. (In reply to comment #1) > > ModuleNotFoundError: No module named 'cchardet' > > `ccharted` is only mentioned in client_reqrep.py in the following construct: > > try: > import cchardet as chardet > except ImportError: # pragma: no cover > import chardet > > `python.req` usually ignores such constructions, so this package is missing > dependency on python3(chardet). If you install pythno3-module-chardet in your > hasher, aiohttp kind of works. This dependency should, of course, be added. Thank you for your interesting invetsigation! Another variant of the solution: simplify this code with a patch (remove "try"). > `aiohttp.multidit` is another story -- there is no such submodule in > python3-module-aiohttp-2.2.5-alt1.1.1, nor in upstream master > (https://github.com/aio-libs/aiohttp/tree/master/aiohttp). aiocouchdb requires > aiohttp==0.17.4 and apparently won't work with more recent versions, so it > should be removed. OK. [#224917] DONE del=python-module-aiocouchdb Close as notabug? (In reply to comment #3) > [#224917] DONE del=python-module-aiocouchdb > > Close as notabug? No, aiocouchdb was just a trigger for looking at aiohttp. The problem remains: (In reply to comment #0) > aiohttp.* > are not importable due to cchardet: > > [imz@team ~]$ hsh-install ~/hasher/ python3-module-aiohttp > [imz@team python-module-aiohttp.git]$ hsh-run --mount=/proc,/dev/pts ~/hasher/ > -- python3 -c 'import aiohttp' > Traceback (most recent call last): > File "/usr/lib64/python3/site-packages/aiohttp/client_reqrep.py", line 25, in > <module> > import cchardet as chardet > ModuleNotFoundError: No module named 'cchardet' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/usr/lib64/python3/site-packages/aiohttp/__init__.py", line 6, in > <module> > from .client import * # noqa > File "/usr/lib64/python3/site-packages/aiohttp/client.py", line 15, in > <module> > from . import connector as connector_mod > File "/usr/lib64/python3/site-packages/aiohttp/connector.py", line 18, in > <module> > from .client_reqrep import ClientRequest > File "/usr/lib64/python3/site-packages/aiohttp/client_reqrep.py", line 27, in > <module> > import chardet > ModuleNotFoundError: No module named 'chardet' python-module-aiohttp-2.2.5-alt2 -> sisyphus: Thu Mar 14 2019 Anton Midyukov <antohami@altlinux> 2.2.5-alt2 - Added py3_requires chardet (Closes: 36270) - Cleanup spec |