Giter VIP home page Giter VIP logo

sync_ics2gcal's People

Contributors

b4tman avatar dependabot-preview[bot] avatar dependabot[bot] avatar fossabot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sync_ics2gcal's Issues

Support for recurring events

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!

config: `start_from` can be already parsed datetime

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)

Authentification erro

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

Error when trying to update

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 ?

404 error when trying to sync

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.