csv-ical icon indicating copy to clipboard operation
csv-ical copied to clipboard

Cannot get this to work.

Open InfoSecured opened this issue 5 years ago • 1 comments

Hi,

I've been looking all over the place for a script like this an its promising based on the examples you have, but I've tried numerous combinations of 'csv_configs' and just cannot get anything to output correctly to ics. The only thing I get in an output are the first two lines below:

BEGIN:VCALENDAR END:VCALENDAR

I've even gone so far as to use the same data and configuration from your csv file and arrive.py file, within my csv and script, and even that doesn't work. Any thoughts on what I could be doing wrong?

InfoSecured avatar Nov 09 '18 17:11 InfoSecured

I had the exact same problem trying to use a CSV file of my own. Finally, I figured out that I was causing a Value Error, which caused each row to pop out of the stack in accordance with this instruction:
except ValueError: convert.csv_data.pop(i)

As a result, when convert.py got hold of this, there was no row value to instantiate the Event class as an "event".

My issue was caused by a mis-alignment of columns in csv_configs, but given the breadth of the built-in ValueError, there may be many causes. Hope this helps.

Robami avatar Jan 29 '19 16:01 Robami