Re: [Pytrainer-devel] Pytrainer 1.12.1 has been released!

2018-04-06 Thread Arto Jantunen
Richard MQ  writes:

> Arto Jantunen wrote:
>
>> I'm not sure what might be going on here, but you aren't running the
>> application version on that branch. That would report 1.12.1-final as
>> version, not 1.11.0-dev like you have in this log. Perhaps something
>> from a previous install remains somewhere and confuses things?
>> 
>> In any case, to test the code all you need to do is check out the branch
>> and run the application in place as "./bin/pytrainer".
>> 
> Hi again Arto
>
> yes I noticed the version mismatch. The problem seems to be that from
> the github page you linked to there are 2 means of getting the code:
>  1. git clone https://github.com/viiru-/pytrainer.git
> leads to
>> INFO:root:pytrainer version 1.11.0-dev
> (and the application Help >- About also reports 1.11.0-dev)
>
> But
> 2. downloading a zip works as expected, reporting 1.12.1 and a slightly
> different appearance, once libwebkitgtk3-devel was installed.
>
> Is this a github bug or an admin issue with the page?

Mostly a UI issue between github and git. If you git clone that url the
default branch (master) is checked out, and you need to do "git checkout
gtk3" to get to the branch that needed testing. I don't think there is a
very good solution to that (git url's can't easily specify the branch to
check out).

-- 
Arto Jantunen

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Pytrainer-devel mailing list
Pytrainer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytrainer-devel


Re: [Pytrainer-devel] Pytrainer 1.12.1 has been released!

2018-04-02 Thread Richard (MQ)

On 02/04/18 09:59, Richard (MQ) wrote:

On 02/04/18 07:09, Arto Jantunen wrote:

Hi list,

Pytrainer version 1.12.1 has been released! This version contains a
number of bug fixes, mostly for bugs in the rewrite of the database
layer to SQLAlchemy. Thanks a lot to everyone who reported bugs, tested
fixes and sent PRs! Also the FIT import library has been updated to the
latest version, making it possible to import files from previously
unsupported devices/device versions.

Also the upcoming port to GTK version 3 is progressing well, and the
branch could use some more testing. If you have the time, testing and
bug reports would be greatly appreciated. See here for the branch:
https://github.com/viiru-/pytrainer/tree/gtk3

Please see CHANGES
(https://github.com/pytrainer/pytrainer/blob/v1.12.1/CHANGES) or the git
log itself for more information.

You can download the release from Github:

https://github.com/pytrainer/pytrainer/releases/tag/v1.12.1



-- 


Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



___
Pytrainer-devel mailing list
Pytrainer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytrainer-devel


Thanks again Arto,

1.12.1 seems to work well for me with my Garmin Forerunner 15.

I've also tried the GTK3 version - doing
$ sudo python setup.py install
and
$ mv ~/.pytrainer ~/.pytrainer.1.12.1
to delete the old profile

pytrainer -i

running pytrainer from egg installation
data_path: 
/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/share/pytrainer/ 

gettext_path: 
/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/share/locale 

site_path: 
/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/lib/python2.7/site-packages 


INFO:root:pytrainer version 1.11.0-dev
ERROR:root:Configuration '~/.pytrainer/conf.xml' file does not exist
INFO:root:No profile found. Creating default one
ERROR:root:Failed when retrieving Max Heartrate value: invalid literal 
for int() with base 10: ''

INFO:root:Setting Max Heartrate to default value: 190
ERROR:root:Failed when retrieving Min Heartrate value: invalid literal 
for int() with base 10: ''

INFO:root:Setting Min Heartrate to default value: 65
INFO:root:Checking if some upgrade action is needed...
INFO:root:Initializing data. Data state is: 'FRESH'.
INFO:root:Initializing new database.
INFO:root:Creating database tables
INFO:root:Creating athletestats table with default values
INFO:root:Creating records table with default values
INFO:root:Creating record_equipment table with default values
INFO:root:Creating laps table with default values
INFO:root:Creating waypoints table with default values
INFO:root:Creating sports table with default values
INFO:root:Creating equipment table with default values
INFO:root:Initializing version metadata to version: '14'.

(pytrainer:1483): libglade-WARNING **: could not find glade file 
'/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/share/pytrainer/glade/pytrainer.glade' 


Traceback (most recent call last):
  File "/usr/bin/pytrainer", line 4, in 
    __import__('pkg_resources').run_script('pytrainer==1.11.0.dev0', 
'pytrainer')
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", 
line 735, in run_script

    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", 
line 1659, in run_script

    exec(script_code, namespace, namespace)
  File 
"/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/scripts/pytrainer", 
line 94, in 
  File 
"/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/scripts/pytrainer", 
line 91, in main
  File "build/bdist.linux-x86_64/egg/pytrainer/main.py", line 101, in 
__init__
  File "build/bdist.linux-x86_64/egg/pytrainer/gui/windowmain.py", 
line 74, in __init__
  File "build/bdist.linux-x86_64/egg/pytrainer/gui/SimpleGladeApp.py", 
line 38, in __init__

RuntimeError: could not create GladeXML object


Am I doing something wrong here?

Cheers
Richard

PS I initially tried it without scratching ~/.pytrainer, import failed 
but maybe this is not meant to be supported:



$> pytrainer -i
running pytrainer from egg installation
data_path: 
/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/share/pytrainer/ 

gettext_path: 
/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/share/locale 

site_path: 
/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/lib/python2.7/site-packages 


INFO:root:pytrainer version 1.11.0-dev
ERROR:root:Failed when retrieving Max Heartrate value: invalid literal 
for int() with base 10: ''

INFO:root:Setting Max Heartrate to default value: 190
ERROR:root:Failed when 

Re: [Pytrainer-devel] Pytrainer 1.12.1 has been released!

2018-04-02 Thread Richard (MQ)

On 02/04/18 07:09, Arto Jantunen wrote:

Hi list,

Pytrainer version 1.12.1 has been released! This version contains a
number of bug fixes, mostly for bugs in the rewrite of the database
layer to SQLAlchemy. Thanks a lot to everyone who reported bugs, tested
fixes and sent PRs! Also the FIT import library has been updated to the
latest version, making it possible to import files from previously
unsupported devices/device versions.

Also the upcoming port to GTK version 3 is progressing well, and the
branch could use some more testing. If you have the time, testing and
bug reports would be greatly appreciated. See here for the branch:
https://github.com/viiru-/pytrainer/tree/gtk3

Please see CHANGES
(https://github.com/pytrainer/pytrainer/blob/v1.12.1/CHANGES) or the git
log itself for more information.

You can download the release from Github:

https://github.com/pytrainer/pytrainer/releases/tag/v1.12.1



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



___
Pytrainer-devel mailing list
Pytrainer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytrainer-devel


Thanks again Arto,

1.12.1 seems to work well for me with my Garmin Forerunner 15.

I've also tried the GTK3 version - doing
$ sudo python setup.py install
and
$ mv ~/.pytrainer ~/.pytrainer.1.12.1
to delete the old profile

pytrainer -i

running pytrainer from egg installation
data_path: 
/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/share/pytrainer/
gettext_path: 
/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/share/locale
site_path: 
/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/lib/python2.7/site-packages
INFO:root:pytrainer version 1.11.0-dev
ERROR:root:Configuration '~/.pytrainer/conf.xml' file does not exist
INFO:root:No profile found. Creating default one
ERROR:root:Failed when retrieving Max Heartrate value: invalid literal for 
int() with base 10: ''
INFO:root:Setting Max Heartrate to default value: 190
ERROR:root:Failed when retrieving Min Heartrate value: invalid literal for 
int() with base 10: ''
INFO:root:Setting Min Heartrate to default value: 65
INFO:root:Checking if some upgrade action is needed...
INFO:root:Initializing data. Data state is: 'FRESH'.
INFO:root:Initializing new database.
INFO:root:Creating database tables
INFO:root:Creating athletestats table with default values
INFO:root:Creating records table with default values
INFO:root:Creating record_equipment table with default values
INFO:root:Creating laps table with default values
INFO:root:Creating waypoints table with default values
INFO:root:Creating sports table with default values
INFO:root:Creating equipment table with default values
INFO:root:Initializing version metadata to version: '14'.

(pytrainer:1483): libglade-WARNING **: could not find glade file 
'/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/share/pytrainer/glade/pytrainer.glade'
Traceback (most recent call last):
  File "/usr/bin/pytrainer", line 4, in 
__import__('pkg_resources').run_script('pytrainer==1.11.0.dev0', 
'pytrainer')
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 735, 
in run_script
self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1659, 
in run_script
exec(script_code, namespace, namespace)
  File 
"/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/scripts/pytrainer",
 line 94, in 

  File "/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/scripts/pytrainer", line 91, in main

  File "build/bdist.linux-x86_64/egg/pytrainer/main.py", line 101, in __init__

  File "build/bdist.linux-x86_64/egg/pytrainer/gui/windowmain.py", line 74, in 
__init__
  File "build/bdist.linux-x86_64/egg/pytrainer/gui/SimpleGladeApp.py", line 38, 
in __init__
RuntimeError: could not create GladeXML object


Am I doing something wrong here?

Cheers
Richard

PS I initially tried it without scratching ~/.pytrainer, import failed 
but maybe this is not meant to be supported:



$> pytrainer -i
running pytrainer from egg installation
data_path: 
/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/share/pytrainer/
gettext_path: 
/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/share/locale
site_path: 
/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO/lib/python2.7/site-packages
INFO:root:pytrainer version 1.11.0-dev
ERROR:root:Failed when retrieving Max Heartrate value: invalid literal for 
int() with base 10: ''
INFO:root:Setting Max Heartrate to default value: 190
ERROR:root:Failed when retrieving Min Heartrate value: invalid literal for 
int()