Open snooppr opened 2 years ago
create_poster --type heatmap
"""In addition, when I wanted to process a large array of data, I caught another uncaught:"""
Error while loading /home/user/GPX/10.10.2021 08_25 (1).gpx: Track has no start or end time. Error while loading /home/user/GPX/01.11.2021 12_36 (1).gpx: Track has no start or end time. Traceback (most recent call last): File "/home/user/.local/bin/create_poster", line 10, in
sys.exit(main()) File "/home/user/.local/lib/python3.8/site-packages/gpxtrackposter/cli.py", line 247, in main tracks = loader.load_tracks(args.gpx_dir) File "/home/user/.local/lib/python3.8/site-packages/gpxtrackposter/track_loader.py", line 120, in load_tracks return self._filter_and_merge_tracks(tracks) File "/home/user/.local/lib/python3.8/site-packages/gpxtrackposter/track_loader.py", line 175, in _filter_and_merge_tracks tracks = self._merge_tracks(tracks) File "/home/user/.local/lib/python3.8/site-packages/gpxtrackposter/track_loader.py", line 185, in _merge_tracks tracks = sorted(tracks, key=lambda t1: t1.start_time()) TypeError: can't compare offset-naive and offset-aware datetimes
GNU/Linux deb; Python3.8.
The anomalous behavior causes "dependency" on the training order and results in the error above.
create_poster --type "github" --gpx-dir "~/dir"
Example, if I am going to process workouts (2015 and 2016, there will be no error), if (2015, 2016, 2018 then an error will appear and the poster will not be created), if (2015, 2016, 2017, 2018 there will be no error).
Works if there is one file in the directory.
Doesn't work, there are 3 files in the directory.
create_poster --type circular
create_poster --type github