What's the problem?
Compile error:
[ README ] module_strings.h
Traceback (most recent call last):
File "../readme2modulestrings.py", line 108, in <module>
seconds = float(split[0]) + float(split[1])
ValueError: could not convert string to float:
could be a problem with the version of python you are running
Quote from: dmilligan on September 10, 2013, 10:48:34 PM
could be a problem with the version of python you are running
I have Python 2.7.1+
What's in the "split" variable? (print it)
My fix :
readme2modulestrings.py
- seconds = float(split[0]) + float(split[1])
- last_change_date = datetime.utcfromtimestamp(seconds).strftime("%Y-%m-%d %H:%M:%S UTC")
Now work ;)
last_change_date = run("LC_TIME=EN hg log . -l 1 --template '{date|hgdate}'")
split = last_change_date.split(" ")
seconds = float(split[0]) + float(split[1])
last_change_date = datetime.utcfromtimestamp(seconds).strftime("%Y-%m-%d %H:%M:%S UTC")
I guess the new module not in the hg repo so you cannot get log info from there so the split is empty.
greg@ubuntu:~/magic-lantern-sensor-cleaning$ hg commit -m "Sensor cleaning module"
nothing changed
:-\
How to add a new module to the bitbucket?
hg commit only commits to your local repo, you then need to push that commit to the remote bitbucket repo with hg push
Yes, but to do hg push you need to do before hg commit. It does not work for new files.
Try hg update first.
also hg add