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

Closed
sahin/binary-clock-wallpaper
opened 2022-04-09 08:46:41 +03:00 by OneFJef · 3 comments
OneFJef commented 2022-04-09 08:46:41 +03:00 (Migrated from github.com)
$ 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.

``` $ 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 commented 2022-04-09 09:49:20 +03:00 (Migrated from github.com)

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

The `argparse.BooleanOptionalAction` feature is only available in Python 3.9 and above.
sahinakkaya commented 2022-04-09 10:18:22 +03:00 (Migrated from github.com)

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.

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 commented 2022-04-09 10:40:09 +03:00 (Migrated from github.com)

It should work now.

It should work now.
Sign in to join this conversation.
No assignees
No project
No milestone
Dependencies

No dependencies set

Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
sahin/binary-clock-wallpaper#3
No description provided.