Closed pstorch closed 7 months ago
28 of my 250 files had this error.
Nice: after fixing them, geo-activity-playground just read those files and added them, without reparsing all :+1:
That is a very sensible suggestion. Now the output is this:
2023-11-26 17:34:54 geo_activity_playground.importers.directory INFO Loading metadata file …
2023-11-26 17:34:54 geo_activity_playground.importers.directory INFO Parsing activity file Activities/9876448717.tcx.gz …
2023-11-26 17:34:54 geo_activity_playground.importers.directory ERROR Error while parsing file Activities/9876448717.tcx.gz:
Traceback (most recent call last):
File "/home/mu/Projekte/geo-activity-playground/geo_activity_playground/importers/directory.py", line 38, in import_from_directory
timeseries = read_activity(path)
File "/home/mu/Projekte/geo-activity-playground/geo_activity_playground/core/activity_parsers.py", line 85, in read_activity
raise NotImplementedError(f"Unknown suffix: {path}")
NotImplementedError: Unknown suffix: Activities/9876448717.tcx.gz
2023-11-26 17:34:54 geo_activity_playground.importers.directory INFO Parsing activity file Activities/9890487249.tcx …
2023-11-26 17:34:54 geo_activity_playground.importers.directory ERROR Error while parsing file Activities/9890487249.tcx:
Traceback (most recent call last):
File "/home/mu/Projekte/geo-activity-playground/geo_activity_playground/importers/directory.py", line 38, in import_from_directory
timeseries = read_activity(path)
File "/home/mu/Projekte/geo-activity-playground/geo_activity_playground/core/activity_parsers.py", line 91, in read_activity
raise NotImplementedError(f"Unknown suffix: {path}")
NotImplementedError: Unknown suffix: Activities/9890487249.tcx
2023-11-26 17:34:54 geo_activity_playground.importers.directory WARNING There were errors while parsing some of the files. These were skipped and tried again next time.
2023-11-26 17:34:54 geo_activity_playground.importers.directory ERROR Activities/9876448717.tcx.gz: Unknown suffix: Activities/9876448717.tcx.gz
2023-11-26 17:34:54 geo_activity_playground.importers.directory ERROR Activities/9890487249.tcx: Unknown suffix: Activities/9890487249.tcx
Thanks :+1:
Sorry to bombard you with Issues. I've now tried to use single .gpx files exported from OpenTracks (250 files). Some of them have problems. I have to investigate why this happens. I now have to start geo-activity-playground, look at the error, move the errornous file out of the activities directory and start again until the next file fails.
Can geo-activity-playground skip errornous files? Still log them, but start anyway.