LSSTDESC / CosmologyMeetings

Community-maintained listing and calendar of cosmology conference, workshops and collaboration meetings.
https://lsstdesc.github.io/CosmologyMeetings/
MIT License
2 stars 0 forks source link

Bug: pyICSParser import error, found via GitHub Actions #20

Open drphilmarshall opened 2 years ago

drphilmarshall commented 2 years ago

Describe the bug Looks like the notebook that makes the Event LIst is no longer working - GitHub Actions thinks the problem is in importing pyICSParser.

To Reproduce Steps to reproduce the behavior:

  1. Open the notebook "MakeEventList.ipynb"
  2. Execute the cells
  3. See error

Expected behavior The pyICSParser code should have enabled a download of the CosmologyMeetings Google calendar into a pandas dataframe, which is then written out as a Markdown table.

Screenshots Here's the error message from GitHub Actions, from this run:

https://github.com/LSSTDESC/CosmologyMeetings/runs/7719282275?check_suite_focus=true

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Input In [5], in <cell line: 1>()
----> 1 from pyICSParser import pyiCalendar as ical
      3 mycal = ical.iCalendar()
      4 #start and end are string objects of yyyymmdd type

File /opt/hostedtoolcache/Python/3.10.5/x[64](https://github.com/LSSTDESC/CosmologyMeetings/runs/7719282275?check_suite_focus=true#step:5:65)/lib/python3.10/site-packages/pyICSParser/pyiCalendar.py:95, in <module>
     92 import uuid
     93 import logging
---> 95 from icalendar_SCM import RFC5545_SCM, ESCAPEDCHAR,COMMA,RFC5545_Properties,RFC5545_FREQ,\
     96     weekday_map,MaxInteger, CRLF,RFC5545_eventprop_count, VCALENDAR_Components, VCALENDAR_Properties
     97 from RFC5546_SCM import RFC5546_METHODS
     99 __VERSION__ = "0.7.2"

ModuleNotFoundError: No module named 'icalendar_SCM'
ModuleNotFoundError: No module named 'icalendar_SCM'

Error: Process completed with exit code 1.

Additional context This bug was found when setting up GitHub Actions.