Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPie compatibility broken #3

Closed
isidentical opened this issue Nov 13, 2021 · 0 comments · Fixed by #4
Closed

HTTPie compatibility broken #3

isidentical opened this issue Nov 13, 2021 · 0 comments · Fixed by #4

Comments

@isidentical
Copy link

It seems like the plugin is trying to import ExitStatus directly from the outermost httpie namespace while it currently does not support that (probably supported in an older version)

Traceback (most recent call last):
  File "/usr/local/bin/httpie", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/httpie/manager.py", line 196, in main
    return raw_main(
  File "/usr/local/lib/python3.9/site-packages/httpie/core.py", line 31, in raw_main
    plugin_manager.load_installed_plugins(env.config.plugins_dir)
  File "/usr/local/lib/python3.9/site-packages/httpie/plugins/manager.py", line 72, in load_installed_plugins
    plugin = entry_point.load()
  File "/usr/local/lib/python3.9/site-packages/importlib_metadata/__init__.py", line 194, in load
    module = import_module(match.group('module'))
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/root/.config/httpie/plugins/lib/python3.9/site-packages/httpie_aws_auth.py", line 8, in <module>
    from httpie import ExitStatus
ImportError: cannot import name 'ExitStatus' from 'httpie' (/usr/local/lib/python3.9/site-packages/httpie/__init__.py)
This was referenced Jan 9, 2022
@jkbrzt jkbrzt closed this as completed in #4 Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant