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 <module>
    __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 <module>   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() with base 10: ''
INFO:root:Setting Min Heartrate to default value: 65
INFO:root:Checking if some upgrade action is needed...
Traceback (most recent call last):
  File "/usr/bin/pytrainer", line 4, in <module>
    __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 <module>   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 83, in __init__   File "build/bdist.linux-x86_64/egg/pytrainer/upgrade/data.py", line 31, in initialize_data   File "build/bdist.linux-x86_64/egg/pytrainer/upgrade/data.py", line 63, in update_to_current   File "build/bdist.linux-x86_64/egg/pytrainer/upgrade/data.py", line 79, in get_state
pytrainer.upgrade.data.DataInitializationException


PS

Looking more carefully at the output of the setup script
~> sudo python setup.py install
> ...
> creating pytrainer.egg-info
> ...
copying build/lib/pytrainer/extension.py -> 
build/bdist.linux-x86_64/egg/pytrainer
byte-compiling build/bdist.linux-x86_64/egg/pytrainer/weekgraph.py to 
weekgraph.pyc
> ...
byte-compiling build/bdist.linux-x86_64/egg/pytrainer/extension.py to 
extension.pyc
installing package data to build/bdist.linux-x86_64/egg
running install_data
creating build/bdist.linux-x86_64/egg/share
creating build/bdist.linux-x86_64/egg/share/pytrainer
creating build/bdist.linux-x86_64/egg/share/pytrainer/glade
copying glade/pytrainer.glade -> 
build/bdist.linux-x86_64/egg/share/pytrainer/glade/
...
copying pytrainer.desktop -> build/bdist.linux-x86_64/egg/share/applications/
creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-2.7
copying and adjusting bin/pytrainer -> build/scripts-2.7
changing mode of build/scripts-2.7/pytrainer from 644 to 755
creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-2.7/pytrainer -> 
build/bdist.linux-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/pytrainer to 755
copying pytrainer.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pytrainer.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pytrainer.egg-info/dependency_links.txt -> 
build/bdist.linux-x86_64/egg/EGG-INFO
copying pytrainer.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying pytrainer.egg-info/top_level.txt -> 
build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/pytrainer-1.11.0.dev0-py2.7.egg' and adding 
'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing pytrainer-1.11.0.dev0-py2.7.egg
Copying pytrainer-1.11.0.dev0-py2.7.egg to /usr/lib/python2.7/site-packages
Removing pytrainer 1.12.1 from easy-install.pth file
Adding pytrainer 1.11.0.dev0 to easy-install.pth file
Installing pytrainer script to /usr/bin

Installed /usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg
Processing dependencies for pytrainer==1.11.0.dev0
Searching for lxml==3.6.1
...
funcsigs 1.0.2 is already the active version in easy-install.pth

Using /usr/lib/python2.7/site-packages/funcsigs-1.0.2-py2.7.egg
Finished processing dependencies for pytrainer==1.11.0.dev0

~> 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

BUT

~> ls /usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO
ls: cannot access 
'/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg/EGG-INFO': 
Not a directory

~> file /usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg
/usr/lib/python2.7/site-packages/pytrainer-1.11.0.dev0-py2.7.egg: Zip archive 
data, at least v2.0 to extract Zip archive data, at least v2.0 to extract

It seems the egg archive wasn't extracted during the setup. Looking at the script output for 1.12.1, it is very similar but includes lines to extract the egg archive that are missing above.

> ...
> Processing pytrainer-1.12.1-py2.7.egg
> creating /usr/lib/python2.7/site-packages/pytrainer-1.12.1-py2.7.egg
> Extracting pytrainer-1.12.1-py2.7.egg to /usr/lib/python2.7/site-packages
> ...

Hope this helps?

R.
--
Richard (MQ)
Linux user # 439271

------------------------------------------------------------------------------
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

Reply via email to