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
AttributeError: module 'urllib3.util.url' has no attribute 'PERCENT_RE' #5324
Comments
Streamlink applies an override for a faulty url encoding in urllib3, as you can see here:
Apparently, urllib3 has renamed its On the 1.x branch, it's still Streamlink does only support urllib3 1.x, so if you've installed urllib3 2.x in your python environment, then you're ignoring the dependency version constraints of streamlink and requests:
Not a bug. Fix your Streamlink install / python environment. |
ok, thanks |
Use a virtual environment if you have other packages in your python environment which depend on urllib3 2.x. |
So apparently I unfortunately looked at the wrong package metadata yesterday. The right one is of course here: They added a changelog just now after tagging the release yesterday already. For some reason, pip didn't pick up the new version for me when I ran This means that Streamlink has to fix the new version incompabilities now. I've restricted urllib3 to This is a bit annoying, because Speaking of semver, urllib3 isn't using this scheme correctly either, with lots of deprecations being added in 2.0.0, while stuff will get removed/changed in a minor release later on: So what needs to fix now is the name of the Reopening for visibility. Once fixed, there will be a new release, since the current stable release is broken when not limiting |
They dropped 2.30.0 and re-released it today: |
Fixed in 5.5.0 |
AttributeError: module 'urllib3.util.url' has no attribute 'PERCENT_RE' · Issue #5324 · streamlink/streamlink streamlink/streamlink#5324 PEP 537 – Python 3.7 Release Schedule | peps.python.org https://peps.python.org/pep-0537/#lifespan
…de" (#23) * eplus: support account; refresh session within 15 mins; check "drm_mode" "drm_mode" lives forever, while "drmEncryptKey" does not. * eplus: code style * eplus: pass extra params to EplusHLSStream via kwargs * eplus: don't pass extra params to EplusHLSStream via kwargs This partially reverts commit a8d50d2. This is a Streamlink 6 feature (streamlink/streamlink@d593773). Don't be too radical. * eplus: terminology! we are updating the session by refrshing cookies * eplus: re-login account if required when refreshing cookies * eplus: detect if cookies are invalidated; type annotations; clean code * eplus: use "m3u8_urls" instead of "channel_urls"; clean code If no stream_session, everything is dead. * eplus: check if m3u8 url list is be parsed * eplus: set up session updater during preparing streams * eplus: allow empty m3u8 url list or empty stream session url The Eplus DRM test page has neither list_channels nor the stream session. * eplus: import streamlink.session.http.HTTPSession * eplus: compatibility for Python<=3.10 and Streamlink<6.6.0 - https://peps.python.org/pep-0604/ - https://streamlink.github.io/deprecations.html#httpsession-and-httpadapters * Streamlink 5.5.0 and Python 3.8 are required AttributeError: module 'urllib3.util.url' has no attribute 'PERCENT_RE' · Issue #5324 · streamlink/streamlink streamlink/streamlink#5324 PEP 537 – Python 3.7 Release Schedule | peps.python.org https://peps.python.org/pep-0537/#lifespan * eplus: hide the password in logs * eplus: hide the email or the phone number in logs Privacy No.1
Checklist
Streamlink version
Latest stable release
Description
C:\Program Files\Python310\lib\site-packages\streamlink\plugin\api\http_session.py line 53 typo?
I was trying to run my script with python 3.10.4 in Windows 10 and got that error, but trying to run it with python 3.8.6 is working fine, why?
Debug log
The text was updated successfully, but these errors were encountered: