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 'argparse' has no attribute 'BooleanOptionalAction' #3

Closed
OneFJef opened this issue Apr 9, 2022 · 3 comments · Fixed by #4
Closed

AttributeError: module 'argparse' has no attribute 'BooleanOptionalAction' #3

OneFJef opened this issue Apr 9, 2022 · 3 comments · Fixed by #4

Comments

@OneFJef
Copy link

OneFJef commented Apr 9, 2022

$ python3 binary_clock_wallpaper.py 
Traceback (most recent call last):
  File "binary_clock_wallpaper.py", line 21, in <module>
    action=argparse.BooleanOptionalAction,
AttributeError: module 'argparse' has no attribute 'BooleanOptionalAction'

This is what comes up when I follow the README and try to launch the program. Ni issues withe the venv or installing the requirements.

@PROxZIMA
Copy link

PROxZIMA commented Apr 9, 2022

The argparse.BooleanOptionalAction feature is only available in Python 3.9 and above.

@sahinakkaya
Copy link
Owner

Yeah, as PROxZIMA said that option is only available Python3.9+

I knew someone will get that error while writing the code :D If you can't figure it out by yourself, I can do a quick fix. Just let me know.

@sahinakkaya
Copy link
Owner

It should work now.

@sahinakkaya sahinakkaya pinned this issue Apr 9, 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

Successfully merging a pull request may close this issue.

3 participants