scrapper / postrunner

Application to manage FIT files such as those produced by Garmin fitness devices
GNU General Public License v2.0
62 stars 14 forks source link

failed import/dump activity from powerfun #30

Open FranklinBao opened 2 years ago

FranklinBao commented 2 years ago

I tried to dump a fit file from powerfun, and here is the error shown in the terminal.

[034:000:004:enum   ] event_type: stop
ERROR: Activity must have at least one device_info section
ERROR: Activity must have at least one device_info section
/opt/homebrew/lib/ruby/gems/3.0.0/gems/fit4ruby-3.9.0/lib/fit4ruby/Log.rb:70:in `fatal'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/fit4ruby-3.9.0/lib/fit4ruby/Activity.rb:118:in `check'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/fit4ruby-3.9.0/lib/fit4ruby/FitFileEntity.rb:79:in `check'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/fit4ruby-3.9.0/lib/fit4ruby/FitFile.rb:77:in `read'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/fit4ruby-3.9.0/lib/fit4ruby.rb:18:in `read'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/postrunner-1.0.5/lib/postrunner/Main.rb:556:in `read_fit_file'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/postrunner-1.0.5/lib/postrunner/Main.rb:489:in `process_file'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/postrunner-1.0.5/lib/postrunner/Main.rb:474:in `block in process_files'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/postrunner-1.0.5/lib/postrunner/Main.rb:468:in `each'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/postrunner-1.0.5/lib/postrunner/Main.rb:468:in `process_files'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/postrunner-1.0.5/lib/postrunner/Main.rb:431:in `block in process_files_or_activities'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/postrunner-1.0.5/lib/postrunner/Main.rb:427:in `each'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/postrunner-1.0.5/lib/postrunner/Main.rb:427:in `process_files_or_activities'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/postrunner-1.0.5/lib/postrunner/Main.rb:343:in `execute_command'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/postrunner-1.0.5/lib/postrunner/Main.rb:79:in `main'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/postrunner-1.0.5/lib/postrunner.rb:24:in `<module:PostRunner>'
/opt/homebrew/lib/ruby/gems/3.0.0/gems/postrunner-1.0.5/lib/postrunner.rb:22:in `<top (required)>'
<internal:/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `require'
<internal:/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:160:in `rescue in require'
<internal:/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:149:in `require'
/opt/homebrew/opt/ruby/bin/postrunner:4:in `<main>'

*******************************************************************************
You have triggered a bug in PostRunner 1.0.5!

Here is my fit file. 2021-12-18-171105-1103882.fit.zip

Environment

M1MAX-64GB MacOS 12.2.1 ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [arm64-darwin21] gem 3.0.0

FranklinBao commented 2 years ago

gem list is as follow in case you need.

截屏2022-02-24 13 58 23
FranklinBao commented 2 years ago

also zwift