Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'spnego' has no attribute 'ContextProxy' #1285

Open
SherlockLee592 opened this issue Feb 23, 2023 · 5 comments
Open
Labels
bug Something isn't working Priority: Low

Comments

@SherlockLee592
Copy link

Traceback (most recent call last):
File "dirsearch.py", line 73, in
main()
File "dirsearch.py", line 66, in main
from lib.controller.controller import Controller
File "C:\Users\xxx\Desktop\dirsearch\lib\controller\controller.py", line 29, in
from lib.connection.requester import Requester
File "C:\Users\xxx\Desktop\dirsearch\lib\connection\requester.py", line 30, in
from requests_ntlm import HttpNtlmAuth
File "C:\python3\lib\site-packages\requests_ntlm_init_.py", line 1, in
from .requests_ntlm import HttpNtlmAuth
File "C:\python3\lib\site-packages\requests_ntlm\requests_ntlm.py", line 14, in
class ShimSessionSecurity:
File "C:\python3\lib\site-packages\requests_ntlm\requests_ntlm.py", line 17, in ShimSessionSecurity
def init(self, context: spnego.ContextProxy) -> None:
AttributeError: module 'spnego' has no attribute 'ContextProxy'

how to solve this problem???

@SherlockLee592 SherlockLee592 added the question Further information is requested label Feb 23, 2023
@SherlockLee592
Copy link
Author

python3.7.4

@shelld3v
Copy link
Collaborator

I can't figure out what happened here, but maybe you should try to re-install requests-ntlm and pyspnego modules? I'm not sure if it will fix the issue but I can't find your problem on the internet or anywhere else

@shelld3v shelld3v reopened this Feb 26, 2023
@shelld3v shelld3v added bug Something isn't working unreproducible Issue can't be reproduced investigating Working on finding the root cause and removed question Further information is requested labels Feb 26, 2023
@thiborose
Copy link

Same issue here

@Prady18
Copy link

Prady18 commented Feb 28, 2023

The error message you provided indicates that there is an issue with the spnego module used by the requests_ntlm module. Here are some steps you can try to solve the problem:

1.Upgrade the spnego module:
In your terminal or command prompt, run the following command: pip install --upgrade spnego. This will upgrade the spnego module to the latest version.

2.Reinstall the requests_ntlm module:
In your terminal or command prompt, run the following command: pip uninstall requests-ntlm to uninstall the requests_ntlm module. Then, run pip install requests-ntlm to reinstall it.

3.Check if other modules are causing conflicts:
It's possible that other modules you have installed are causing conflicts with spnego. You can try uninstalling any other modules that you think might be causing the problem and see if that helps.

4.Check your Python version:
The spnego module may require a specific version of Python. Make sure you are using a compatible version by running python --version in your terminal or command prompt.

If none of these steps solve the problem, you may need to seek further assistance from the developers of the spnego or requests_ntlm modules. Ok buddy 😸

try this if you face any problem even after trying this then let me know

@thiborose
Copy link

I solved the problem by downgrading requests_ntlm to 1.1.0

shelld3v added a commit that referenced this issue Nov 8, 2024
@shelld3v shelld3v added Priority: Low and removed unreproducible Issue can't be reproduced investigating Working on finding the root cause labels Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority: Low
Projects
None yet
Development

No branches or pull requests

4 participants