Skip to content

Error in moviepy import #1

@shane-mason

Description

@shane-mason

I get the following error:

File "/home/wrongdog/FieldStation42/fs42/guide_tk.py", line 1, in <module>
    from tkintervideo import player
File "/home/wrongdog/.local/lib/python3.10/site-packages/tkintervideo/player.py", line 5, in <module>
    import moviepy.editor as mpe

this is due to a recent update by the moviepy folks - and can be fixed by replacing this:

import moviepy.editor as mpe

with this:

try:
    #try to import from version > 2.0
    import moviepy as mpe
except ImportError:
    #fall back to import from version 1.0
   import moviepy.editor as mpe

besides that - it was difficult to get all the dependencies installed since I had to figure them out when stuff broke.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions