Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error converting to tcx file from MPower Echelon 2 console #7

Closed
tmurk42 opened this issue Jun 10, 2018 · 8 comments
Closed

Error converting to tcx file from MPower Echelon 2 console #7

tmurk42 opened this issue Jun 10, 2018 · 8 comments

Comments

@tmurk42
Copy link

tmurk42 commented Jun 10, 2018

I'm getting the following error when converting a csv file from MPower Echelon 2 console:

MPowerTCX

  • There was an error: Lengths of the first three arguments (x,y,w) must be equal

File "C:\Users\Tom\AppData\Local\MPowerTCX\exe.win-amd64-2.7\scipy\interpolate_fitpack_impl.py", line 457, in splrep
raise TypeError('Lengths of the first three arguments (x,y,w) must '
TypeError: Lengths of the first three arguments (x,y,w) must be equal

I've used the converter many times before successfully.

@j33433
Copy link
Owner

j33433 commented Jun 10, 2018

Can you attach the CSV file?

@tmurk42
Copy link
Author

tmurk42 commented Jun 10, 2018

After posting this, I got it to work by saving the tcx file to the same USB stick that the csv file was on. I deleted the files after importing into Strava. Thanks for responding so fast. If I run into the same issue again, I will upload the csv file.

@tmurk42 tmurk42 closed this as completed Jun 10, 2018
@tmurk42 tmurk42 reopened this Jun 10, 2018
@greybirds2
Copy link

I have this issue intermittently. Using version 2.02, the error was the same as reported by tmurk42:

_MPowerTCX

There was an error: Lengths of the first three arguments (x,y,w) must be equal

File "C:\Users{username}\AppData\Local\MPowerTCX\exe.win-amd64-2.7\scipy\interpolate_fitpack_impl.py", line 457, in splrep
raise TypeError('Lengths of the first three arguments (x,y,w) must '
TypeError: Lengths of the first three arguments (x,y,w) must be equal_

This error always occurred on line #457. Deleting the offending line (sometimes the next line as well) would allow the converted file to be saved.

I got the same error on line 457 again on the attached file this morning. I noticed a newer version was available so I installed version 2.04. Now I get this error:

_MPowerTCX

  • There was an error: Lengths of the first three arguments (x,y,w) must be equal

File "C:\Users\User\Anaconda2\lib\site-packages\scipy\interpolate\fitpack.py", line 289, in splrep
File "C:\Users\User\Anaconda2\lib\site-packages\scipy\interpolate_fitpack_impl.py", line 458, in splrep
TypeError: Lengths of the first three arguments (x,y,w) must be equal_

I tried saving to the same USB like mturk42 did with no change. Deleting lines 289 and 458 from the attached allowed the conversion to complete, but that is not the greatest solution. I tried converting several other files and they work without problems. I can try to locate some of the files that failed previously if that helps.

Thanks for publishing this utility, it has really helped my fitness program!!!!
MPower33.zip

@j33433
Copy link
Owner

j33433 commented Jun 21, 2018

@j33433
Copy link
Owner

j33433 commented Jun 21, 2018

By the way, what is your use case? What tools do you use Strava, Golden Cheetah, etc?

@tmurk42
Copy link
Author

tmurk42 commented Jun 21, 2018 via email

@greybirds2
Copy link

So far, so good with 2.05 - I tested with several files that had previously thrown errors and all converted successfully

I use Golden Cheetah primarily, but also light use of Strava for certain club rides. I have also imported .tcx files generated with Mpower TCX to the imPower Platform with no trouble. imPower and GC don't pull in the calories - Strava does - but that is not a concern.

Thanks so much for your fast response and for this utility!

@j33433
Copy link
Owner

j33433 commented Jun 22, 2018

Glad to hear it works well.

@j33433 j33433 closed this as completed Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants