02strich / django-auth-kerberos

Kerberos authentication backend for Django
MIT License
19 stars 12 forks source link

Install pykerberos error #2

Closed thiteixeira closed 9 years ago

thiteixeira commented 9 years ago

Dear Stefan.

I have Django installed in my Ubuntu virtual machine and I need Kerberos for a certain application. I ran "pip install --upgrade pykerberos" and got the following error log (I tried "pip install django-auth-kerberos" first and got the same message). Should I run some other command before the pip install?

PS: I don't know if this is the right place to ask this question (let me know if not).

Thanks


Downloading/unpacking pykerberos
  Downloading pykerberos-1.1.5.tar.gz
  Running setup.py (path:/tmp/pip_build_myname/pykerberos/setup.py) egg_info for package pykerberos
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip_build_myname/pykerberos/setup.py", line 44, in <module>
        universal_newlines=True
      File "/tmp/pip_build_myname/pykerberos/setup.py", line 31, in check_output
        process = subprocess.Popen(stdout=subprocess.PIPE, *popenargs, **kwargs)
      File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
        errread, errwrite)
      File "/usr/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_myname/pykerberos/setup.py", line 44, in <module>

    universal_newlines=True

  File "/tmp/pip_build_myname/pykerberos/setup.py", line 31, in check_output

    process = subprocess.Popen(stdout=subprocess.PIPE, *popenargs, **kwargs)

  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__

    errread, errwrite)

  File "/usr/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_myname/pykerberos
Storing debug log for failure in /home/myname/.pip/pip.log
02strich commented 9 years ago

Hi Thiago,

this is fine place to ask this very valid question, but one question in return first: could you try installing libkrb5-dev (http://packages.ubuntu.com/trusty/libkrb5-dev) and try again?

Thanks, Stefan

thiteixeira commented 9 years ago

Hi Stefan.

After installing the libkrb5-dev package it worked.

Thanks for helping

02strich commented 9 years ago

you are welcome, will look into making the error message more obvious