wakatime / wakadump Goto Github PK
View Code? Open in Web Editor NEWCommand line tool for converting WakaTime data dump files into various formats.
Home Page: https://pypi.python.org/pypi/wakadump
License: BSD 3-Clause "New" or "Revised" License
Command line tool for converting WakaTime data dump files into various formats.
Home Page: https://pypi.python.org/pypi/wakadump
License: BSD 3-Clause "New" or "Revised" License
When I run the following command:
$ wakadump --input Wakatime.json --output csv
I get the following error:
Traceback (most recent call last):
File "/usr/local/bin/wakadump", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/wakadump/cli.py", line 49, in main
formatter.run()
File "/usr/local/lib/python2.7/site-packages/wakadump/formats/csv.py", line 26, in run
self._get_column_names()
File "/usr/local/lib/python2.7/site-packages/wakadump/formats/csv.py", line 51, in _get_column_names
with click.progressbar(self.data['days'],
KeyError: 'days'
Anytime i try to run this is get the above error and only an empty file is create.
Hi! I am trying to export my Wakatime data to keen.io. I just generated and downloaded the export file within the last 10 minutes, and I made sure to run pip install wakadump --upgrade
before I submitted this issue.
Here is the error that is logged in the console:
Traceback (most recent call last):
File "/usr/local/bin/wakadump", line 11, in <module>
sys.exit(main())
File "/Library/Python/2.7/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/Library/Python/2.7/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/Library/Python/2.7/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Python/2.7/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/wakadump/cli.py", line 56, in main
formatter.run()
File "/usr/local/lib/python2.7/site-packages/wakadump/formats/keenio.py", line 71, in run
'seconds': item['total_seconds'],
KeyError: 'total_seconds'
Thanks for the awesome & simple tools! Love Wakatime.
Hi
I installed this tool and trying to convert my json to csv. But since it's a nested JSON. I only get this back in the CSV file. Is this expected?
Date,Total Logged Seconds
09-22-2015,0
09-23-2015,17151
09-24-2015,6016
09-25-2015,9533
09-26-2015,4521
09-27-2015,0
09-28-2015,14747
09-29-2015,25890
09-30-2015,22254
10-01-2015,43
10-02-2015,9113
While installing over Windows, I get following error
$ pip install wakadump
Collecting wakadump
Using cached wakadump-2.0.1.tar.gz
Collecting click==4.0 (from wakadump)
Using cached click-4.0-py2.py3-none-any.whl
Collecting keen==0.3.3 (from wakadump)
Using cached keen-0.3.3.tar.gz
Collecting pytz==2015.4 (from wakadump)
Using cached pytz-2015.4-py2.py3-none-any.whl
Collecting simplejson==3.6.5 (from wakadump)
Using cached simplejson-3.6.5.tar.gz
Collecting unicodecsv==0.9.4 (from wakadump)
Using cached unicodecsv-0.9.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "C:\Users\!USERNAME!\AppData\Local\Temp\pip-build-zqck6wkt\unicodecsv\set up.py", line 5, in <module>
version = __import__('unicodecsv').__version__
File "C:\Users\!USERNAME!\AppData\Local\Temp\pip-build-zqck6wkt\unicodecsv\uni codecsv\__init__.py", line 49
except TypeError, e:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\sakhar\A ppData\Local\Temp\pip-build-zqck6wkt\unicodecsv
I rechecked and I have setup tools installed to latest version and also PIP is upgraded to latest version.
I tried updating everything and also restarted the system to make sure things get reflected but no luck.
wakadump
has been created incompatible (old) Python version and does not support the modern Python version you have installed.
Python 3.x uses syntax except TypeError as e
(new) not except TypeError, e
(old).
wakadump
must be upgraded to support new Python versions.
Stack overflow question link - http://stackoverflow.com/q/33864643/2482430
Can wakadump be upgraded to support latest python?
Getting column names... [------------------------------------] 0%
Traceback (most recent call last):
File "/usr/local/bin/wakadump", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/wakadump/cli.py", line 56, in main
formatter.run()
File "/usr/local/lib/python2.7/dist-packages/wakadump/formats/csv.py", line 28, in run
self._get_column_names()
File "/usr/local/lib/python2.7/dist-packages/wakadump/formats/csv.py", line 68, in _get_column_names
self._find_columns(self.entities, day['entities'])
KeyError: 'entities'
It seems this week the date format in json exports has changed. This breaks keen.io import.
I am already working on making this and will submit a pull request when I finish it.
IotaSpencer/wakadump
If that link doesn't really work then just use this one
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.