gazpachoking / trainaspower

Convert TrainAsOne training plans from pace to power, and upload them to FinalSurge for use in Stryd workouts.
21 stars 5 forks source link

Error finding workout steps: ("'ConcreteStep' object has no attribute 'power_range'",) #15

Closed waynedvernon closed 2 years ago

waynedvernon commented 3 years ago

Many thanks for your work.

I have been using Trainaspower without issue until a recent repitition run did not pull through to final surge. I have pasted the debug log file entry:

Many thanks

------------------------------------
2021-07-20 06:00:17.437 | DEBUG    | __main__:main:99 - Error
Traceback (most recent call last):

  File "trainaspower\trainasone.py", line 73, in get_workout

  File "trainaspower\trainasone.py", line 90, in convert_steps

  File "trainaspower\trainasone.py", line 158, in convert_steps

AttributeError: 'ConcreteStep' object has no attribute 'power_range'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

  File "trainaspower\trainasone.py", line 49, in get_next_workouts

  File "trainaspower\trainasone.py", line 76, in get_workout

trainaspower.trainasone.FindWorkoutException: Error finding workout steps: ("'ConcreteStep' object has no attribute 'power_range'",)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

  File "trainaspower\main.py", line 107, in <module>

> File "trainaspower\main.py", line 87, in main

  File "trainaspower\trainasone.py", line 54, in get_next_workouts

trainaspower.trainasone.FindWorkoutException: Error finding next TaO workout: Error finding workout steps: ("'ConcreteStep' object has no attribute 'power_range'",)
2021-07-20 06:00:17.443 | ERROR    | __main__:main:100 - Could not load next Train as One workout. Created taocalendar.html for debugging.
waynedvernon commented 3 years ago

I have had the same issue again this morning

This was the next scheduled repetition session.

any ideas?

gazpachoking commented 3 years ago

Hmm. I'll try to have a look at this. Can you post what one of the problematic workouts looks like on trainasone?

waynedvernon commented 3 years ago

0122C413-0E37-41D8-AC67-20F6B7F5B79F

gazpachoking commented 3 years ago

Hmm. It doesn't put a range for the speed? Do your other runs put a range? My workouts come out like this, with the range in the square brackets ([]). image

gazpachoking commented 3 years ago

Aha, do you have this option turned on? That's a requirement right now. I'll add it to the readme. image

gazpachoking commented 2 years ago

New handling should solve this.