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

Cannot run tests locally #6588

Closed
goelbenj opened this issue Nov 28, 2023 · 2 comments
Closed

Cannot run tests locally #6588

goelbenj opened this issue Nov 28, 2023 · 2 comments

Comments

@goelbenj
Copy link

I am trying to install the repository and run all the tests as recommended by the Contribution Instructions. I am getting the following error when I perform the following. Importantly, what are the official instructions for installing the dev dependencies for requests? I cannot find an official instruction so I'm using the Makefile.

Expected Result

Pytest to run successfully.

Actual Result

ImportError: cannot import name 'parse_authorization_header' from 'werkzeug.http' (/requests/venv/lib/python3.10/site-packages/werkzeug/http.py)

Reproduction Steps

cd requests
python -m venv ./myvenv
make init
pytest tests/

System Information

$ python -m requests.help
{
  "chardet": {
    "version": null
  },
  "charset_normalizer": {
    "version": "3.3.2"
  },
  "cryptography": {
    "version": ""
  },
  "idna": {
    "version": "3.6"
  },
  "implementation": {
    "name": "CPython",
    "version": "3.10.11"
  },
  "platform": {
    "release": "22.4.0",
    "system": "Darwin"
  },
  "pyOpenSSL": {
    "openssl_version": "",
    "version": null
  },
  "requests": {
    "version": "2.31.0"
  },
  "system_ssl": {
    "version": "1010114f"
  },
  "urllib3": {
    "version": "2.1.0"
  },
  "using_charset_normalizer": true,
  "using_pyopenssl": false
}
@goelbenj
Copy link
Author

Based on this commit in the httpbin repo, it looks like the werkzeug version is constrained, but the dev dependencies do not constrain it to <2.3. Werkzeug removed the parse_authorization_headers func in v3.x.

psf/httpbin@496d0b9

@sigmavirus24
Copy link
Contributor

This is a duplicate of other closed issues. Httpbin needs to be released

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

2 participants