karpathy / ulogme

Automatically collect and visualize usage statistics in Ubuntu/OSX environments.
1.03k stars 194 forks source link

Python 3 support not present. #46

Open vivekpatani opened 8 years ago

vivekpatani commented 8 years ago

File "export_events.py", line 116, in updateEvents() File "exportevents.py", line 53, in updateEvents ts = [int(x[x.find('')+1:x.find('.txt')]) for x in L] File "exportevents.py", line 53, in ts = [int(x[x.find('')+1:x.find('.txt')]) for x in L] ValueError: invalid literal for int() with base 10: ''

For python export_events.py.

I'm running Python3, fixed the issues caused by Python3 compatibility, this seems to be something other than Python 2/3 problem.

I'll update my pull request in order to accomodate all the changes needed for python3, but I cannot seem to work where both Python2 and Python3 coexist.

erm3nda commented 7 years ago

Getting same issue with Python2. Same here, Python3 as main (python) and Python2 as alt. None runs of couse.

hackerkid commented 1 year ago

This issue has nothing to do with Python version.

The issue happens because there is a log file without the date set in filename inside logs directory. In my case it was keyfreq_.txt.

Deleting the file fixed the issue.