ydkhatri / OneDrive

OneDrive log .ODL reader
https://swiftforensics.com
MIT License
109 stars 24 forks source link

SyntaxError: invalid syntax #5

Closed vegetableZucchini closed 1 year ago

vegetableZucchini commented 1 year ago

Thanks for your contribution of this tool unfortunately I get the following error when running it.

python3 odl.py -h
  File "odl.py", line 68
    return datetime.datetime(1970, 1, 1) + 
                                          ^
SyntaxError: invalid syntax
Beercow commented 1 year ago

Are you running this on Windows by chance? Try removing the first line and try it again.

!/usr/bin/env python3

Beercow commented 1 year ago

Or you could leave it in there and try python3 -x odl.py -h

ydkhatri commented 1 year ago

What version of python3 are you using? Have you (or some other tool/library) overwritten the default datetime library with something else?

vegetableZucchini commented 1 year ago

Are you running this on Windows by chance? Try removing the first line and try it again. #!/usr/bin/env python3

on macOS

vegetableZucchini commented 1 year ago

What version of python3 are you using? Have you (or some other tool/library) overwritten the default datetime library with something else?

3.8 Thanks for the tip I think this is the case.

ydkhatri commented 1 year ago

Closing for lack of further response.