Comments (13)
Ah, the README file don't mention that. I will fix that! The fitparse module is not made by me -- @dtcooper is the author of the nice python-fitparse library. You can find this at https://github.com/dtcooper/python-fitparse.
from fit-to-tcx.
@dtcooper is the author of the nice python-fitparse library.
Gee, thanks. :D
from fit-to-tcx.
Hi, I added the fitparse library to my site-packages as you describe in the Readme, but I still get the following:
Traceback (most recent call last):
File "/home/george/FIT-to-TCX-master/fittotcx.py", line 31, in
from fitparse import Activity, FitParseError
ImportError: No module named fitparse
Apologies if this is me being stupid and missing something.
from fit-to-tcx.
Hi. What linux distribution are you using? Can you give me the exact commands that you ran, and also output of these commands?:
lsb_release -a
uname -a
python --version
from fit-to-tcx.
I'm using Linux Mint 14 Nadia KDE 64 bit.
Here are the commands I ran and their output:
george@George-Linux-Mint-14 ~ $ git clone
https://github.com/dtcooper/python-fitparse
Cloning into 'python-fitparse'...
remote: Counting objects: 440, done.
remote: Compressing objects: 100% (239/239), done.
remote: Total 440 (delta 199), reused 429 (delta 194)
Receiving objects: 100% (440/440), 2.36 MiB | 78 KiB/s, done.
Resolving deltas: 100% (199/199), done.
george@George-Linux-Mint-14 ~ $ sudo cp -R python-fitparse/fitparse
/usr/local/lib/python2.7/site-packages
[sudo] password for george:
george@George-Linux-Mint-14 ~ $ python
/home/george/FIT-to-TCX-master/fittotcx.py
/home/george/.config/garmin-extractor/3855606145/activities/2013-04-10_22-01-22-80-195928.fit
Traceback (most recent call last):
File "/home/george/FIT-to-TCX-master/fittotcx.py", line 31, in
from fitparse import Activity, FitParseError
ImportError: No module named fitparse
Here's the output of the commands you asked for.
george@George-Linux-Mint-14 ~ $ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 14 Nadia
Release: 14
Codename: nadia
george@George-Linux-Mint-14 ~ $ uname -a
Linux George-Linux-Mint-14 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9
19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
george@George-Linux-Mint-14 ~ $ python --version
Python 2.7.3
George Scratcherd
[email protected]
On 29/04/13 06:53, Gustav Tiger wrote:
Hi. What linux distribution are you using? Can you give me the exact
commands that you ran, and also output of these commands?:lsb_release -a
uname -a
python --version—
Reply to this email directly or view it on GitHub
#1 (comment).
from fit-to-tcx.
Sorry about that. It seems replying by e-mail caused all the line breaks to be removed making it very difficult to read. Here it is with the line breaks restored:
I'm using Linux Mint 14 Nadia KDE 64 bit.
Here are the commands I ran and their output:
george@George-Linux-Mint-14 ~ $ git clone https://github.com/dtcooper/python-fitparse
Cloning into 'python-fitparse'...
remote: Counting objects: 440, done.
remote: Compressing objects: 100% (239/239), done.
remote: Total 440 (delta 199), reused 429 (delta 194)
Receiving objects: 100% (440/440), 2.36 MiB | 78 KiB/s, done.
Resolving deltas: 100% (199/199), done.
george@George-Linux-Mint-14 ~ $ sudo cp -R python-fitparse/fitparse /usr/local/lib/python2.7/site-packages
[sudo] password for george:
george@George-Linux-Mint-14 ~ $ python /home/george/FIT-to-TCX-master/fittotcx.py /home/george/.config/garmin-extractor/3855606145/activities/2013-04-10_22-01-22-80-195928.fit
Traceback (most recent call last):
File "/home/george/FIT-to-TCX-master/fittotcx.py", line 31, in
from fitparse import Activity, FitParseError
ImportError: No module named fitparse
Here's the output of the commands you asked for.
george@George-Linux-Mint-14 ~ $ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 14 Nadia
Release: 14
Codename: nadia
george@George-Linux-Mint-14 ~ $ uname -a
Linux George-Linux-Mint-14 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
george@George-Linux-Mint-14 ~ $ python --version
Python 2.7.3
from fit-to-tcx.
That all seems quite right to me. How about python -c "import sys; print sys.path"
?
from fit-to-tcx.
george@George-Linux-Mint-14 ~ $ python -c "import sys; print sys.path"
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gtk-2.0']
from fit-to-tcx.
Yeah, that seems to explain it. Can't find the /usr/local/lib/python2.7/site-packages
folder there. If you move fitparse to the dist-packages folder it will probably work. I thought the site-packages folder was standardized. Apparantly not. I don't even have it on my installation now.
So, instead. At least on ubuntu/debian deriatives we should probably just use /usr/local/lib/python2.7/dist-packages
. Does that work?
from fit-to-tcx.
Yes that got it working. Thanks for your help.
from fit-to-tcx.
I'm using Linux Mint 14 Nadia KDE 64 bit.
Here are the commands I ran and their output:
george@George-Linux-Mint-14 ~ $ git clone
https://github.com/dtcooper/python-fitparse
Cloning into 'python-fitparse'...
remote: Counting objects: 440, done.
remote: Compressing objects: 100% (239/239), done.
remote: Total 440 (delta 199), reused 429 (delta 194)
Receiving objects: 100% (440/440), 2.36 MiB | 78 KiB/s, done.
Resolving deltas: 100% (199/199), done.
george@George-Linux-Mint-14 ~ $ sudo cp -R python-fitparse/fitparse
/usr/local/lib/python2.7/site-packages
[sudo] password for george:
george@George-Linux-Mint-14 ~ $ python
/home/george/FIT-to-TCX-master/fittotcx.py
/home/george/.config/garmin-extractor/3855606145/activities/2013-04-10_22-01-22-80-195928.fit
Traceback (most recent call last):
File "/home/george/FIT-to-TCX-master/fittotcx.py", line 31, in
from fitparse import Activity, FitParseError
ImportError: No module named fitparse
Here's the output of the commands you asked for.
george@George-Linux-Mint-14 ~ $ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 14 Nadia
Release: 14
Codename: nadia
george@George-Linux-Mint-14 ~ $ uname -a
Linux George-Linux-Mint-14 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9
19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
george@George-Linux-Mint-14 ~ $ python --version
Python 2.7.3
George Scratcherd
[email protected]
On 29/04/13 06:53, Gustav Tiger wrote:
Hi. What linux distribution are you using? Can you give me the exact
commands that you ran, and also output of these commands?:lsb_release -a
uname -a
python --version—
Reply to this email directly or view it on GitHub
#1 (comment).
from fit-to-tcx.
Hm, wonder where that email came from. Weird.
from fit-to-tcx.
Sorry about that. It seems something strange happened with my email
program and it copied several old sent e-mails from earlier this year
into my outbox and sent them again. Please disregard.
George Scratcherd
[email protected]
On 10/09/13 07:57, Gustav Tiger wrote:
Hm, wonder where that email came from. Weird.
—
Reply to this email directly or view it on GitHub
#1 (comment).
from fit-to-tcx.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fit-to-tcx.