Hallo,
ich habe ein Problem mit der Installation von manchen (nicht allen)
Python-Programmen unter leap 42.1.
z.B.
pip2.7 install astropy
Gibt den Fehler (vollständiger Output unten):
File "/usr/lib64/python2.7/ssl.py", line 513, in __init__
self._context.load_verify_locations(cafile=cafile, capath=capath)
IOError: [Errno 2] No such file or directory
Dasselbe macht der auch wenn ich das mit wget hole und 'python setup.py
install' mache).
Dieser Fehler kommt nicht bei opensuse 13.2 und älter.
Bei leap 42.1 klappt auch 'pip3.4 install astropy' wunderbar.
Soweit ich im Netz gesehen habe, ist das ein zertifikatsfehler,der mit
setuptools zusammenhängt. Leider half es auch nichts setuptools und pip
von Source neu zu installieren (klar, wenn das opensuse-Zertifikat nicht
stimmt).
Wo bekomme ich das richtige Zertifikat her und binde es ein?
Hat jemand einen Tipp?
Gruß und Dank, Ulrich
--- snip ---
Hier ist der vollständige Output:
~ # pip2.7 install astropy
Collecting astropy
Downloading astropy-1.1.2.tar.gz (8.1MB)
100% |████████████████████████████████| 8.1MB 224kB/s
Complete output from command python setup.py egg_info:
/usr/lib64/python2.7/site-packages/matplotlib/font_manager.py:273:
UserWarning: Matplotlib is building the font cache using fc-list. This
may take a moment.
warnings.warn('Matplotlib is building the font cache using
fc-list. This may take a moment.')
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-h2xDSP/astropy/setup.py", line 8, in <module>
import ah_bootstrap
File "ah_bootstrap.py", line 921, in <module>
BOOTSTRAPPER = _Bootstrapper.main()
File "ah_bootstrap.py", line 217, in main
bootstrapper.run()
File "ah_bootstrap.py", line 303, in run
dist = method()
File "ah_bootstrap.py", line 371, in get_local_directory_dist
upgrade = self._do_upgrade(dist)
File "ah_bootstrap.py", line 531, in _do_upgrade
upgrade = package_index.obtain(req)
File
"/usr/lib/python2.7/site-packages/setuptools/package_index.py", line
457, in obtain
self.find_packages(requirement)
File
"/usr/lib/python2.7/site-packages/setuptools/package_index.py", line
441, in find_packages
self.scan_url(self.index_url + requirement.unsafe_name+'/')
File
"/usr/lib/python2.7/site-packages/setuptools/package_index.py", line
775, in scan_url
self.process_url(url, True)
File
"/usr/lib/python2.7/site-packages/setuptools/package_index.py", line
308, in process_url
f = self.open_url(url, "Download error on %s: %%s -- Some
packages may not be found!" % url)
File
"/usr/lib/python2.7/site-packages/setuptools/package_index.py", line
714, in open_url
return open_with_auth(url, self.opener)
File
"/usr/lib/python2.7/site-packages/setuptools/package_index.py", line
909, in _socket_timeout
return func(*args, **kwargs)
File
"/usr/lib/python2.7/site-packages/setuptools/package_index.py", line
1023, in open_with_auth
fp = opener(request)
File "/usr/lib64/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/usr/lib64/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/site-packages/setuptools/ssl_support.py",
line 158, in https_open
lambda host, **kw: VerifyingHTTPSConn(host, self.ca_bundle,
**kw), req
File "/usr/lib64/python2.7/urllib2.py", line 1194, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "/usr/lib64/python2.7/httplib.py", line 1001, in request
self._send_request(method, url, body, headers)
File "/usr/lib64/python2.7/httplib.py", line 1035, in _send_request
self.endheaders(body)
File "/usr/lib64/python2.7/httplib.py", line 997, in endheaders
self._send_output(message_body)
File "/usr/lib64/python2.7/httplib.py", line 850, in _send_output
self.send(msg)
File "/usr/lib64/python2.7/httplib.py", line 812, in send
self.connect()
File "/usr/lib/python2.7/site-packages/setuptools/ssl_support.py",
line 186, in connect
sock, cert_reqs=ssl.CERT_REQUIRED, ca_certs=self.ca_bundle
File "/usr/lib64/python2.7/ssl.py", line 899, in wrap_socket
ciphers=ciphers)
File "/usr/lib64/python2.7/ssl.py", line 513, in __init__
self._context.load_verify_locations(cafile=cafile, capath=capath)
IOError: [Errno 2] No such file or directory
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-h2xDSP/astropy/
--
Um die Liste abzubestellen, schicken Sie eine Mail an:
opensuse-de+unsubscribe(a)opensuse.org
Um den Listen Administrator zu erreichen, schicken
Sie eine Mail an: opensuse-de+owner(a)opensuse.org