[OmniOS-discuss] Python and Kerberos libraries

Gordon Selisek gordon at hafnia.dk
Tue Jun 7 20:15:15 UTC 2016


Gents,



I'm trying to setup kerberos for use with pywinrm



https://github.com/diyan/pywinrm/



Unfortunately the instructions are geared towards linux, and I can't seem to get past this point



$ sudo yum install gcc krb5-devel krb5-workstation



Obviously I don't have yum, and where do I get the appropriate source? I'm on OmniOS 151016



Any suggestions please? And sorry for the ignorance, but this is my first attempt with Python.


And running the pip command throws the following errors:


root at omnitest:/root# pip install pywinrm[kerberos] 

DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6 

Requirement already satisfied (use --upgrade to upgrade): pywinrm[kerberos] in /usr/lib/python2.6/site-packages 

Requirement already satisfied (use --upgrade to upgrade): xmltodict in /usr/lib/python2.6/site-packages (from pywinrm[kerberos]) 

Requirement already satisfied (use --upgrade to upgrade): requests>=2.9.1 in /usr/lib/python2.6/site-packages (from pywinrm[kerberos]) 

Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.6/site-packages (from pywinrm[kerberos]) 

Requirement already satisfied (use --upgrade to upgrade): requests-ntlm>=0.3.0 in /usr/lib/python2.6/site-packages (from pywinrm[kerberos]) 

Collecting requests-kerberos>=0.10.0; extra == "kerberos" (from pywinrm[kerberos]) 

/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning. 

SNIMissingWarning 

/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. 

InsecurePlatformWarning 

Downloading requests_kerberos-0.10.0-py2.py3-none-any.whl 

Requirement already satisfied (use --upgrade to upgrade): python-ntlm3 in /usr/lib/python2.6/site-packages (from requests-ntlm>=0.3.0->pywinrm[kerberos]) 

Collecting pykerberos<2.0.0,>=1.1.8; sys_platform != "win32" (from requests-kerberos>=0.10.0; extra == "kerberos"->pywinrm[kerberos]) 

Downloading pykerberos-1.1.13.tar.gz 

Complete output from command python setup.py egg_info: 

Traceback (most recent call last): 

File "<string>", line 1, in <module> 

File "/tmp/pip-build-s071PJ/pykerberos/setup.py", line 52, in <module> 

extra_link_args = check_krb5_config("--libs", "gssapi") 

File "/tmp/pip-build-s071PJ/pykerberos/setup.py", line 36, in check_krb5_config 

raise subprocess.CalledProcessError(retcode, cmd, output=output) 

TypeError: __init__() got an unexpected keyword argument 'output' 



---------------------------------------- 

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-s071PJ/pykerberos/ 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20160607/e023df92/attachment.html>


More information about the OmniOS-discuss mailing list