prometheus42 / libreoffice-ical-importer Goto Github PK
View Code? Open in Web Editor NEWSimple extension for LibreOffice for importing iCalendar files (.ics) into LibreOffice Calc.
License: MIT License
Simple extension for LibreOffice for importing iCalendar files (.ics) into LibreOffice Calc.
License: MIT License
Does this tool also handle recurring events?
It seems that only the first day is imported.
Hello,
Is it possible to launch import_ical.py in command line with the path to the file to import as argument ?
Tanks
I'm using Ubuntu 20.04.5 LTS and LibreOffice 7.3.2.2 .
I cloned the repo, installed Ics.py via
pip install ics
, changed into the directory and then built the extension with
./build.py
When trying to install the extension in LibreOffice, I got following error:
Checking dateutil again:
pip install python-dateutil
returns
Requirement already satisfied: python-dateutil in /usr/lib/python3/dist-packages (2.7.3)
I figured I can use ical2csv.py directly from command line so I tried converting a calendar exported by Thunderbird.
After some processing time I get following error:
src/ical2csv.py ~/Dokumente/Privat.ics
Writing to CSV file: /home/me/Dokumente/Privat.ics.csv
Reading iCalendar file...
Traceback (most recent call last):
File "src/ical2csv.py", line 91, in
convert_ical_file()
File "/home/me/Downloads/programme/libreoffice-ical-importer/LO-ICAL/lib/python3.8/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/home/me/Downloads/programme/libreoffice-ical-importer/LO-ICAL/lib/python3.8/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/me/Downloads/programme/libreoffice-ical-importer/LO-ICAL/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/me/Downloads/programme/libreoffice-ical-importer/LO-ICAL/lib/python3.8/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "src/ical2csv.py", line 66, in convert_ical_file
write_csv_file(read_ical_file(icalendar_file), csv_file)
File "src/ical2csv.py", line 24, in read_ical_file
c = Calendar(calendar_file.read())
File "/home/me/Downloads/programme/libreoffice-ical-importer/LO-ICAL/lib/python3.8/site-packages/ics/icalendar.py", line 69, in init
self._populate(containers[0]) # Use first calendar
File "/home/me/Downloads/programme/libreoffice-ical-importer/LO-ICAL/lib/python3.8/site-packages/ics/component.py", line 59, in _populate
parser(self, lines) # Send a list or empty list
File "/home/me/Downloads/programme/libreoffice-ical-importer/LO-ICAL/lib/python3.8/site-packages/ics/parsers/icalendar_parser.py", line 71, in parse_vevent
calendar.events = set(map(event_factory, lines))
File "/home/me/Downloads/programme/libreoffice-ical-importer/LO-ICAL/lib/python3.8/site-packages/ics/parsers/icalendar_parser.py", line 69, in event_factory
return Event._from_container(x, tz=calendar._timezones)
File "/home/me/Downloads/programme/libreoffice-ical-importer/LO-ICAL/lib/python3.8/site-packages/ics/component.py", line 31, in _from_container
k._populate(container)
File "/home/me/Downloads/programme/libreoffice-ical-importer/LO-ICAL/lib/python3.8/site-packages/ics/component.py", line 54, in _populate
raise ValueError(
ValueError: A VEVENT must have at most one CATEGORIES
Why are multiple categories not supported? Ics-py seems able to process them.
I also checked my .ics file: All events have at most one category…
I also opened an issue there: ics-py/ics-py#373
Please, change format from text to hour
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.