Giter Club home page Giter Club logo

Comments (5)

xf0e avatar xf0e commented on June 28, 2024

My log file names are:
keyfreq_.txt
keyfreqraw.txt
window_1417327200.txt
keyfreq_1417240800.txt
window_.txt
keyfreq_1417327200.txt
window_1417240800.txt

can the error come frome those files where the names have no timestapm in the names(like windows_.txt)?

I also tried to debug and after executing this code, but without of casting to int
the ts variable stores this values: "['1417240800', '', '', '1417240800']".

L = []
L.extend(glob.glob("logs/keyfreq__.txt"))
L.extend(glob.glob("logs/window__.txt"))
L.extend(glob.glob("logs/notes_*.txt"))

extract all times. all log files of form {type}_{stamp}.txt

ts = [x[x.find('_')+1:x.find('.txt')] for x in L]

from ulogme.

karpathy avatar karpathy commented on June 28, 2024

Hi,

strange that this is happening - you're right there should be timestamps following the underscore. Somehow the code is failing to get the timestamp, or compute it sometimes. I haven't seen this issue so far with anyone before so I'm not sure what this could be. Ideally you'd descend down into the code (the logging code is relatively simply) and try to do those calls in console to try to narrow down what's going on.

Sorry I don't have very useful comments about this.

from ulogme.

xf0e avatar xf0e commented on June 28, 2024

I wasn't able to reproduce the problem again. I tried at least for 12 times to delete the whole statistic, but ulogme was every time able to create files with correct time stamps. don't know why it was not working for the very first time.

from ulogme.

sld avatar sld commented on June 28, 2024

I did have the same error in OS X.
First time I run ./ulogme.sh by using python 3.3.
Then keyfreq_.txt become in logs/.
Then I got the same error described by @xf0e.

Deleting files in logs/ and rerun ./ulogme.sh by using python 2.7.8 fixed the problem.

from ulogme.

dannygoldstein avatar dannygoldstein commented on June 28, 2024

Had a weird experience where keyfreq_.txt kept reappearing in logs/ every couple seconds, causing updateEvents() to fail with

ts = [int(x[x.find('_')+1:x.find('.txt')]) for x in L]
ValueError: invalid literal for int() with base 10:

even though ps -fA | grep ulogme showed no active ./ulogme.sh processes. Turned out there was a zombie bash ulogme.sh from hours before that was putting them there. If anyone keeps running into the invalid literal error, try doing a ps -fA | grep bash and killing old bash processes that may be running ulogme.

from ulogme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.