Would like to see pyTrainer added to portage. Active development. The ebuild posted on the site is 1 version behind, so a newer ebuild is needed. pyTrainer is a sports training log. It aims to add GPS device importing and a a robust plugin system. More information here: http://pytrainer.e-oss.net/index.php Reproducible: Always Steps to Reproduce: N/A
Created attachment 152857 [details] Ebuild for Pytrainer 1.5 Updated ebuild that works on ~amd64.
Created attachment 156987 [details, diff] Changes made recommended by the Sunrise team
Created attachment 156995 [details, diff] Changes applied as recommended by the Sunrise team Seems epiphany downloaded the previous ebuild as binary. This is a proper patch to the actual 1.5 ebuild.
Created attachment 157519 [details, diff] Whitespace fixes. Last of the whitespace fixes recommended by the sunrise team.
First, thanks for putting this together. I am hoping to get my Garmin Edge 305 working with pytrainer. Unfortunately, I ran into this when attempting to run it from a console: Traceback (most recent call last): File "/usr/bin/pytrainer", line 38, in <module> from pytrainer.main import pyTrainer File "/usr/lib64/python2.5/site-packages/pytrainer/main.py", line 33, in <module> from recordgraph import RecordGraph File "/usr/lib64/python2.5/site-packages/pytrainer/recordgraph.py", line 19, in <module> from gui.drawArea import DrawArea File "/usr/lib64/python2.5/site-packages/pytrainer/gui/drawArea.py", line 23, in <module> from matplotlib.backends.backend_gtk import FigureCanvasGTK, NavigationToolbar File "/usr/lib64/python2.5/site-packages/matplotlib/backends/backend_gtk.py", line 21, in <module> from matplotlib.backends.backend_gdk import RendererGDK, FigureCanvasGDK File "/usr/lib64/python2.5/site-packages/matplotlib/backends/backend_gdk.py", line 29, in <module> from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array ImportError: No module named _backend_gdk Unfortunately, I don't know enough about python to take a stab at this. If there's an update to the ebuild, patch, or elsewhere. Let me know.
It looks like the problem you're getting I was getting a while ago with pygtk and matplotlib. What version of those packages do you have? pytrainer works for me with dev-python/pygtk-2.12.1-r2 and dev-python/matplotlib-0.98.1. We may have to bump some of those requirements though.
Fixed my previous problem by adding "gtk" to my /etc/portage/package.use for matplotlib. Now when attempting to run pytrainer, I get the following error: Traceback (most recent call last): File "/usr/bin/pytrainer", line 38, in <module> from pytrainer.main import pyTrainer File "/usr/lib64/python2.5/site-packages/pytrainer/main.py", line 38, in <module> from extensions.googlemaps import Googlemaps File "/usr/lib64/python2.5/site-packages/pytrainer/extensions/googlemaps.py", line 19, in <module> import gtkmozembed ImportError: No module named gtkmozembed Not sure if this is related to my not having a libgtkembedmoz.so anywhere. I have mozilla-firefox and xulrunner installed from sources. FWIW, I am running ~amd64 as I'm the owner of a Core 2 Quad. I think if I can figure this last one out, I'll be good to go.
I should add that I'm a KDE-3.5.9 user as well, so I may be missing some gtk related stuff somewhere.
Hmm, libgtkmozembed is a part of xulrunner. Do you have /usr/lib64/xulrunner/libgtkembedmoz.so? I have it marked as a part of xulrunner: s1n@citadel perl6 $ equery belongs /usr/lib64/xulrunner/libgtkembedmoz.so [ Searching for file(s) /usr/lib64/xulrunner/libgtkembedmoz.so in *... ] net-libs/xulrunner-1.8.1.15 (/usr/lib64/xulrunner/libgtkembedmoz.so -> libgtkembedmoz.so.1) Perhaps I should add xulrunner if pytrainer requires libgtkmozembed. I'll take a look at that later.
Me wants this too... :) New version is out...!!!
Created attachment 198083 [details] ebuild for 1.6.0.8 - added dependencies for gtkmozembed and soappy
Wanted to note that I was able to use the latest ebuild here for 1.6.0.8 and use it for the latest version of pytrainer, 1.7.0, with no revisions. The program installed without a hitch, but I have yet to hook my Garmin Edge 305 to see if it works.
Created attachment 228057 [details] ebuild for 1.7.2 - new dependancy to garmintools - gpsbabel > 1.3.5 is unsupported
> Created an attachment (id=228057) [details] > ebuild for 1.7.2 pytrainer.py failed with: ImportError: No module named lxml Fixed with adding a dependency to dev-python/lxml After this pytrainer.py failed with: from matplotlib.backends._backend_gdk import pixbuf_get_pixels_array ImportError: No module named _backend_gdk Fixed with requiring dev-python/matplotlib to be built with USE=gtk enabled. pytrainer-1.7.2 fails to start, if ~/.pytrainer/conf.xml isn't found. Workaround is to run version 1.7.1 once, and have conf.xml created for you. Thanks for the ebuild.
Created attachment 257348 [details] ebuild for 1.8.0 - optionnal gdal USE Flag is for elevation correction - prefer using garmintools rather than gpsbabel to import data
Created attachment 292395 [details] New version 1.9.0 Updated ebuild for 1.9.0
Wanted to note that pytrainer depends on gtkmozembed-python which was recently scheduled for removal from the tree.