bgamble / pykerberos Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
I get the following error when I run pip install pykerebos
. I notice the project hasn't been updated in a while, am I missing anything or is this a valid error?
I am using:
python --version
Python 2.7.8 :: Anaconda 2.1.0 (64-bit)
[root@base admin]# pip install pykerberos
Downloading/unpacking pykerberos
Downloading pykerberos-1.1.5.tar.gz
Running setup.py (path:/tmp/pip_build_root/pykerberos/setup.py) egg_info for package pykerberos
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pykerberos/setup.py", line 44, in <module>
universal_newlines=True
File "/tmp/pip_build_root/pykerberos/setup.py", line 31, in check_output
process = subprocess.Popen(stdout=subprocess.PIPE, *popenargs, **kwargs)
File "/usr/local/anaconda/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/local/anaconda/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pykerberos/setup.py", line 44, in <module>
universal_newlines=True
File "/tmp/pip_build_root/pykerberos/setup.py", line 31, in check_output
process = subprocess.Popen(stdout=subprocess.PIPE, *popenargs, **kwargs)
File "/usr/local/anaconda/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/local/anaconda/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/pykerberos
Storing debug log for failure in /root/.pip/pip.log
Recently we are unable to use https://pypi.org/project/pykerberos.
Won't install on MacOS or Linux.
The checkPassword documentation says:
"This function provides a simple way to verify that a user name and password match
those normally used for Kerberos authentication. It does this by checking that the
supplied user name and password can be used to get a ticket for the supplied service.
If the user name does not contain a realm, then the default realm supplied is used.
..."
Shouldn't this function return False if the service doesn't exist?
>>> import kerberos
>>> kerberos.checkPassword('demo', 'demo', '', 'DOCKERDOMAIN')
True
>>> kerberos.checkPassword('demo', 'demo', 'doesNotExist/kerberos.dockerdomain', 'DOCKERDOMAIN')
True
I would expect the second call to return False.
Is this a bug or am I wrong?
Thanks
When I try to pip install pyKerberos I get:
Error while loading shared libraries: libopcodes-2.27.so
The file is actually available on my machine, but it cannot be found.
Is there any way I can specify the path where it should look for it?
I tried both
pip install requests-kerberos
and downloading master.zip and pip installing that way.
Both ways result in stderr Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-1gTsvg/pykerberos/
It also spits out a ton of stuff to stdout
Collecting https://pypi.python.org/packages/source/r/requests-kerberos/requests-kerberos-0.8.0.tar.gz
Using cached requests-kerberos-0.8.0.tar.gz
Requirement already satisfied (use --upgrade to upgrade): requests>=1.1.0 in /usr/local/lib/python2.7/dist-packages (from requests-kerberos==0.8.0)
Collecting pykerberos<2.0.0,>=1.1.8 (from requests-kerberos==0.8.0)
Using cached pykerberos-1.1.10.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-1gTsvg/pykerberos/setup.py", line 57, in <module>
krb5_ver = check_krb5_version()
File "/tmp/pip-build-1gTsvg/pykerberos/setup.py", line 50, in check_krb5_version
if len(krb5_vers) == 4:
TypeError: object of type 'NoneType' has no len()
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-1gTsvg/pykerberos/setup.py", line 57, in <module>
krb5_ver = check_krb5_version()
File "/tmp/pip-build-1gTsvg/pykerberos/setup.py", line 49, in check_krb5_version
krb5_vers = check_krb5_config("--version")
File "/tmp/pip-build-1gTsvg/pykerberos/setup.py", line 43, in check_krb5_config
return check_krb5_config(*options, command_name="krb5-config.mit")
.........lots of repeat........
return check_krb5_config(*options, command_name="krb5-config.mit")
File "/tmp/pip-build-1gTsvg/pykerberos/setup.py", line 43, in check_krb5_config
return check_krb5_config(*options, command_name="krb5-config.mit")
File "/tmp/pip-build-1gTsvg/pykerberos/setup.py", line 37, in check_krb5_config
cmd = popenargs[0]
NameError: global name 'popenargs' is not defined
----------------------------------------
Installing pykerkeros (v1.1.9) from source fails with the error:
File "/tmp/pip-build-SpfsFD/pykerberos/setup.py", line 57, in
krb5_ver = check_krb5_version()
File "/tmp/pip-build-SpfsFD/pykerberos/setup.py", line 50, in check_krb5_version
if len(krb5_vers) == 4:
TypeError: object of type 'NoneType' has no len()
Shouldn't this dependency with krb5-config be handled by the pykerberos lib?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.