Re: Pushbullet Notifications Failing (Ubuntu, v1.1.1 [33a787
Posted: December 12th, 2016, 3:49 pm
Worked for me!
So the underlying problem is in urllib?sander wrote:Good news: I got it working on my Ubuntu 14.04, both standalone and in SAB.
I believe in ssl.py ... there are monkey-patches to solve that.jcfp wrote:So the underlying problem is in urllib?sander wrote:Good news: I got it working on my Ubuntu 14.04, both standalone and in SAB.
Code: Select all
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/connection.py
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/request.py
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/response.py
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/retry.py
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/timeout.py
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/url.pyCode: Select all
root@481d25f7ad4a:/# python -c "import requests ; res = requests.post('https://api.pushbullet.com/v2/pushes', data='', headers={}) "
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 88, in post
return request('post', url, data=data, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 455, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 558, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 385, in send
raise SSLError(e)
requests.exceptions.SSLError: [Errno 8] _ssl.c:510: EOF occurred in violation of protocolIn your latest traceback there's no mention of /usr/local, suggesting trusty's packaged python-request is in use rather than your pip-installed files. Maybe the python path handling is different in the docker install and/or for the root user?sander wrote:So ... why does it work on my Ubuntu 14.04 on bare metal?
Ah, good suggestion.jcfp wrote:In your latest traceback there's no mention of /usr/local, suggesting trusty's packaged python-request is in use rather than your pip-installed files. Maybe the python path handling is different in the docker install and/or for the root user?sander wrote:So ... why does it work on my Ubuntu 14.04 on bare metal?
Code: Select all
# apt-get install -y python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
python-requests
Recommended packages:
python-dev-all
The following NEW packages will be installed:
python-pip python-requests