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: 'Namespace' object has no attribute 'json' #18

Closed
helloyw opened this issue Dec 24, 2021 · 4 comments
Closed

AttributeError: 'Namespace' object has no attribute 'json' #18

helloyw opened this issue Dec 24, 2021 · 4 comments

Comments

@helloyw
Copy link

helloyw commented Dec 24, 2021

Please tell me, my current environment is python3.9, when executed, Certipy 'test/join:PassWo!rd@dc.test.local' auto, the following error appears, is there any solution?

Traceback (most recent call last):
File "/usr/local/bin/certipy", line 33, in
sys.exit(load_entry_point('Certipy==0.2', 'console_scripts', 'certipy')())
File "/usr/local/lib/python3.9/dist-packages/Certipy-0.2-py3.9.egg/certipy/entry.py", line 176, in main
File "/usr/local/lib/python3.9/dist-packages/Certipy-0.2-py3.9.egg/certipy/auto.py", line 29, in auto
File "/usr/local/lib/python3.9/dist-packages/Certipy-0.2-py3.9.egg/certipy/find.py", line 474, in init
AttributeError: 'Namespace' object has no attribute 'json'

@mxrch
Copy link

mxrch commented Dec 27, 2021

Got the same error with Python 3.9.

@mxrch
Copy link

mxrch commented Dec 28, 2021

As a temporary workaround, you can just comment these two lines at certipy/find.py:474 :

        #if self.options.json:
        #    logging.getLogger().setLevel(logging.WARNING)

They are only logger-related and not necessary.

@helloyw
Copy link
Author

helloyw commented Dec 28, 2021

作为临时解决方法,您可以在 certipy/find.py:474 注释这两行:

        #if self.options.json: 
        # logging.getLogger().setLevel(logging.WARNING)

它们仅与记录器相关,而不是必需的。

Thank mxrch

@ly4k
Copy link
Owner

ly4k commented Jan 7, 2022

Fixed in #91cbec8

@ly4k ly4k closed this as completed Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants