You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
httpie/httpie/output/formatters/colors.py imports from from httpie.plugins, which imports ColorFormatter, and so on ...
Python 3.8 output:
$ python -m pip install -U pip wheel setuptools pygments httpie
$ python
Python 3.8.3 (default, May 19 2020, 21:34:17)
[Clang 11.0.0 (clang-1100.0.33.12)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from httpie.output.formatters.colors import get_lexer
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/brad/Scripts/python/envs/venv/lib/python3.8/site-packages/httpie/output/formatters/colors.py", line 20, in <module>
from httpie.plugins import FormatterPlugin
File "/Users/brad/Scripts/python/envs/venv/lib/python3.8/site-packages/httpie/plugins/__init__.py", line 14, in <module>
from httpie.output.formatters.colors import ColorFormatter
ImportError: cannot import name 'ColorFormatter' from partially initialized module 'httpie.output.formatters.colors' (most likely due to a circular import) (/Users/brad/Scripts/python/envs/venv/lib/python3.8/site-packages/httpie/output/formatters/colors.py)
3.7:
$ python
Python 3.7.7 (default, Apr 9 2020, 18:09:52)
[Clang 11.0.0 (clang-1100.0.33.12)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from httpie.output.formatters.colors import get_lexer
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/brad/Scripts/python/envs/venv/lib/python3.7/site-packages/httpie/output/formatters/colors.py", line 20, in <module>
from httpie.plugins import FormatterPlugin
File "/Users/brad/Scripts/python/envs/venv/lib/python3.7/site-packages/httpie/plugins/__init__.py", line 14, in <module>
from httpie.output.formatters.colors import ColorFormatter
ImportError: cannot import name 'ColorFormatter' from 'httpie.output.formatters.colors' (/Users/brad/Scripts/python/envs/venv/lib/python3.7/site-packages/httpie/output/formatters/colors.py)
Which can be addressed with this hack:
>>> from httpie.plugins import *
>>> from httpie.output.formatters.colors import get_lexer
The text was updated successfully, but these errors were encountered:
httpie/httpie/output/formatters/colors.py
imports fromfrom httpie.plugins
, which importsColorFormatter
, and so on ...Python 3.8 output:
3.7:
Which can be addressed with this hack:
The text was updated successfully, but these errors were encountered: