Howdy,

I'm one of the ones that never had problems with gcalcli at all.  I know
some have had to go through the re-auth process but I haven't needed to
do that for a couple of years now.

I had already attempted updating to 4.4.0 (at the time marked as a pre-
release) but with the changes done it has a nasty failure mode for
someone that already runs gcalcli.  After upgrade, one must simply run
any command and they get the following traceback

Traceback (most recent call last):
  File "/usr/bin/gcalcli", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3/dist-packages/gcalcli/cli.py", line 151, in main
    gcal.AgendaQuery(start=parsed_args.start, end=parsed_args.end)
  File "/usr/lib/python3/dist-packages/gcalcli/gcal.py", line 1190, in 
AgendaQuery
    return self._display_queried_events(start, end)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/gcalcli/gcal.py", line 1134, in 
_display_queried_events
    event_list = self._search_for_events(start, end, search)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/gcalcli/gcal.py", line 1096, in 
_search_for_events
    event_list.extend(
  File "/usr/lib/python3/dist-packages/gcalcli/gcal.py", line 1041, in 
_GetAllEvents
    self.get_events()
  File "/usr/lib/python3/dist-packages/gcalcli/gcal.py", line 183, in get_events
    return self.get_cal_service().events()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/gcalcli/gcal.py", line 178, in 
get_cal_service
    credentials=self._google_auth())
                ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/gcalcli/gcal.py", line 135, in 
_google_auth
    self.credentials = pickle.load(gcalcli_oauth)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
_pickle.UnpicklingError: invalid load key, '{'.

This is of course due to moving from json to pickle format.  I added a
staging NEWS entry for it, but as we all know from the keepassxc fun
that nobody has apt-listchanges installed.

My hope was that upstream would add some migration step, but I presume
that's a pipedream.  I haven't checked to see for sure that your changes
have the same issue, but I'd guess so.

For whatever it's worth, my staged NEWS entry:
+  Due to upstream's move from oauth2client to google-auth-oauthlib, the config
+  file format has entirely changed.  Before running gcalcli, you must first
+  remove your old ~/.gcalcli_oauth file and re-perform authentication.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2078793

Title:
  gcalcli: uses python3-oauth2client

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcalcli/+bug/2078793/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to