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

Don't install requests with the use_chardet_on_py3 extra #476

Merged
merged 2 commits into from Aug 19, 2021
Merged

Don't install requests with the use_chardet_on_py3 extra #476

merged 2 commits into from Aug 19, 2021

Conversation

spakin
Copy link
Contributor

@spakin spakin commented Aug 10, 2021

This extra seems no longer to exist. I receive

WARNING: requests 2.25.1 does not provide the extra 'use_chardet_on_py3'

and later

Traceback (most recent call last):
  File "/home/pakin/.anaconda3/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2739, in requires
    deps.extend(dm[safe_extra(ext)])
KeyError: 'use_chardet_on_py3'

As a result, I was unable to use, in particular, the D-Wave Problem Inspector.

This extra seems no longer to exist.
@codecov-commenter
Copy link

codecov-commenter commented Aug 10, 2021

Codecov Report

Merging #476 (f624e58) into master (502d68e) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #476   +/-   ##
=======================================
  Coverage   83.60%   83.60%           
=======================================
  Files          16       16           
  Lines        2641     2641           
=======================================
  Hits         2208     2208           
  Misses        433      433           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 502d68e...f624e58. Read the comment docs.

@randomir
Copy link
Member

https://docs.python-requests.org/en/master/community/updates/#id1

It looks like we should bump the requests lower bound instead.

Also, see #471.

@Ousret
Copy link

Ousret commented Aug 11, 2021

Hi,

I am aware of what caused #471 and was fixed recently. You should be able to remove Chardet as a dependency. In case there are any concerns left, do not hesitate to reach.

Also, for this matter at hand, don't use the [use_chardet_on_py3] but add explicitly chardet instead, will do the same without breaking anything for people having requests < 2.26.

Regards,

@randomir
Copy link
Member

Thanks @Ousret for adding more context.

In summary:

Given all that, we can safely merge this change. Thanks @spakin for bringing it up.

In a follow-up PR I'll explicitly specify the encoding, as that should make response decoding not just resilient to future charset guessing issues, but also faster.

@randomir randomir merged commit b3f570f into dwavesystems:master Aug 19, 2021
@spakin
Copy link
Contributor Author

spakin commented Aug 19, 2021

Thanks for merging the pull request. I didn't realize until I read #476 (comment) what a mess requests has produced.

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 this pull request may close these issues.

None yet

4 participants