Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Syntax Error #161

Closed
GlennMaffoof opened this issue Apr 25, 2015 · 3 comments
Closed

Invalid Syntax Error #161

GlennMaffoof opened this issue Apr 25, 2015 · 3 comments

Comments

@GlennMaffoof
Copy link

I'm trying to run a script, that worked perfectly on my Macbook, on a CentOS VPS and I'm seeing the following error:

Traceback (most recent call last):
  File "edit.py", line 3, in <module>
    from moviepy.editor import *
  File "/usr/lib/python2.6/site-packages/moviepy/editor.py", line 22, in <module>
    from .video.io.VideoFileClip import VideoFileClip
  File "/usr/lib/python2.6/site-packages/moviepy/video/io/VideoFileClip.py", line 3, in <module>
    from moviepy.video.VideoClip import VideoClip
  File "/usr/lib/python2.6/site-packages/moviepy/video/VideoClip.py", line 22, in <module>
    from .io.gif_writers import (write_gif,
  File "/usr/lib/python2.6/site-packages/moviepy/video/io/gif_writers.py", line 5, in <module>
    from moviepy.decorators import (requires_duration,use_clip_fps_by_default)
  File "/usr/lib/python2.6/site-packages/moviepy/decorators.py", line 88
    for (k,v) in kw.items()}
      ^
SyntaxError: invalid syntax
@Zulko
Copy link
Owner

Zulko commented Apr 25, 2015

Thanks for the report, that's scary. I guess it's because you are using an old python version which doesn't understand this syntax. I may fix this in the future, but the faster would be that you try installing python 2.7 or python 3. Tell me if that works.

@GlennMaffoof
Copy link
Author

Seems to work fine with 2.7. Thanks!

@ajaytechie07
Copy link

How have you upgrade from 2.6 to 2.7, could you please tell.

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

No branches or pull requests

3 participants