In [2]: import ovirtsdk4
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-2-a16e77aea3e7> in <module>
----> 1 import ovirtsdk4
~/python3env/lib/python3.6/site-packages/ovirtsdk4/__init__.py in <module>
20 import json
21 import os
---> 22 import pycurl
23 import re
24 import six
ImportError: pycurl: libcurl link-time ssl backend (nss) is different from compile-time ssl backend (none/other)
In [3]:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-2-a16e77aea3e7> in <module>
----> 1 import ovirtsdk4
~/python3env/lib/python3.6/site-packages/ovirtsdk4/__init__.py in <module>
20 import json
21 import os
---> 22 import pycurl
23 import re
24 import six
ImportError: pycurl: libcurl link-time ssl backend (nss) is different from compile-time ssl backend (none/other)
In [3]:
# this was because of pycurl
####################
# Workaround
# Workaround
####################
pip3 uninstall pycurl
export PYCURL_SSL_LIBRARY=nss
pip3 install pycurl
# After that import of pycurl and ovirtsdk4 was successful
# python -c "import pycurl"
# python -c "import ovirtsdk4"
No comments:
Post a Comment