Open ahallicks opened 8 years ago
Any chance you can post the trace for me? First time I'm seeing this bug crop up. Also, while we're here, what version of the Launcher do you have? I'm on 1.9.25.
Hey @paullewis / @ahallicks - I've just seen the same error happen for me. I've uploaded a copy of my trace file.
Thanks, I'll have a look.
Actually, @deanhume, what version of the Launcher are you using?
I am using 1.9.31 - just downloaded it this morning.
Ok, let me take an update and see what's what.
Awesome - thanks Paul.
@deanhume are you on Windows, too? And which version of python?
It seems like I might have favoured Unix-y style date formatting: http://stackoverflow.com/questions/10807164/python-time-formatting-different-in-windows
Yep - on Windows and running Python 2.7.10. Ah! That's not good....
Please shout if you need any more info!
Can you run this python for me?
from datetime import date
today = date.today()
print today.strftime('%b')
print today.strftime('%e')
print today.strftime('%r')
I need to know which (or all?) of those don't work on Windows. In any case I can wrap it in an exception, mind, but I'd like to figure it out all the same.
Apologies for the slow response! Okay, here is the output of the file:
Feb
Traceback (most recent call last):
File "c:\datetest.py", line 4, in <module>
print today.strftime('%e')
ValueError: Invalid format string
Both these fail with an "Invalid format string":
print today.strftime('%e')
print today.strftime('%r')
However, this one passes:
print today.strftime('%b')
@paullewis Here is the documentation from microsoft in regards to what string formaters it supports: https://msdn.microsoft.com/en-us/library/fe06s4ak(v=vs.140).aspx#Anchor_3
And of course python has a list of portable string directives here: https://docs.python.org/3/library/time.html#time.strftime
In this case,
'%b %e, %r'
could be ported to something like
'%d $b, %I:%M:%S %p'
which would give the result of
17 Jun, 12:00:00 AM
I wouldn't mind taking a crack at porting these over, but some things don't have an obvious portable replacement, for instance:
"time": {{ action.date.strftime('%s000') }},
%s gives you the number of seconds since the Epoch, which doesn't seem to have an equivalent, and I'm not the most familiar with the code base so this may be a hard requirement. What does the extra 000 do here? Could it be replaced with something else?
Hi Paul,
When I upload a trace it doesn't show me any results, just the same 'Upload a trace for this action' message. If I then go back to the project I get the following:
Ouch! I am currently running on Windows 10 Chrome 46.0.2490.86 m
Thanks!