Naereen / uLogMe

:bar_chart: :chart_with_upwards_trend: Automatically collect and visualize usage statistics on Ubuntu, with :musical_keyboard: key frequencies and :computer: window titles →
https://Naereen.GitHub.io/uLogMe/
MIT License
67 stars 14 forks source link

Server and export_events.py fail due to missing files on initial run #16

Closed nealmcb closed 7 years ago

nealmcb commented 7 years ago
$ python export_events.py
 [Errno 2] No such file or directory: '../logs/notes_1506949200.txt'
 Traceback (most recent call last):
   File "export_events.py", line 170, in <module>
     updateEvents()
   File "export_events.py", line 154, in updateEvents
     with open(fwrite, "w") as f:
 FileNotFoundError: [Errno 2] No such file or directory: '../render/json/events_1506949200.json'

Workaround:

 touch ../logs/notes_1506949200.txt
 mkdir ../render/json
Naereen commented 7 years ago

I never had an issue like this, I will look into it in more details and fix it.

Naereen commented 7 years ago

Thanks!

nealmcb commented 7 years ago

You're amazing @Naereen :smile: Thanks for undertaking the evolution and support of this cool tool, and for being so responsive and helpful!

Naereen commented 7 years ago

I just realized that my last fix broke the export of new events, because I was checking too much for file already existing. Fixed in 62cc1c9