ethanzh / gpx-csv-converter Goto Github PK
View Code? Open in Web Editor NEWA handy tool for converting GPX files exported from Strava, WatShout, etc into easily readable CSV files
License: MIT License
A handy tool for converting GPX files exported from Strava, WatShout, etc into easily readable CSV files
License: MIT License
I can't get this to work out of the box, if I install it using pip install gpx_csv_converter and try to run a file:
Traceback (most recent call last):
File "conv.py", line 1, in <module>
import gpx_csv_converter
File "/usr/local/lib/python3.4/dist-packages/gpx_csv_converter/__init__.py", line 18
raise TypeError(f"The file {input_file_name} does not exist.")
^
SyntaxError: invalid syntax
I ended up working my way around it by taking the code out, but I don't know why I'm getting this error, assuming this should work without issues.
I tried to convert a file from OSRM.org
This resulted in the following error:
File "/...gpx_csv_converter/__init__.py", line 48, in __init__ base_time = iso_to_epoch(times[0]) IndexError: list index out of range
Hello,
In the line 86 of init.py, the file is open with 'wb', which returns the error "TypeError: a bytes-like object is required, not 'str'".
Currently the module expects a string containing GPX data as input. This is obviously not feasible once the GPX files become sufficiently large.
I plan to have the module be able to accept a directory (where it will convert all GPX files in the directory) or an individual file (where it will convert that one file).
I'm leaning towards making these command-line arguments.
In python 3, one should
open(output_file_name, "w", encoding="utf-8", newline="")
at the very end of the script, instead of
open(output_file_name, "wb", encoding="utf-8", newline="")
Sorry I don't know how to contribute, I'm new to github
Thanks anyway for this script, it saved me time I don't want to spend learning XML ^^
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.