Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Install instructions? #7

Closed
mepda opened this issue Oct 27, 2018 · 13 comments
Closed

Install instructions? #7

mepda opened this issue Oct 27, 2018 · 13 comments

Comments

@mepda
Copy link

mepda commented Oct 27, 2018

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
Copy link
Owner

mre commented Oct 27, 2018

Oh my. Sorry 'bout that. Fixed the print statements for Python 3 in d7a5ae0. Could you please try again? 😅

@mepda
Copy link
Author

mepda commented Oct 27, 2018

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
Copy link
Owner

mre commented Oct 27, 2018

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

@mepda
Copy link
Author

mepda commented Oct 27, 2018

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

@mre
Copy link
Owner

mre commented Oct 27, 2018

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

@mre
Copy link
Owner

mre commented Oct 27, 2018

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

@mepda
Copy link
Author

mepda commented Oct 27, 2018

High Sierra 10.13.6

@mepda
Copy link
Author

mepda commented Oct 27, 2018

screen shot 2018-10-28 at 1 46 51 am

@mepda
Copy link
Author

mepda commented Oct 27, 2018

tried with both python 2 and python 3

@mre
Copy link
Owner

mre commented Oct 27, 2018

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
Copy link
Author

mepda commented Oct 27, 2018

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

@mre
Copy link
Owner

mre commented Oct 23, 2019

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

@mre mre closed this as completed Oct 23, 2019
@mre
Copy link
Owner

mre commented Nov 1, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants