tcgoetz / GarminDB

Download and parse data from Garmin Connect or a Garmin watch, FitBit CSV, and MS Health CSV files into and analyze data in Sqlite serverless databases with Jupyter notebooks.
GNU General Public License v2.0
1.1k stars 138 forks source link

'Document' object has no attribute 'add_header' #188

Closed CrO2Cl2 closed 1 year ago

CrO2Cl2 commented 1 year ago

Describe the bug the error 'Document' object has no attribute 'add_header' comes up whenever I try to run the monitoring Jupyter Notebook

To Reproduce Steps to reproduce the behavior: 1.download all your data from Garmindb 2.download and run the monitoring.ipynb 3.error result

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[4], line 22
     18 distance_units = unit_strings[fitfile.units.UnitTypes.distance_long]
     20 doc = snakemd.new_doc()
---> 22 doc.add_header("Monitoring Statistics")
     23 doc.add_paragraph("Analysis of all monitoring data in the database.")
     25 def __get_col_stats(table, col, name, ignore_le_zero=False, time_col=False):

AttributeError: 'Document' object has no attribute 'add_header'

Expected behavior a graph shows up

Additional context the jupyter notebook was run in an intellijpython 3.10 in a venv

Elliott-Ruebush commented 1 year ago

Just ran into this issue as well. It seems that the package used to create the documents (snakemd) has updated the method name to be add_heading instead of add_header.

alexis-m commented 1 year ago

The fix for this (#183) has just been merged. Hopefully a package update is coming.

tcgoetz commented 1 year ago

Merging PRs and accumulating fixes for another release. Hopefully soon.

tcgoetz commented 1 year ago

3.3.1