Le 06/09/2011 22:24, David García Granda a écrit :
> Hi Pierre, Vincent,
>
>
>> I still have some unexplained crash with latest SVN version on my Gentoo
>> so I continue to use pytrainer-1.8.0 on ubuntu... :-(
>> I still try to investigate where the problem could come from but without
>> success till now.
>> Nevertheless, using a fresh new database with only one record imported
>> from .gpx I see this ouput in the terminal :
>>
>> pierre@gandalf ~ $ pytrainer
>> running pytrainer from egg installation
>> data_path: /usr/share/pytrainer/
>> gettext_path: /usr/share/locale
>> site_path: /usr/lib/python2.6/site-packages
>> Traceback (most recent call last):
>> File "/usr/lib/python2.6/site-packages/pytrainer/gui/windowmain.py",
>> line 1904, in on_calendar_selected
>> self.parent.refreshGraphView(self.selected_view)
>> File "/usr/lib/python2.6/site-packages/pytrainer/main.py", line 225,
>> in refreshGraphView
>> self.refreshRecordGraphView("info")
>> File "/usr/lib/python2.6/site-packages/pytrainer/main.py", line 301,
>> in refreshRecordGraphView
>> self.windowmain.actualize_recordview(activity)
>> File "/usr/lib/python2.6/site-packages/pytrainer/gui/windowmain.py",
>> line 454, in actualize_recordview
>> max_speed = lap['max_speed'] * 3.6
>> TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
>> Traceback (most recent call last):
>> File "/usr/lib/python2.6/site-packages/pytrainer/gui/popupmenu.py",
>> line 47, in on_showclassic_activate
>> self.parent.parent.refreshRecordGraphView("info",
>> id_record=self.id_record)
>> File "/usr/lib/python2.6/site-packages/pytrainer/main.py", line 301,
>> in refreshRecordGraphView
>> self.windowmain.actualize_recordview(activity)
>> File "/usr/lib/python2.6/site-packages/pytrainer/gui/windowmain.py",
>> line 454, in actualize_recordview
>> max_speed = lap['max_speed'] * 3.6
>> TypeError: unsupported operand type(s) for *: 'NoneType' and 'float'
>> pierre@gandalf ~ $
> Strange... Can you please check what is alreay stored in max_speed
> field in laps table?
sqlite> select * from records;
12.69|13.720265027|4.22|Jogging|3|356.2003|9.32063647491|2011-08-24
18:20:14+0200|810|2011-08-24T16:20:14Z|yyyyyyjjjjjj|6.26|356.6371|4901|156.0||4901|2011-08-24|3|213.0
So, max_speed is 13.72
> If I am not wrong, you are using MySQL, right?
No, no, Sqlite
>> Moreover, if I expand laps in main view, they are not correctly sorted :
>> 1,10,11,12, ..., 2,21,22, ...,3 even if I click on the column header
> This one I am unfortunately aware of... 0:-) BTW I have another one:
> in week tab, there is no bar in graph when day of the week has some
> characters like tilde (mié -> wed and sáb -> sat). I guess this is
> related to encoding issue but need some investigation.
>
Last commit corrected it. Thanks!
>> PS:
>> David I will send you French localization files soon
> No worries, I am going on vacation for a couple of weeks on friday ;)
Good Holidays! :)
> I have submitted one coming from Vincent to help out as he
> highlighted. I wrote his name and email as source for "last
> translator" field but mine show up in credits. Sorry for that.
Not a problem at all. For some reasons I did not follow pytrainer
development so much these last month so it's a finally more a good news
to see that someone else took the relay on localization! And I don't
mind if my name is written or not in credits, I did not doing it for that...
In the latest svn version I get there were some strings missing in
translation file, that's why I offered to update it.
I will share with Vicent my .po file like that there will be more eyes
on it! :)
Regards,
Pierre
------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
Pytrainer-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytrainer-devel