mre / timelapse

🎬 Native macOS app for recording timelapse videos of your desktop.
https://endler.dev/2020/timelapse/
Apache License 2.0
214 stars 18 forks source link

Install instructions? #7

Closed mepda closed 5 years ago

mepda commented 6 years ago

I tried running this as a Python 3 and Python 2 program and got problems with both. Here's the error for python3:


  File "timelapse.py", line 8, in <module>
    from encoder import Encoder  # Creates timelapse video
  File "/Users/hector/Desktop/practice/63-hacktoberfest/01-timelapse/timelapse/encoder.py", line 42
    print "\n\nabout to execute:\n%s\n\n" % ' '.join(command)
                                        ^
SyntaxError: invalid syntax```

And here's the error message for python2:
```Traceback (most recent call last):
  File "timelapse.py", line 33, in <module>
    class Timelapse(NSObject):
  File "timelapse.py", line 103, in Timelapse
    @objc.python_method
AttributeError: 'module' object has no attribute 'python_method'```
mre commented 6 years ago

Oh my. Sorry 'bout that. Fixed the print statements for Python 3 in https://github.com/mre/timelapse/commit/d7a5ae0950352940afb2ab851b3cc6ff4f17f7e6. Could you please try again? 😅

mepda commented 6 years ago

Okay, I compiled it, but when I run python recorder.pyc I'm getting RuntimeError: Bad magic number in .pyc file How should I proceed?

mre commented 6 years ago

Did you see the usage instructions in the README.md?

mepda commented 6 years ago

Yeah, I installed the dependencies using pip, then ran the .py file, but didn't see any icon pop up.

mre commented 6 years ago

Because the pyc files are object code files not meant to be executed directly. 😉

mre commented 6 years ago

Hum... that's strange. Any output? Which macOS version are you using?

mepda commented 6 years ago

High Sierra 10.13.6

mepda commented 6 years ago
screen shot 2018-10-28 at 1 46 51 am
mepda commented 6 years ago

tried with both python 2 and python 3

mre commented 6 years ago

Thanks for the feedback. Looks like the project isn't really Python 3 compatible yet. Especially the exception handling has to be adjusted. Will do that.

mepda commented 6 years ago

👍 Let me know if theres anything else I can help with

mre commented 5 years ago

Created a new ticket for that in #21. Closing this. Thanks for your feedback @mepda. 👍

mre commented 5 years ago

Quick update: we got support for Python 3.7 thanks to #21. Github Actions pipeline is here: https://github.com/mre/timelapse/blob/master/.github/workflows/pythonapp.yml