python requests

Elan Ruusamäe glen at delfi.ee
Sat Mar 5 20:32:46 CET 2016


can we add some suggests here to python*-requests package?


[glen at blodnatt slack]$ date|slacksend -C slacksend.conf
Traceback (most recent call last):
   File "/usr/share/python3.5/site-packages/requests/adapters.py", line 
370, in send
     timeout=timeout
   File 
"/usr/share/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", 
line 548, in urlopen
     conn = self._get_conn(timeout=pool_timeout)
   File 
"/usr/share/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", 
line 250, in _get_conn
     return conn or self._new_conn()
   File 
"/usr/share/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", 
line 759, in _new_conn
     raise SSLError("Can't connect to HTTPS URL because the SSL "
requests.packages.urllib3.exceptions.SSLError: Can't connect to HTTPS 
URL because the SSL module is not available.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   File "/usr/bin/slacksend", line 9, in <module>
     load_entry_point('slacksend==0.1', 'console_scripts', 'slacksend')()
   File "/usr/share/python3.5/site-packages/slacksend.py", line 77, in main
     r = requests.post(options['url'], json.dumps(payload))
   File "/usr/share/python3.5/site-packages/requests/api.py", line 109, 
in post
     return request('post', url, data=data, json=json, **kwargs)
   File "/usr/share/python3.5/site-packages/requests/api.py", line 50, 
in request
     response = session.request(method=method, url=url, **kwargs)
   File "/usr/share/python3.5/site-packages/requests/sessions.py", line 
468, in request
     resp = self.send(prep, **send_kwargs)
   File "/usr/share/python3.5/site-packages/requests/sessions.py", line 
576, in send
     r = adapter.send(request, **kwargs)
   File "/usr/share/python3.5/site-packages/requests/adapters.py", line 
433, in send
     raise SSLError(e, request=request)
requests.exceptions.SSLError: Can't connect to HTTPS URL because the SSL 
module is not available.

[glen at blodnatt slack]$ rpm -q python3-requests --suggests
python3-requests-2.8.1-2.noarch
[glen at blodnatt slack]$

-- 
glen



More information about the pld-devel-en mailing list