b4tman / sync_ics2gcal Goto Github PK
View Code? Open in Web Editor NEWSync .ics file with Google calendar
License: MIT License
Sync .ics file with Google calendar
License: MIT License
Sorry, but a new issue appears after installation the latest developper branch version, when trying to create a new calendar :
root@DEB10-ICS2GCALSYNC:/home/ical2googlesync/sync_ics2gcal# poetry run manage-ics2gcal create Yvan
Traceback (most recent call last):
File "", line 1, in
File "/home/ical2googlesync/sync_ics2gcal/sync_ics2gcal/manage_calendars.py", line 140, in main
fire.Fire(Commands, name='manage-ics2gcal')
File "/root/.cache/pypoetry/virtualenvs/sync-ics2gcal-YErR-sF2-py3.7/lib/python3.7/site-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/root/.cache/pypoetry/virtualenvs/sync-ics2gcal-YErR-sF2-py3.7/lib/python3.7/site-packages/fire/core.py", line 471, in _Fire
target=component.name)
File "/root/.cache/pypoetry/virtualenvs/sync-ics2gcal-YErR-sF2-py3.7/lib/python3.7/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/home/ical2googlesync/sync_ics2gcal/sync_ics2gcal/manage_calendars.py", line 63, in init
self._service = GoogleCalendarService.from_config(self._config)
File "/home/ical2googlesync/sync_ics2gcal/sync_ics2gcal/gcal.py", line 65, in from_config
service = GoogleCalendarService.default()
File "/home/ical2googlesync/sync_ics2gcal/sync_ics2gcal/gcal.py", line 30, in default
credentials, _ = google.auth.default(scopes=scopes)
File "/root/.cache/pypoetry/virtualenvs/sync-ics2gcal-YErR-sF2-py3.7/lib/python3.7/site-packages/google/auth/_default.py", line 575, in default
raise exceptions.DefaultCredentialsError(_HELP_MESSAGE)
google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application. For more information, please see https://cloud.google.com/docs/authentication/getting-started
Hi, after a first sync, I'm facing this issue when trying to re-sync :
Traceback (most recent call last):
File "/usr/local/bin/sync-ics2gcal", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/sync_ics2gcal/sync_calendar.py", line 49, in main
sync.prepare_sync(start)
File "/usr/local/lib/python3.7/dist-packages/sync_ics2gcal/sync.py", line 169, in prepare_sync
self._filter_events_to_update()
File "/usr/local/lib/python3.7/dist-packages/sync_ics2gcal/sync.py", line 79, in _filter_events_to_update
self.to_update = list(filter(filter_updated, self.to_update))
File "/usr/local/lib/python3.7/dist-packages/sync_ics2gcal/sync.py", line 75, in filter_updated
new_date = dateutil.parser.parse(new['updated'])
KeyError: 'updated'
What could be the reason ? Any idea to solve this issue ?
Nice looking code!
I didn't see support for recurring events (RRULE, EXDATE, etc). Am I reading this correctly? On the surface, to me, it seems easy to add. Wondering if you just didn't need it or there's some reason its not supported.
Thanks!
Just an issue when trying to use a config start_from with a specific date :
Traceback (most recent call last):
File "", line 1, in
File "/home/ical2googlesync/sync-ics2gcal/sync_ics2gcal/sync_calendar.py", line 40, in main
start = get_start_date(config['start_from'])
File "/home/ical2googlesync/sync-ics2gcal/sync_ics2gcal/sync_calendar.py", line 27, in get_start_date
result = dateutil.parser.parse(date_str)
File "/root/.cache/pypoetry/virtualenvs/sync-ics2gcal--yUbY2jh-py3.7/lib/python3.7/site-packages/dateutil/parser/_parser.py", line 1368, in parse
return DEFAULTPARSER.parse(timestr, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/sync-ics2gcal--yUbY2jh-py3.7/lib/python3.7/site-packages/dateutil/parser/_parser.py", line 640, in parse
res, skipped_tokens = self._parse(timestr, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/sync-ics2gcal--yUbY2jh-py3.7/lib/python3.7/site-packages/dateutil/parser/_parser.py", line 719, in _parse
l = _timelex.split(timestr) # Splits the timestr into tokens
File "/root/.cache/pypoetry/virtualenvs/sync-ics2gcal--yUbY2jh-py3.7/lib/python3.7/site-packages/dateutil/parser/_parser.py", line 201, in split
return list(cls(s))
File "/root/.cache/pypoetry/virtualenvs/sync-ics2gcal--yUbY2jh-py3.7/lib/python3.7/site-packages/dateutil/parser/_parser.py", line 70, in init
'{itype}'.format(itype=instream.class.name))
TypeError: Parser must be a string or character stream, not datetime
Originally posted by @yvangodard in #80 (comment)
Hi,
I'm trying to use your tool, but i'm facing en issue :
Traceback (most recent call last):
File "/home/sync-ic2gcal/venv/bin/sync-ics2gcal", line 8, in
sys.exit(main())
File "/home/sync-ic2gcal/venv/lib/python3.7/site-packages/sync_ics2gcal/sync_calendar.py", line 49, in main
sync.prepare_sync(start)
File "/home/sync-ic2gcal/venv/lib/python3.7/site-packages/sync_ics2gcal/sync.py", line 146, in prepare_sync
events_dst = self.gcalendar.list_events_from(start_date)
File "/home/sync-ic2gcal/venv/lib/python3.7/site-packages/sync_ics2gcal/gcal.py", line 140, in list_events_from
fields=fields).execute()
File "/home/sync-ic2gcal/venv/lib/python3.7/site-packages/googleapiclient/_helpers.py", line 131, in positional_wrapper
return wrapped(*args, **kwargs)
File "/home/sync-ic2gcal/venv/lib/python3.7/site-packages/googleapiclient/http.py", line 937, in execute
raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 404 when requesting https://www.googleapis.com/calendar/v3/calendars/9i2mpeeook2iam2hdfhpjs2nuk%40group.calendar.google.com/events?singleEvents=true&timeMin=2022-02-20T08%3A25%3A34.434038Z&fields=nextPageToken%2Citems%28id%2CiCalUID%2Cupdated%29&alt=json returned "Not Found". Details: "[{'domain': 'global', 'reason': 'notFound', 'message': 'Not Found'}]">
I checked gcalendar Id, ICS file, etc. but no idea to solve it ...
Could you help me ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.