Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206979 - pyTrainer ebuild request
Summary: pyTrainer ebuild request
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://pytrainer.e-oss.net/download.php
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-22 04:42 UTC by Jason Switzer
Modified: 2012-07-04 09:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild for Pytrainer 1.5 (pytrainer-1.5.ebuild,687 bytes, text/plain)
2008-05-11 17:06 UTC, Jason Switzer
Details
Changes made recommended by the Sunrise team (sunrise.patch,61 bytes, patch)
2008-06-15 21:11 UTC, Jason Switzer
Details | Diff
Changes applied as recommended by the Sunrise team (sunrise-r1.patch,1006 bytes, patch)
2008-06-15 21:28 UTC, Jason Switzer
Details | Diff
Whitespace fixes. (sunrise-r2.patch,1.05 KB, patch)
2008-06-18 23:20 UTC, Jason Switzer
Details | Diff
ebuild for 1.6.0.8 (pytrainer-1.6.0.8.ebuild,828 bytes, text/plain)
2009-07-15 17:42 UTC, Gunnar Thielebein
Details
ebuild for 1.7.2 (pytrainer-1.7.2.ebuild,844 bytes, text/plain)
2010-04-16 18:29 UTC, Pierre Gaigé
Details
ebuild for 1.8.0 (pytrainer-1.8.0.ebuild,936 bytes, text/plain)
2010-12-16 19:06 UTC, Pierre Gaigé
Details
New version 1.9.0 (pytrainer-1.9.0.ebuild,1.20 KB, text/plain)
2011-11-13 13:36 UTC, Pierre Gaigé
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Switzer 2008-01-22 04:42:58 UTC
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
Comment 1 Jason Switzer 2008-05-11 17:06:52 UTC
Created attachment 152857 [details]
Ebuild for Pytrainer 1.5

Updated ebuild that works on ~amd64.
Comment 2 Jason Switzer 2008-06-15 21:11:56 UTC
Created attachment 156987 [details, diff]
Changes made recommended by the Sunrise team
Comment 3 Jason Switzer 2008-06-15 21:28:29 UTC
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.
Comment 4 Jason Switzer 2008-06-18 23:20:48 UTC
Created attachment 157519 [details, diff]
Whitespace fixes.

Last of the whitespace fixes recommended by the sunrise team.
Comment 5 Gregg Casillo 2008-07-29 22:03:53 UTC
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.
Comment 6 Jason Switzer 2008-07-29 23:19:17 UTC
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.
Comment 7 Gregg Casillo 2008-07-30 02:09:15 UTC
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.
Comment 8 Gregg Casillo 2008-07-30 02:10:20 UTC
I should add that I'm a KDE-3.5.9 user as well, so I may be missing some gtk related stuff somewhere.
Comment 9 Jason Switzer 2008-07-30 02:54:58 UTC
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.
Comment 10 Paulo J. Matos 2008-10-09 15:31:51 UTC
Me wants this too... :) New version is out...!!!
Comment 11 Gunnar Thielebein 2009-07-15 17:42:15 UTC
Created attachment 198083 [details]
ebuild for 1.6.0.8

 - added dependencies for gtkmozembed and soappy
Comment 12 Gregg Casillo 2010-01-05 00:05:41 UTC
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.
Comment 13 Pierre Gaigé 2010-04-16 18:29:00 UTC
Created attachment 228057 [details]
ebuild for 1.7.2

- new dependancy to garmintools
- gpsbabel > 1.3.5 is unsupported
Comment 14 riku 2010-05-24 13:39:36 UTC
> 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.
Comment 15 Pierre Gaigé 2010-12-16 19:06:35 UTC
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
Comment 16 Pierre Gaigé 2011-11-13 13:36:49 UTC
Created attachment 292395 [details]
New version 1.9.0

Updated ebuild for 1.9.0
Comment 17 Andrey 2012-01-14 17:47:24 UTC
Wanted to note that
pytrainer depends on gtkmozembed-python
which was recently scheduled for removal from the tree.