linux-cli icon indicating copy to clipboard operation
linux-cli copied to clipboard

Unable to generate logs: can't compare offset-naive and offset-aware datetimes

Open JRDetwiler opened this issue 1 year ago • 4 comments

The CLI client has the following error for me on Arch Linux:

$ protonvpn-cli --get-logs

Generating logs...

Unable to generate logs: can't compare offset-naive and offset-aware datetimes

In the resulting protonvpn-cli.log, there's:

2023-02-20 16:22:10,026 — cli.py — INFO — __init__:17 — 
-------------------------------------------------

-----------	Initialized protonvpn-cli	-----------

-------------------------------------------------
2023-02-20 16:22:10,026 — cli.py — INFO — __init__:29 — Proton VPN CLI v3.13.0 (protonvpn-nm-lib v3.14.0; proton-client v0.7.1)
2023-02-20 16:22:10,031 — cli_wrapper.py — ERROR — get_logs:842 — can't compare offset-naive and offset-aware datetimes
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/protonvpn_cli/cli_wrapper.py", line 840, in get_logs
    bug_report.generate_logs()
  File "/usr/lib/python3.10/site-packages/protonvpn_nm_lib/core/report/bug.py", line 21, in generate_logs
    self.generate_network_manager_log()
  File "/usr/lib/python3.10/site-packages/protonvpn_nm_lib/core/report/bug.py", line 32, in generate_network_manager_log
    self.__generate_log("NetworkManager.service", NETWORK_MANAGER_LOGFILE)
  File "/usr/lib/python3.10/site-packages/protonvpn_nm_lib/core/report/bug.py", line 68, in __generate_log
    self.__add_log_to_file(_journal, filepath)
  File "/usr/lib/python3.10/site-packages/protonvpn_nm_lib/core/report/bug.py", line 98, in __add_log_to_file
    if entry["_SOURCE_REALTIME_TIMESTAMP"] < start_date:
TypeError: can't compare offset-naive and offset-aware datetimes

JRDetwiler avatar Feb 20 '23 16:02 JRDetwiler

Hey, did you ever fix this issue?

Tnology avatar Apr 09 '23 16:04 Tnology

Hey, did you ever fix this issue?

No, sorry. It's a standing issue with the repo because Proton abandoned their official client...again. There haven't been any commits here in several months.

JRDetwiler avatar Apr 10 '23 17:04 JRDetwiler

Started getting this today out of the blue!. To my knowledge, nothing on my system has changed

S0litaire avatar May 31 '23 10:05 S0litaire

I'm getting this as well. Trying to troubleshoot "Unknown API error." whenever I try to log in with either CLI or GUI.

cyberfeign avatar Jun 09 '23 08:06 cyberfeign