Giter VIP home page Giter VIP logo

Comments (12)

paullewis avatar paullewis commented on July 19, 2024

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.

from big-rig.

deanhume avatar deanhume commented on July 19, 2024

Hey @paullewis / @ahallicks - I've just seen the same error happen for me. I've uploaded a copy of my trace file.

TimelineRawData-20160203T114228.zip

from big-rig.

paullewis avatar paullewis commented on July 19, 2024

Thanks, I'll have a look.

from big-rig.

paullewis avatar paullewis commented on July 19, 2024

Actually, @deanhume, what version of the Launcher are you using?

from big-rig.

deanhume avatar deanhume commented on July 19, 2024

I am using 1.9.31 - just downloaded it this morning.

from big-rig.

paullewis avatar paullewis commented on July 19, 2024

Ok, let me take an update and see what's what.

from big-rig.

deanhume avatar deanhume commented on July 19, 2024

Awesome - thanks Paul.

from big-rig.

paullewis avatar paullewis commented on July 19, 2024

@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

from big-rig.

deanhume avatar deanhume commented on July 19, 2024

Yep - on Windows and running Python 2.7.10. Ah! That's not good....

Please shout if you need any more info!

from big-rig.

paullewis avatar paullewis commented on July 19, 2024

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.

from big-rig.

deanhume avatar deanhume commented on July 19, 2024

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')

from big-rig.

DiscoStarslayer avatar DiscoStarslayer commented on July 19, 2024

@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?

from big-rig.

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.