psss / did

What did you do last week, month, year?
https://did.readthedocs.io/
GNU General Public License v2.0
247 stars 105 forks source link

Invalid plugin type 'google' in section 'google'. #269

Closed fhrdina1 closed 2 years ago

fhrdina1 commented 2 years ago

Hi, after crash of my fc35, I installed fc36, since then, the google plugin stopped working. Maybe it is some issue on my side, not sure.

did.noarch 0.191.20220608202157703892.master.1.ge1a809d.fc36@copr:copr.fedorainfracloud.org:psss:did

config:

[google]
type = google
client_id = xxxxx
client_secret = xxxxx
apps = calendar,tasks
storage = /home/fhrdina/.did/creds.json

did this week --debug

Traceback (most recent call last):
  File "/usr/bin/did", line 42, in <module>
    did.cli.main()
  File "/usr/lib/python3.10/site-packages/did/cli.py", line 201, in main
    options, header = Options(arguments).parse()
  File "/usr/lib/python3.10/site-packages/did/cli.py", line 72, in __init__
    self.sample_stats = UserStats()
  File "/usr/lib/python3.10/site-packages/did/stats.py", line 187, in __init__
    self.stats = self.configured_plugins(config)
  File "/usr/lib/python3.10/site-packages/did/stats.py", line 220, in configured_plugins
    raise did.base.ConfigError(
did.base.ConfigError: Invalid plugin type 'google' in section 'google'.
r0x0d commented 2 years ago

I had the same problem today while installing did through dnf.

What worked for me was removing it and installing it via pip.

pip install did[google]
fhrdina1 commented 2 years ago

I had the same problem today while installing did through dnf.

What worked for me was removing it and installing it via pip.

pip install did[google]

Hi, thanks. This helped, but unfortunately, the others internal redhat plugins stopped working.

psss commented 2 years ago

For the google plugin there is an additional dependency to be installed:

sudo dnf install python3-google-api-client python3-oauth2client

Does this fix your problem when installing did using dnf?

fhrdina1 commented 2 years ago

For the google plugin there is an additional dependency to be installed:

sudo dnf install python3-google-api-client python3-oauth2client

Does this fix your problem when installing did using dnf?

Combination of this and regenerating new credentials fixed it. Thank you for your help.

psss commented 2 years ago

Thanks for verifying. Updating docs in #270 to list both required packages.