brandond / requests-negotiate-sspi

Windows SSPI-based Negotiate authentication support for Requests.
Apache License 2.0
131 stars 24 forks source link

Error: modulenotfounderror no module named 'pywintypes' #18

Open pbneves opened 5 years ago

pbneves commented 5 years ago

Hi,

I'm getting the error message "ModuleNotFoundError: No module named 'pywintypes'" and when I try to run pip install pypiwin32 I get the message "Requirement already satisfied'. What is going wrong? Thanks

Carl4 commented 5 years ago

I had the same problem. Got past it by commenting out the import and replacing the two references to it (which were both the Catch part of a try-catch) to catch Python Exceptions instead. Now it can't find the sspi module. (next import line in requests_negotiate_sspi.py). I don't see an sspi package for python. Just kerberos-sspi and winsspy, both of which I've installed.

pbneves commented 5 years ago

Thanks for your reply. I'm just starting with python and I'm afraid that I hadn't kite understood your answer. Did you manage to put this software working or are you stuck because of the sspi module? Do you have a patched file working? Thanks,

brandond commented 5 years ago

@pbneves what version of python are you using, and on what OS?

pbneves commented 5 years ago

@brandond I'm using python version 3.7.3 on Windows 7 SP1..

janheindejong commented 5 years ago

I have the same issue... seems to be a Python 32-bit versus 64-bit thing... It works on the 32 bit environment, but not on the 64 bit one. I added requirement files, and the Python intpreter specifics below.

32 bit python: Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32

64 bit python: Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32

requirements32.txt requirements64.txt