dimaryaz / jdmtool

A command-line tool for downloading Jeppesen databases and programming Garmin aviation data cards aiming to be compatible with Jeppesen Distribution Manager.
Apache License 2.0
12 stars 2 forks source link

Fatal error while logging in #5

Closed armellin closed 7 months ago

armellin commented 7 months ago

Installed following README's instructions.

Doing "jdmtool login" I got:

Traceback (most recent call last): File "/home/armellin/.local/bin/jdmtool", line 8, in sys.exit(main()) File "/home/armellin/.local/lib/python3.8/site-packages/jdmtool/main.py", line 478, in main func(**kwargs) File "/home/armellin/.local/lib/python3.8/site-packages/jdmtool/main.py", line 88, in cmd_login downloader.login(username, password) File "/home/armellin/.local/lib/python3.8/site-packages/jdmtool/downloader.py", line 72, in login headers, params = self.get_common_headers_params() File "/home/armellin/.local/lib/python3.8/site-packages/jdmtool/downloader.py", line 50, in get_common_headers_params date_str, cov_check = cls.get_cov_check() File "/home/armellin/.local/lib/python3.8/site-packages/jdmtool/downloader.py", line 43, in get_cov_check now = datetime.datetime.now(datetime.UTC) AttributeError: module 'datetime' has no attribute 'UTC'

dimaryaz commented 7 months ago

Ah, datetime.UTC was only added in Python 3.11. Let me fix that.

dimaryaz commented 7 months ago

Should be fixed now, in version 0.0.4.