Python Kerberos-1.1.1.tar.gz Install Failure on Windows

后端 未结 2 1021
小蘑菇
小蘑菇 2020-12-16 20:50

I run Python on windows based environments (2003, win 7, 2008 r2, etc) both 32 and 64-bit flavors. I\'ve recently had to authenticate to various corporate, internally facin

相关标签:
2条回答
  • 2020-12-16 21:28

    I managed to fix this problem.

    1. Install $ pip install kerberos-sspi
    2. Download requests-kerberos ZIP from GitHub
    3. In 'requests-kerberos/kerberos_.py', change the line import kerberos to import kerberos_sspi as kerberos
    4. In 'requirements.txt', delete 'kerberos==1.1.1'
    5. Run $ python setup.py install.

    If you want to run test_requests_kerberos.py that is in requests-kerberos/ you need to change import kerberos with import kerberos_sspi as kerberos.

    Beside that you need to change all occurrences of:

    with patch.multiple('kerberos', ...)
    

    with:

    with patch.multiple('kerberos_sspi', ...)
    

    That worked for me.

    0 讨论(0)
  • 2020-12-16 21:49

    The second problem you can solve with installing Visual Studio 2012 Express and execute this command in command prompt:

    > SET VS90COMNTOOLS=%VS110COMNTOOLS%

    After executing this command I have a issue with your first problem. Have you solved it?

    0 讨论(0)
提交回复
热议问题