python requests

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


nevermind, it's openssl related


[glen at blodnatt slack]$ python3 -m ssl -e 1
Traceback (most recent call last):
   File "/usr/lib64/python3.5/runpy.py", line 170, in _run_module_as_main
     "__main__", mod_spec)
   File "/usr/lib64/python3.5/runpy.py", line 85, in _run_code
     exec(code, run_globals)
   File "/usr/lib64/python3.5/ssl.py", line 98, in <module>
     import _ssl             # if we can't import it, let the error 
propagate
ImportError: 
/usr/lib64/python3.5/lib-dynload/_ssl.cpython-35m-x86_64-linux-gnu.so: 
undefined symbol: SSLv2_method
[glen at blodnatt slack]$


On 05.03.2016 21:32, Elan Ruusamäe wrote:
> 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