FS#74059 - [python-black] Missing dependency on `python-aiohttp` causing blackd to fail
Attached to Project:
Community Packages
Opened by Blurgy (blurgy) - Tuesday, 08 March 2022, 13:16 GMT
Last edited by Daniel M. Capella (polyzen) - Tuesday, 08 March 2022, 21:32 GMT
Opened by Blurgy (blurgy) - Tuesday, 08 March 2022, 13:16 GMT
Last edited by Daniel M. Capella (polyzen) - Tuesday, 08 March 2022, 21:32 GMT
|
Details
Description:
When running `blackd` from command line, the following error occurs: ``` $ /bin/blackd Traceback (most recent call last): File "/bin/blackd", line 5, in <module> from blackd import patched_main File "/usr/lib/python3.10/site-packages/blackd/__init__.py", line 13, in <module> raise ImportError( ImportError: aiohttp dependency is not installed: No module named 'aiohttp'. Please re-install black with the '[d]' extra install to obtain aiohttp_cors: `pip install black[d]` $ pacman -Qo /bin/blackd /usr/bin/blackd is owned by python-black 22.1.0-2 ``` After installing package `python-aiohttp`, `blackd` runs successfully. Additional info: * package version(s) * config and/or log files etc. * link to upstream bug report, if any Steps to reproduce: 1. Install `python-black` 2. Run `/bin/blackd` from command line 3. Observe the error mentioned above. |
This task depends upon
Closed by Daniel M. Capella (polyzen)
Tuesday, 08 March 2022, 21:32 GMT
Reason for closing: Not a bug
Additional comments about closing: It's listed as an optional dep already: python-aiohttp: for the blackd HTTP server
Tuesday, 08 March 2022, 21:32 GMT
Reason for closing: Not a bug
Additional comments about closing: It's listed as an optional dep already: python-aiohttp: for the blackd HTTP server