problema installazione pytrainer

5 risposte [Ultimo messaggio]
Ritratto di MarcoGion
MarcoGion
(Junior)
Offline
Junior
Iscritto: 11/02/2012
Messaggi: 16

Un saluto a tutti,
il problema è che non riesco ad installare pytrainer. Con l'installazione 1-click mi dice che non riesce a soddisfare una dipendenza, installando scaricando il programma non fuziona cmq.
Qualcuno ha esperienze? Oppure conosce qualche programma alternativo che funzioni bene su opensuse? In pratica il programma lo usavo su kubuntu per scaricarmi i dati del percorso e frequenza cardiaca dei giri in bici dal garmin; mi indicava percorso fatto e dati..
Grazie.

OpenSUSE 12.1 32bit KDE

Ritratto di aksaf
aksaf
(Guru)
Offline
Guru
Iscritto: 08/03/2011
Messaggi: 957

Se la prossima volta cercherai di dare qualche info in più (che versione di openSUSE usi, da dove hai preso l'installazione one-clic, che errore ti viene riportato) sarà più facile e *rapido* cercare di darti una mano.
Comunque suppongo che tu abbia installato da qui http://software.opensuse.org/search?q=pytrainer&baseproject=openSUSE%3A12.1&lang=it&include_home=true&exclude_debug=true in effetti manca un pacchetto che non si riesce a trovare in tutto il buildservice di openSUSE.
Però se si scarica il file da qui http://sourceforge.net/projects/pytrainer/files/pytrainer%201.9.1/pytrainer-1.9.1.tar.gz/download funziona. Dopo che hai scompattato il file tar.gz dentro il file INSTALL ci sono tutte le dipendenze che devi verificare di avere installato, cercale in YaST | gestione pacchetti facendo attenzione a due cose:
1. le corrispondenze con i nomi nel file e in openSUSE possono non essere esatte: nella scheda Ricerca spunta "Descrizione" così da estendere la ricerca
2. verifica di avere attivato il repo devel:languages:python (dovrebbe averlo fatto automaticamente quando hai usato l'installazione 1 clic)

prima di installare il programma come spiegato in INSTALL, fai una verifica: sempre dalla cartella in cui hai scompattato vai nella cartella bin e lanci da terminale (shift-f4 se usi kde):

python pytrainer

se è tutto a posto dopo alcuni avvisi ti comparirà la finestra del programma, altrimenti probabilmente ti mancheranno alcune librerie da installare, se non le trovi chiedi ma prima posta il risultato che il programma ti stamperà nella console.

Ritratto di MarcoGion
MarcoGion
(Junior)
Offline
Junior
Iscritto: 11/02/2012
Messaggi: 16

ah, si scusa.
E' la 12.1 a 32 bit.
Si l'ho installato da "http://software.opensuse.org". Anche perchè pensavo fosse quello più azzeccato.
Ora provo ad installarlo come m hai indicato.

Facendolo partire dalla cartella /bin dove è stato scaricato mi dice:

marco@linux-bluw:~/Scaricati/pytrainer-1.9.1/bin> python pytrainer
running pytrainer from source path
data_path: /home/marco/Scaricati/pytrainer-1.9.1/
gettext_path: /home/marco/Scaricati/pytrainer-1.9.1/locale
site_path: /home/marco/Scaricati/pytrainer-1.9.1
Traceback (most recent call last):
  File "pytrainer", line 96, in <module>
    from pytrainer.main import pyTrainer
  File "/home/marco/Scaricati/pytrainer-1.9.1/pytrainer/main.py", line 48, in <module>
    from gui.windowmain import Main
  File "/home/marco/Scaricati/pytrainer-1.9.1/pytrainer/gui/windowmain.py", line 42, in <module>
    from pytrainer.recordgraph import RecordGraph
  File "/home/marco/Scaricati/pytrainer-1.9.1/pytrainer/recordgraph.py", line 20, in <module>
    from gui.drawArea import DrawArea
  File "/home/marco/Scaricati/pytrainer-1.9.1/pytrainer/gui/drawArea.py", line 22, in <module>
    from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvasGTK
  File "/usr/lib/python2.7/site-packages/matplotlib/backends/backend_gtkagg.py", line 14, in <module>
    from matplotlib.backends._gtkagg import agg_to_gtk_drawable
ImportError: could not import gobject (could not find _PyGObject_API object)

e provando ad installare:

linux-bluw:/home/marco/Scaricati/pytrainer-1.9.1 # python setup.py install
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/pytrainer
copying pytrainer/save.py -> build/lib/pytrainer
copying pytrainer/plugins.py -> build/lib/pytrainer
copying pytrainer/recordgraph.py -> build/lib/pytrainer
copying pytrainer/platform.py -> build/lib/pytrainer
copying pytrainer/extension.py -> build/lib/pytrainer
copying pytrainer/activitypool.py -> build/lib/pytrainer
copying pytrainer/profile.py -> build/lib/pytrainer
copying pytrainer/importdata.py -> build/lib/pytrainer
copying pytrainer/__init__.py -> build/lib/pytrainer
copying pytrainer/monthgraph.py -> build/lib/pytrainer
copying pytrainer/heartrategraph.py -> build/lib/pytrainer
copying pytrainer/equipment.py -> build/lib/pytrainer
copying pytrainer/stats.py -> build/lib/pytrainer
copying pytrainer/sport.py -> build/lib/pytrainer
copying pytrainer/timegraph.py -> build/lib/pytrainer
copying pytrainer/totalgraph.py -> build/lib/pytrainer
copying pytrainer/athlete.py -> build/lib/pytrainer
copying pytrainer/record.py -> build/lib/pytrainer
copying pytrainer/yeargraph.py -> build/lib/pytrainer
copying pytrainer/waypoint.py -> build/lib/pytrainer
copying pytrainer/daygraph.py -> build/lib/pytrainer
copying pytrainer/environment.py -> build/lib/pytrainer
copying pytrainer/weekgraph.py -> build/lib/pytrainer
copying pytrainer/main.py -> build/lib/pytrainer
creating build/lib/pytrainer/gui
copying pytrainer/gui/dialogs.py -> build/lib/pytrainer/gui
copying pytrainer/gui/windowmain.py -> build/lib/pytrainer/gui
copying pytrainer/gui/windowimportdata.py -> build/lib/pytrainer/gui
copying pytrainer/gui/drawArea.py -> build/lib/pytrainer/gui
copying pytrainer/gui/filechooser.py -> build/lib/pytrainer/gui
copying pytrainer/gui/windowrecord.py -> build/lib/pytrainer/gui
copying pytrainer/gui/__init__.py -> build/lib/pytrainer/gui
copying pytrainer/gui/windowprofile.py -> build/lib/pytrainer/gui
copying pytrainer/gui/aboutdialog.py -> build/lib/pytrainer/gui
copying pytrainer/gui/equipment.py -> build/lib/pytrainer/gui
copying pytrainer/gui/dialogselecttrack.py -> build/lib/pytrainer/gui
copying pytrainer/gui/popupmenu.py -> build/lib/pytrainer/gui
copying pytrainer/gui/warning.py -> build/lib/pytrainer/gui
copying pytrainer/gui/drawGraph.py -> build/lib/pytrainer/gui
copying pytrainer/gui/color.py -> build/lib/pytrainer/gui
copying pytrainer/gui/SimpleGladeApp.py -> build/lib/pytrainer/gui
copying pytrainer/gui/windowextensions.py -> build/lib/pytrainer/gui
copying pytrainer/gui/windowcalendar.py -> build/lib/pytrainer/gui
copying pytrainer/gui/windowplugins.py -> build/lib/pytrainer/gui
creating build/lib/pytrainer/extensions
copying pytrainer/extensions/__init__.py -> build/lib/pytrainer/extensions
copying pytrainer/extensions/mapviewer.py -> build/lib/pytrainer/extensions
copying pytrainer/extensions/googlemaps.py -> build/lib/pytrainer/extensions
copying pytrainer/extensions/waypointeditor.py -> build/lib/pytrainer/extensions
copying pytrainer/extensions/osm.py -> build/lib/pytrainer/extensions
creating build/lib/pytrainer/lib
copying pytrainer/lib/listview.py -> build/lib/pytrainer/lib
copying pytrainer/lib/gpx.py -> build/lib/pytrainer/lib
copying pytrainer/lib/graphdata.py -> build/lib/pytrainer/lib
copying pytrainer/lib/xmlUtils.py -> build/lib/pytrainer/lib
copying pytrainer/lib/srtmdownload.py -> build/lib/pytrainer/lib
copying pytrainer/lib/mysqlUtils.py -> build/lib/pytrainer/lib
copying pytrainer/lib/__init__.py -> build/lib/pytrainer/lib
copying pytrainer/lib/webUtils.py -> build/lib/pytrainer/lib
copying pytrainer/lib/gtrnctr2gpx.py -> build/lib/pytrainer/lib
copying pytrainer/lib/srtmtiff.py -> build/lib/pytrainer/lib
copying pytrainer/lib/ddbb.py -> build/lib/pytrainer/lib
copying pytrainer/lib/unitsconversor.py -> build/lib/pytrainer/lib
copying pytrainer/lib/srtmlayer.py -> build/lib/pytrainer/lib
copying pytrainer/lib/activity.py -> build/lib/pytrainer/lib
copying pytrainer/lib/test_gpx.py -> build/lib/pytrainer/lib
copying pytrainer/lib/date.py -> build/lib/pytrainer/lib
copying pytrainer/lib/color.py -> build/lib/pytrainer/lib
copying pytrainer/lib/singleton.py -> build/lib/pytrainer/lib
copying pytrainer/lib/uc.py -> build/lib/pytrainer/lib
copying pytrainer/lib/fileUtils.py -> build/lib/pytrainer/lib
copying pytrainer/lib/logs.py -> build/lib/pytrainer/lib
copying pytrainer/lib/sqliteUtils.py -> build/lib/pytrainer/lib
copying pytrainer/lib/xmlValidation.py -> build/lib/pytrainer/lib
copying pytrainer/lib/points.py -> build/lib/pytrainer/lib
creating build/lib/pytrainer/upgrade
copying pytrainer/upgrade/data.py -> build/lib/pytrainer/upgrade
copying pytrainer/upgrade/__init__.py -> build/lib/pytrainer/upgrade
copying pytrainer/upgrade/context.py -> build/lib/pytrainer/upgrade
copying pytrainer/upgrade/migratedb.py -> build/lib/pytrainer/upgrade
copying pytrainer/upgrade/migrate.cfg -> build/lib/pytrainer/upgrade
creating build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/006_default_upgrade.sql -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/001_sqlite_upgrade.sql -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/008_sqlite_upgrade.sql -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/004_default_upgrade.sql -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/009_sqlite_upgrade.sql -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/005_sqlite_upgrade.sql -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/005_mysql_upgrade.sql -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/010_default_upgrade.sql -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/002_mysql_upgrade.sql -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/008_mysql_upgrade.sql -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/009_mysql_upgrade.sql -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/003_default_upgrade.sql -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/002_sqlite_upgrade.sql -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/012_default_upgrade.sql -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/001_mysql_upgrade.sql -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/011_populate_lap_details.py -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/013_remove_db_version.py -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/__init__.py -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/007_populate_record_duration.py -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/014_clean_sport_data.py -> build/lib/pytrainer/upgrade/versions
copying pytrainer/upgrade/versions/version014.py -> build/lib/pytrainer/upgrade/versions
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
running install_lib
running install_scripts
copying build/scripts-2.7/pytrainer -> /usr/local/bin
changing mode of /usr/local/bin/pytrainer to 755
running install_data
running install_egg_info
Removing /usr/local/lib/python2.7/site-packages/pytrainer-1.9.1-py2.7.egg-info
Writing /usr/local/lib/python2.7/site-packages/pytrainer-1.9.1-py2.7.egg-info

Quando mi accingo a lanciarlo compare per un po' l'icona rimbalzante e la casellina nel gestore dei processi ma non esce nulla e scompare dopo alcuni secondi.

OpenSUSE 12.1 32bit KDE

Ritratto di MarcoGion
MarcoGion
(Junior)
Offline
Junior
Iscritto: 11/02/2012
Messaggi: 16

Eventualmente ci sarebbero altri programmi che fanno la stessa cosa?

OpenSUSE 12.1 32bit KDE

Ritratto di mauriziod
mauriziod
(Guru)
Offline
Guru
Iscritto: 01/06/2009
Messaggi: 1761

Prova (mi dicono che è simile) sporttacks

Qui come installarlo anche se è una lista Ubunto.

SO: Linux desktop Sistema: OpenSUSE Leap 15.1 (64bit) KDEE 5.12
SO: Linux desktop Sistema: OpenSUSE Tumbleweed (64bit) KDE 5
Miao

Ritratto di MarcoGion
MarcoGion
(Junior)
Offline
Junior
Iscritto: 11/02/2012
Messaggi: 16

Grazie, ora lo provo!
Ah, però è a pagamento e lo si usa emulando win.
Ora ho tirato giù e proverò Turtle sport e MyTourbook. Appena li riuscirò a testare vi dico, magari la cosa può interessare anche altri nel forum.

OpenSUSE 12.1 32bit KDE