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

Installation breaks HTTPie: ModuleNotFoundError: No module named 'urllib3.exceptions' #18

Open
Slooz opened this issue Mar 26, 2024 · 0 comments

Comments

@Slooz
Copy link

Slooz commented Mar 26, 2024

httpie-aws-authv4 uninstalls urllib3 from /usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages/. Other plugins don't. See:

$ brew install httpie
Warning: Treating httpie as a formula. For the cask, use homebrew/cask/httpie or specify the `--cask` flag.
==> Downloading https://ghcr.io/v2/homebrew/core/httpie/manifests/3.2.2_4-1
Already downloaded: /Users/czeluk1/Library/Caches/Homebrew/downloads/8326a367c9785f69ce68be2ce71f72b4900f1c95783e03f78d95af5a295befc4--httpie-3.2.2_4-1.bottle_manifest.json
==> Fetching httpie
==> Downloading https://ghcr.io/v2/homebrew/core/httpie/blobs/sha256:86dce0667f668caba805363925b4a4e5a36ce6cfae95b95227c890bca4897e0c
Already downloaded: /Users/czeluk1/Library/Caches/Homebrew/downloads/bf37360a12228f4fcf8ded877915e556783a0aa6d35a6022cc4da461da7c085e--httpie--3.2.2_4.sonoma.bottle.1.tar.gz
==> Pouring httpie--3.2.2_4.sonoma.bottle.1.tar.gz
🍺  /usr/local/Cellar/httpie/3.2.2_4: 1,076 files, 9.7MB
==> Running `brew cleanup httpie`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

$ httpie
usage: httpie [-h] [--debug] [--traceback] [--version] {cli,plugins} ...
httpie: error: Please specify one of these: 'cli', 'plugins'

This command is only for managing HTTPie plugins.
To send a request, please use the http/https commands:

  $ http POST pie.dev/post hello=world

  $ https POST pie.dev/post hello=world

$ httpie cli plugins install httpie-aws-authv4
Installing httpie-aws-authv4...
Collecting httpie-aws-authv4
  Using cached httpie_aws_authv4-0.3.0-py3-none-any.whl.metadata (5.3 kB)
Requirement already satisfied: httpie>=1.0.0 in /usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages (from httpie-aws-authv4) (3.2.2)
Collecting aws-requests-auth>=0.4.0 (from httpie-aws-authv4)
  Using cached aws_requests_auth-0.4.3-py2.py3-none-any.whl.metadata (567 bytes)
Collecting boto3>=1.9.0 (from httpie-aws-authv4)
  Using cached boto3-1.34.71-py3-none-any.whl.metadata (6.6 kB)
Requirement already satisfied: urllib3 in /usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages (from httpie-aws-authv4) (2.2.0)
Requirement already satisfied: requests>=0.14.0 in /usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages (from aws-requests-auth>=0.4.0->httpie-aws-authv4) (2.31.0)
Collecting botocore<1.35.0,>=1.34.71 (from boto3>=1.9.0->httpie-aws-authv4)
  Using cached botocore-1.34.71-py3-none-any.whl.metadata (5.7 kB)
Collecting jmespath<2.0.0,>=0.7.1 (from boto3>=1.9.0->httpie-aws-authv4)
  Using cached jmespath-1.0.1-py3-none-any.whl.metadata (7.6 kB)
Collecting s3transfer<0.11.0,>=0.10.0 (from boto3>=1.9.0->httpie-aws-authv4)
  Using cached s3transfer-0.10.1-py3-none-any.whl.metadata (1.7 kB)
Requirement already satisfied: pip in /usr/local/lib/python3.12/site-packages (from httpie>=1.0.0->httpie-aws-authv4) (24.0)
Requirement already satisfied: charset-normalizer>=2.0.0 in /usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages (from httpie>=1.0.0->httpie-aws-authv4) (3.3.2)
Requirement already satisfied: defusedxml>=0.6.0 in /usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages (from httpie>=1.0.0->httpie-aws-authv4) (0.7.1)
Requirement already satisfied: Pygments>=2.5.2 in /usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages (from httpie>=1.0.0->httpie-aws-authv4) (2.17.2)
Requirement already satisfied: requests-toolbelt>=0.9.1 in /usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages (from httpie>=1.0.0->httpie-aws-authv4) (1.0.0)
Requirement already satisfied: multidict>=4.7.0 in /usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages (from httpie>=1.0.0->httpie-aws-authv4) (6.0.5)
Requirement already satisfied: setuptools in /usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages (from httpie>=1.0.0->httpie-aws-authv4) (69.1.0)
Requirement already satisfied: rich>=9.10.0 in /usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages (from httpie>=1.0.0->httpie-aws-authv4) (13.7.0)
Collecting python-dateutil<3.0.0,>=2.1 (from botocore<1.35.0,>=1.34.71->boto3>=1.9.0->httpie-aws-authv4)
  Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting urllib3 (from httpie-aws-authv4)
  Using cached urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages (from requests>=0.14.0->aws-requests-auth>=0.4.0->httpie-aws-authv4) (3.6)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/opt/python-certifi/lib/python3.12/site-packages (from requests>=0.14.0->aws-requests-auth>=0.4.0->httpie-aws-authv4) (2024.2.2)
Requirement already satisfied: PySocks!=1.5.7,>=1.5.6 in /usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages (from requests[socks]>=2.22.0->httpie>=1.0.0->httpie-aws-authv4) (1.7.1)
Requirement already satisfied: markdown-it-py>=2.2.0 in /usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages (from rich>=9.10.0->httpie>=1.0.0->httpie-aws-authv4) (3.0.0)
Requirement already satisfied: mdurl~=0.1 in /usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages (from markdown-it-py>=2.2.0->rich>=9.10.0->httpie>=1.0.0->httpie-aws-authv4) (0.1.2)
Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.1->botocore<1.35.0,>=1.34.71->boto3>=1.9.0->httpie-aws-authv4)
  Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Using cached httpie_aws_authv4-0.3.0-py3-none-any.whl (6.0 kB)
Using cached aws_requests_auth-0.4.3-py2.py3-none-any.whl (6.8 kB)
Using cached boto3-1.34.71-py3-none-any.whl (139 kB)
Using cached botocore-1.34.71-py3-none-any.whl (12.0 MB)
Using cached urllib3-2.2.1-py3-none-any.whl (121 kB)
Using cached jmespath-1.0.1-py3-none-any.whl (20 kB)
Using cached s3transfer-0.10.1-py3-none-any.whl (82 kB)
Using cached python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: urllib3, six, jmespath, python-dateutil, botocore, aws-requests-auth, s3transfer, boto3, httpie-aws-authv4
  Attempting uninstall: urllib3
    Found existing installation: urllib3 2.2.0
    Uninstalling urllib3-2.2.0:
      Successfully uninstalled urllib3-2.2.0
Successfully installed aws-requests-auth-0.4.3 boto3-1.34.71 botocore-1.34.71 httpie-aws-authv4-0.3.0 jmespath-1.0.1 python-dateutil-2.9.0.post0 s3transfer-0.10.1 six-1.16.0 urllib3-2.2.1

$ httpie
Traceback (most recent call last):
  File "/usr/local/bin/httpie", line 5, in <module>
    from httpie.manager.__main__ import main
  File "/usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages/httpie/manager/__main__.py", line 6, in <module>
    from httpie.context import Environment
  File "/usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages/httpie/context.py", line 20, in <module>
    from .utils import repr_dict
  File "/usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages/httpie/utils.py", line 19, in <module>
    import requests.auth
  File "/usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages/requests/__init__.py", line 45, in <module>
    from .exceptions import RequestsDependencyWarning
  File "/usr/local/Cellar/httpie/3.2.2_4/libexec/lib/python3.12/site-packages/requests/exceptions.py", line 7, in <module>
    from urllib3.exceptions import HTTPError as BaseHTTPError
ModuleNotFoundError: No module named 'urllib3.exceptions'
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

No branches or pull requests

1 participant