Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google_contacts storage doesn't take the parameters: type #994

Closed
waclaw66 opened this issue Jul 1, 2022 · 3 comments · Fixed by #1016
Closed

google_contacts storage doesn't take the parameters: type #994

waclaw66 opened this issue Jul 1, 2022 · 3 comments · Fixed by #1016
Milestone

Comments

@waclaw66
Copy link
Contributor

waclaw66 commented Jul 1, 2022

  • Your vdirsyncer version - 1f7497c
  • Your Python version - 3.10.5
  • Your operating system - Fedora 36
[general]
status_path = "/var/lib/vdirsyncer"

[pair google_to_local]
a = "google_contacts"
b = "local_contacts"
collections = ["from a", "from b"]

[pair nextcloud_to_local]
a = "nextcloud_contacts"
b = "local_contacts"
collections = ["from a", "from b"]

[storage local_contacts]
type = "filesystem"
path = "/var/lib/vdirsyncer/contacts/"
fileext = ".vcf"

[storage nextcloud_contacts]
type = "carddav"
url = "https://[redacted]"
username = "[redacted]"
password = "[redacted]"

[storage google_contacts]
type = "google_contacts"
token_file = "/var/lib/vdirsyncer/google_token"
client_id = "[redacted]"
client_secret = "[redacted]"

Command:
/opt/vdirsyncer/bin/python -m vdirsyncer -vdebug --config /etc/vdirsyncer/config discover

Output:

Discovering collections for pair google_to_local
critical: Failed to initialize google_contacts
critical:   - google_contacts storage doesn't take the parameters: type
@WhyNotHugo WhyNotHugo added this to the 0.19.0 milestone Jul 1, 2022
@waclaw66
Copy link
Contributor Author

Any advice how to fix it?

@waclaw66
Copy link
Contributor Author

waclaw66 commented Oct 13, 2022

I found the problem. It's caused by missing GoogleContactsStorage at

if self._cls.__name__ in [

When I added it, discover works properly.

@waclaw66
Copy link
Contributor Author

waclaw66 commented Dec 8, 2022

Fixed in #1016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants