Skip to content
David García Granda edited this page Jul 10, 2013 · 4 revisions

Installation

Is there a package available for my XYZ GNU/Linux distribution?

We don't provide binaries but source code, either via GitHub or tarball file. Nevertheless some people do take care about building packages for some popular GNU/Linux distributions:

Does pytrainer run on other operating systems like MS Windows or Mac OS?

We don't have any evidence yet, but it might be. Please check following tutorials and come back with your output:

  • Windows: py2exe
  • Mac OS: Python on Mac

How do I install pytrainer to a different location?

  • You will need download the tarball file or git source
  • Extract the source files and change to the pytrainer directory (the one with setup.py in it)
  • Install with python setup.py install --prefix /location/to/install/pytrainer

How do I uninstall pytrainer?

Unfortunately there is no uninstall method available yet, so you have to remove files (and directories) manually. Location may change depending on the GNU/Linux distribution you use, but on Fedora 19, here you are the following files (after inspecting setup.py file):

  • Directories:

    Packages/modules -> /usr/lib/python<python_version>/site-packages/pytrainer

    Data files -> /usr/share/pytrainer

    User configuration -> $HOME/.pytrainer

  • Files:

    Executable script -> /usr/bin/pytrainer

    Desktop entry -> /usr/share/applications/pytrainer.desktop

    Pixmap file -> /usr/share/pixmaps/pytrainer.png

    Egg file -> /usr/lib/python<python_version>/site-packages/pytrainer-<pytrainer_version>_dev-py<python_version>.egg-info

Problems

It doesn't work, what should I do?

If you encounter a problem with pytrainer, please let us know so we can fix and improve things. To help us please start pytrainer in debug mode (-d) from a terminal window and provide:

  1. the log file ~/.pytrainer/log.out
  2. if you are having a problem with importing please specify which plugin you are using the tmp file if created ~/.pytrainer/tmp/*
  3. the exact errors and any other output in terminal window
  4. if any errors are present in the GUI, please include a screenshot

You can either send this information to the developers mail list (pytrainer-devel@lists.sourceforge.net), or create a ticket

External dependencies

It is already available on most popular GNU/Linux distributions (debian, fedora) but you can always download source code and install yourself.

  • How can I get working GPSBabel version?

  • Why do I need Firefox installed?

Actually you don't need it. What is necessary to embed GMaps or OSM in pytrainer is XULRunner

  • Which database does pytrainer use?

Currently both MySQL and SQLite are supported, but latter one is preferred.

Connectivity

  • Pytrainer can't connect to USB port

  • I retrieve nothing from device attached to USB port

Importing activities

  • Can pytrainer retrieve activities from my device X?

Please check our supported devices entry.

  • How can I import activities from newest Garmin Forerunner devices?

Those devices store activities in FIT files and when plugged to your computer, they are available under following path (Garmin Forerunner 210):

/run/media/<username>/GARMIN/Garmin/Activities

In pytrainer: File -> Import. Then select Import from file tab and click on the Add button to launch file selection window. It is possible to select multiple files.

  • Only Manual appears as trigger method when importing activities from FIT files, why?

It seems that FIT files format does not use "TriggerMethod" element in "Lap" type, so value is set to "Manual".

Clone this wiki locally