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

Error Using MoviePy in Django Project on Linux (Python 3.12, MoviePy 1.0.3) #2205

Open
mostafijur-rahman299 opened this issue Jul 17, 2024 · 1 comment
Labels
bug Issues that report (apparent) bugs.

Comments

@mostafijur-rahman299
Copy link

mostafijur-rahman299 commented Jul 17, 2024

Description:
I'm encountering a SyntaxWarning: invalid escape sequence error while using MoviePy in my Django project. The error details are provided in the screenshot below.

Error Screenshot:
bug

Specifications:

  • Python Version: 3.10
  • MoviePy Version: 1.0.3
  • Platform Name: Linux
  • Platform Version: 22.04

Possible Solution:
Looking for guidance or a patch to resolve this issue.

@mostafijur-rahman299 mostafijur-rahman299 added the bug Issues that report (apparent) bugs. label Jul 17, 2024
@abingham
Copy link

abingham commented Sep 18, 2024

The issue is that \d is not a valid escape sequence in Python. Here are the allowed ones.

The fix is to either use double backslashes -"\\d" - or to use a raw string - r"\d".

It looks like the code has been updated to use raw strings already, so I guess we just need a new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that report (apparent) bugs.
Projects
None yet
Development

No branches or pull requests

2 participants