Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

ICS Schlägt fehl #7

Open
DO1JLR opened this issue Aug 23, 2018 · 0 comments
Open

ICS Schlägt fehl #7

DO1JLR opened this issue Aug 23, 2018 · 0 comments
Assignees

Comments

@DO1JLR
Copy link
Contributor

DO1JLR commented Aug 23, 2018

./ICS_parser.py 
/usr/local/lib/python3.5/dist-packages/urllib3/connectionpool.py:857: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
HTTP Response Status: 200
Traceback (most recent call last):
  File "./ICS_parser.py", line 30, in <module>
    calendar = Calendar(ics_file)
  File "/usr/local/lib/python3.5/dist-packages/ics/icalendar.py", line 69, in __init__
    self._populate(container[0])  # Use first calendar
  File "/usr/local/lib/python3.5/dist-packages/ics/component.py", line 60, in _populate
    extractor.function(self, lines)  # Send a list or empty list
  File "/usr/local/lib/python3.5/dist-packages/ics/icalendar.py", line 214, in events
    calendar.events = list(map(event_factory, lines))
  File "/usr/local/lib/python3.5/dist-packages/ics/icalendar.py", line 213, in event_factory
    return Event._from_container(x, tz=calendar._timezones)
  File "/usr/local/lib/python3.5/dist-packages/ics/component.py", line 32, in _from_container
    k._populate(container)
  File "/usr/local/lib/python3.5/dist-packages/ics/component.py", line 60, in _populate
    extractor.function(self, lines)  # Send a list or empty list
  File "/usr/local/lib/python3.5/dist-packages/ics/event.py", line 497, in alarms
    event.alarms = list(map(alarm_factory, lines))
  File "/usr/local/lib/python3.5/dist-packages/ics/event.py", line 496, in alarm_factory
    return af._from_container(x)
  File "/usr/local/lib/python3.5/dist-packages/ics/component.py", line 32, in _from_container
    k._populate(container)
  File "/usr/local/lib/python3.5/dist-packages/ics/component.py", line 63, in _populate
    extractor.function(self, lines[0])  # Send the element
  File "/usr/local/lib/python3.5/dist-packages/ics/alarm.py", line 207, in trigger
    alarm.trigger = iso_to_arrow(line)
  File "/usr/local/lib/python3.5/dist-packages/ics/utils.py", line 54, in iso_to_arrow
    return arrow.get(val)
  File "/usr/local/lib/python3.5/dist-packages/arrow/api.py", line 23, in get
    return _factory.get(*args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/arrow/factory.py", line 142, in get
    dt = parser.DateTimeParser(locale).parse_iso(arg)
  File "/usr/local/lib/python3.5/dist-packages/arrow/parser.py", line 95, in parse_iso
    return self._parse_multiformat(string, formats)
  File "/usr/local/lib/python3.5/dist-packages/arrow/parser.py", line 209, in _parse_multiformat
    raise ParserError('Could not match input to any of {0}'.format(formats))
arrow.parser.ParserError: Could not match input to any of ['YYYY-MM-DDTHH:mm']
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants