-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hello and thank you for sharing your work with us!
I tried installing the twitchswitcher.py on linux (ubuntu bionic 18.04 LTS) with current obs-studio 23 and python 3.6
To support the installation command of python-twitch-client I import subprocess at the start of the script and then this works as well.
What I'm stuck at now is this error message as soon as the script tries to sent data to twitch API:
[TwitchSwitcher.py] Traceback (most recent call last):
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 591, in urlopen
[TwitchSwitcher.py] conn = self._get_conn(timeout=pool_timeout)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 249, in _get_conn
[TwitchSwitcher.py] return conn or self._new_conn()
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 818, in _new_conn
[TwitchSwitcher.py] raise SSLError("Can't connect to HTTPS URL because the SSL "
[TwitchSwitcher.py] urllib3.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.
[TwitchSwitcher.py]
[TwitchSwitcher.py] During handling of the above exception, another exception occurred:
[TwitchSwitcher.py]
[TwitchSwitcher.py] Traceback (most recent call last):
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
[TwitchSwitcher.py] timeout=timeout
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 641, in urlopen
[TwitchSwitcher.py] _stacktrace=sys.exc_info()[2])
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 399, in increment
[TwitchSwitcher.py] raise MaxRetryError(_pool, url, error or ResponseError(cause))
[TwitchSwitcher.py] urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.twitch.tv', port=443): Max retries exceeded with url: /kraken/channel (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",))
[TwitchSwitcher.py]
[TwitchSwitcher.py] During handling of the above exception, another exception occurred:
[TwitchSwitcher.py]
[TwitchSwitcher.py] Traceback (most recent call last):
[TwitchSwitcher.py] File "/Data/username/Projekte/OBS-Skripte/TwitchSwitcher.py", line 208, in set_twitch
[TwitchSwitcher.py] channel = t_client.channels.get()
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/twitch/decorators.py", line 8, in wrapper
[TwitchSwitcher.py] return func(*args, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/twitch/api/channels.py", line 13, in get
[TwitchSwitcher.py] response = self._request_get('channel')
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/twitch/api/base.py", line 39, in _request_get
[TwitchSwitcher.py] response = requests.get(url, params=params, headers=headers)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/api.py", line 75, in get
[TwitchSwitcher.py] return request('get', url, params=params, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/api.py", line 60, in request
[TwitchSwitcher.py] return session.request(method=method, url=url, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
[TwitchSwitcher.py] resp = self.send(prep, **send_kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
[TwitchSwitcher.py] r = adapter.send(request, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/adapters.py", line 514, in send
[TwitchSwitcher.py] raise SSLError(e, request=request)
[TwitchSwitcher.py] requests.exceptions.SSLError: HTTPSConnectionPool(host='api.twitch.tv', port=443): Max retries exceeded with url: /kraken/channel (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",))
[TwitchSwitcher.py] Error in sys.excepthook:
[TwitchSwitcher.py] Traceback (most recent call last):
[TwitchSwitcher.py] File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
[TwitchSwitcher.py] from apport.fileutils import likely_packaged, get_recent_crashes
[TwitchSwitcher.py] File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
[TwitchSwitcher.py] from apport.report import Report
[TwitchSwitcher.py] File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
[TwitchSwitcher.py] import apport.fileutils
[TwitchSwitcher.py] File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
[TwitchSwitcher.py] from apport.packaging_impl import impl as packaging
[TwitchSwitcher.py] File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
[TwitchSwitcher.py] import apt
[TwitchSwitcher.py] File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
[TwitchSwitcher.py] import apt_pkg
[TwitchSwitcher.py] ImportError: /usr/lib/python3/dist-packages/apt_pkg.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PyExc_ValueError
[TwitchSwitcher.py]
[TwitchSwitcher.py] Original exception was:
[TwitchSwitcher.py] Traceback (most recent call last):
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 591, in urlopen
[TwitchSwitcher.py] conn = self._get_conn(timeout=pool_timeout)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 249, in _get_conn
[TwitchSwitcher.py] return conn or self._new_conn()
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 818, in _new_conn
[TwitchSwitcher.py] raise SSLError("Can't connect to HTTPS URL because the SSL "
[TwitchSwitcher.py] urllib3.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.
[TwitchSwitcher.py]
[TwitchSwitcher.py] During handling of the above exception, another exception occurred:
[TwitchSwitcher.py]
[TwitchSwitcher.py] Traceback (most recent call last):
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
[TwitchSwitcher.py] timeout=timeout
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 641, in urlopen
[TwitchSwitcher.py] _stacktrace=sys.exc_info()[2])
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 399, in increment
[TwitchSwitcher.py] raise MaxRetryError(_pool, url, error or ResponseError(cause))
[TwitchSwitcher.py] urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.twitch.tv', port=443): Max retries exceeded with url: /kraken/channel (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",))
[TwitchSwitcher.py]
[TwitchSwitcher.py] During handling of the above exception, another exception occurred:
[TwitchSwitcher.py]
[TwitchSwitcher.py] Traceback (most recent call last):
[TwitchSwitcher.py] File "/Data/username/Projekte/OBS-Skripte/TwitchSwitcher.py", line 208, in set_twitch
[TwitchSwitcher.py] channel = t_client.channels.get()
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/twitch/decorators.py", line 8, in wrapper
[TwitchSwitcher.py] return func(*args, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/twitch/api/channels.py", line 13, in get
[TwitchSwitcher.py] response = self._request_get('channel')
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/twitch/api/base.py", line 39, in _request_get
[TwitchSwitcher.py] response = requests.get(url, params=params, headers=headers)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/api.py", line 75, in get
[TwitchSwitcher.py] return request('get', url, params=params, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/api.py", line 60, in request
[TwitchSwitcher.py] return session.request(method=method, url=url, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
[TwitchSwitcher.py] resp = self.send(prep, **send_kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
[TwitchSwitcher.py] r = adapter.send(request, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/adapters.py", line 514, in send
[TwitchSwitcher.py] raise SSLError(e, request=request)
[TwitchSwitcher.py] requests.exceptions.SSLError: HTTPSConnectionPool(host='api.twitch.tv', port=443): Max retries exceeded with url: /kraken/channel (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",))
[TwitchSwitcher.py] Traceback (most recent call last):
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 591, in urlopen
[TwitchSwitcher.py] conn = self._get_conn(timeout=pool_timeout)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 249, in _get_conn
[TwitchSwitcher.py] return conn or self._new_conn()
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 818, in _new_conn
[TwitchSwitcher.py] raise SSLError("Can't connect to HTTPS URL because the SSL "
[TwitchSwitcher.py] urllib3.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.
[TwitchSwitcher.py]
[TwitchSwitcher.py] During handling of the above exception, another exception occurred:
[TwitchSwitcher.py]
[TwitchSwitcher.py] Traceback (most recent call last):
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
[TwitchSwitcher.py] timeout=timeout
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 641, in urlopen
[TwitchSwitcher.py] _stacktrace=sys.exc_info()[2])
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 399, in increment
[TwitchSwitcher.py] raise MaxRetryError(_pool, url, error or ResponseError(cause))
[TwitchSwitcher.py] urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.twitch.tv', port=443): Max retries exceeded with url: /kraken/channel (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",))
[TwitchSwitcher.py]
[TwitchSwitcher.py] During handling of the above exception, another exception occurred:
[TwitchSwitcher.py]
[TwitchSwitcher.py] Traceback (most recent call last):
[TwitchSwitcher.py] File "/Data/username/Projekte/OBS-Skripte/TwitchSwitcher.py", line 208, in set_twitch
[TwitchSwitcher.py] channel = t_client.channels.get()
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/twitch/decorators.py", line 8, in wrapper
[TwitchSwitcher.py] return func(*args, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/twitch/api/channels.py", line 13, in get
[TwitchSwitcher.py] response = self._request_get('channel')
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/twitch/api/base.py", line 39, in _request_get
[TwitchSwitcher.py] response = requests.get(url, params=params, headers=headers)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/api.py", line 75, in get
[TwitchSwitcher.py] return request('get', url, params=params, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/api.py", line 60, in request
[TwitchSwitcher.py] return session.request(method=method, url=url, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
[TwitchSwitcher.py] resp = self.send(prep, **send_kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
[TwitchSwitcher.py] r = adapter.send(request, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/adapters.py", line 514, in send
[TwitchSwitcher.py] raise SSLError(e, request=request)
[TwitchSwitcher.py] requests.exceptions.SSLError: HTTPSConnectionPool(host='api.twitch.tv', port=443): Max retries exceeded with url: /kraken/channel (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",))
[TwitchSwitcher.py] Error in sys.excepthook:
[TwitchSwitcher.py] Traceback (most recent call last):
[TwitchSwitcher.py] File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
[TwitchSwitcher.py] from apport.fileutils import likely_packaged, get_recent_crashes
[TwitchSwitcher.py] File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
[TwitchSwitcher.py] from apport.report import Report
[TwitchSwitcher.py] File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
[TwitchSwitcher.py] import apport.fileutils
[TwitchSwitcher.py] File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
[TwitchSwitcher.py] from apport.packaging_impl import impl as packaging
[TwitchSwitcher.py] File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
[TwitchSwitcher.py] import apt
[TwitchSwitcher.py] File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
[TwitchSwitcher.py] import apt_pkg
[TwitchSwitcher.py] ImportError: /usr/lib/python3/dist-packages/apt_pkg.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PyExc_ValueError
[TwitchSwitcher.py]
[TwitchSwitcher.py] Original exception was:
[TwitchSwitcher.py] Traceback (most recent call last):
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 591, in urlopen
[TwitchSwitcher.py] conn = self._get_conn(timeout=pool_timeout)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 249, in _get_conn
[TwitchSwitcher.py] return conn or self._new_conn()
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 818, in _new_conn
[TwitchSwitcher.py] raise SSLError("Can't connect to HTTPS URL because the SSL "
[TwitchSwitcher.py] urllib3.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.
[TwitchSwitcher.py]
[TwitchSwitcher.py] During handling of the above exception, another exception occurred:
[TwitchSwitcher.py]
[TwitchSwitcher.py] Traceback (most recent call last):
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
[TwitchSwitcher.py] timeout=timeout
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 641, in urlopen
[TwitchSwitcher.py] _stacktrace=sys.exc_info()[2])
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 399, in increment
[TwitchSwitcher.py] raise MaxRetryError(_pool, url, error or ResponseError(cause))
[TwitchSwitcher.py] urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.twitch.tv', port=443): Max retries exceeded with url: /kraken/channel (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",))
[TwitchSwitcher.py]
[TwitchSwitcher.py] During handling of the above exception, another exception occurred:
[TwitchSwitcher.py]
[TwitchSwitcher.py] Traceback (most recent call last):
[TwitchSwitcher.py] File "/Data/username/Projekte/OBS-Skripte/TwitchSwitcher.py", line 208, in set_twitch
[TwitchSwitcher.py] channel = t_client.channels.get()
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/twitch/decorators.py", line 8, in wrapper
[TwitchSwitcher.py] return func(*args, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/twitch/api/channels.py", line 13, in get
[TwitchSwitcher.py] response = self._request_get('channel')
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/twitch/api/base.py", line 39, in _request_get
[TwitchSwitcher.py] response = requests.get(url, params=params, headers=headers)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/api.py", line 75, in get
[TwitchSwitcher.py] return request('get', url, params=params, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/api.py", line 60, in request
[TwitchSwitcher.py] return session.request(method=method, url=url, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
[TwitchSwitcher.py] resp = self.send(prep, **send_kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
[TwitchSwitcher.py] r = adapter.send(request, **kwargs)
[TwitchSwitcher.py] File "/home/username/.local/lib/python3.6/site-packages/requests/adapters.py", line 514, in send
[TwitchSwitcher.py] raise SSLError(e, request=request)
[TwitchSwitcher.py] requests.exceptions.SSLError: HTTPSConnectionPool(host='api.twitch.tv', port=443): Max retries exceeded with url: /kraken/channel (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",))
I installed python3-openssl using apt and pyOpenSSL using pip, it's still not working.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels