FS#67197 - [streamlink] Seeming incompatability with version 20.7.3-1 of python-pycountry
Attached to Project:
Community Packages
Opened by Felix Weimer (bratpilz) - Sunday, 05 July 2020, 01:01 GMT
Last edited by Giancarlo Razzolini (grazzolini) - Monday, 13 July 2020, 01:33 GMT
Opened by Felix Weimer (bratpilz) - Sunday, 05 July 2020, 01:01 GMT
Last edited by Giancarlo Razzolini (grazzolini) - Monday, 13 July 2020, 01:33 GMT
|
Details
Description:
After updating python-pycountry from version 19.8.18-3 to version 20.7.3, I get the following error when trying to open a twitch stream using streamlink: $ streamlink http://www.twitch.tv/lcs best [cli][info] Found matching plugin twitch for URL http://www.twitch.tv/lcs Traceback (most recent call last): File "/usr/bin/streamlink", line 11, in <module> load_entry_point('streamlink==1.4.1', 'console_scripts', 'streamlink')() File "/usr/lib/python3.8/site-packages/streamlink_cli/main.py", line 1024, in main handle_url() File "/usr/lib/python3.8/site-packages/streamlink_cli/main.py", line 585, in handle_url streams = fetch_streams(plugin) File "/usr/lib/python3.8/site-packages/streamlink_cli/main.py", line 464, in fetch_streams return plugin.streams(stream_types=args.stream_types, File "/usr/lib/python3.8/site-packages/streamlink/plugin/plugin.py", line 317, in streams ostreams = self._get_streams() File "/usr/lib/python3.8/site-packages/streamlink/plugins/twitch.py", line 794, in _get_streams return self._get_hls_streams("live") File "/usr/lib/python3.8/site-packages/streamlink/plugins/twitch.py", line 733, in _get_hls_streams streams = TwitchHLSStream.parse_variant_playlist( File "/usr/lib/python3.8/site-packages/streamlink/stream/hls.py", line 405, in parse_variant_playlist locale = session_.localization File "/usr/lib/python3.8/site-packages/streamlink/session.py", line 514, in localization return Localization(self.get_option("locale")) File "/usr/lib/python3.8/site-packages/streamlink/utils/l10n.py", line 122, in __init__ self.language_code = language_code File "/usr/lib/python3.8/site-packages/streamlink/utils/l10n.py", line 147, in language_code self.language, self.country = self._parse_locale_code(language_code) File "/usr/lib/python3.8/site-packages/streamlink/utils/l10n.py", line 132, in _parse_locale_code return self.get_language(parts[0]), self.get_country(parts[1]) File "/usr/lib/python3.8/site-packages/streamlink/utils/l10n.py", line 176, in get_language return Language.get(language) File "/usr/lib/python3.8/site-packages/streamlink/utils/l10n.py", line 76, in get return Language(lang.alpha_2, lang.alpha_3, lang.name, getattr(lang, "bibliographic", None)) File "/usr/lib/python3.8/site-packages/pycountry/db.py", line 19, in __getattr__ raise AttributeError AttributeError Additional info: * package version(s) python-pycountry 20.7.3-1 streamlink 1.4.1-1 python 3.8.3-1 (My system is up to date as of GMT 2020-07-05 1:00 AM.) * config and/or log files etc. n/a * link to upstream bug report, if any n/a Steps to reproduce: Update streamlink and python-pycountry to the latest version in the repository and try to access a twitch stream, like so: $ \streamlink http://www.twitch.tv/lcs best |
This task depends upon
Closed by Giancarlo Razzolini (grazzolini)
Monday, 13 July 2020, 01:33 GMT
Reason for closing: Works for me
Additional comments about closing: Also, streamlink was updated to 1.5.0
Monday, 13 July 2020, 01:33 GMT
Reason for closing: Works for me
Additional comments about closing: Also, streamlink was updated to 1.5.0