-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Segfault for import moviepy.editor, but not for import moviepy #92
Comments
That's going to be a tough one :) "import moviepy" does basically nothing, so it's normal that it doesn't bug. But "import moviepy.editor" does a lot of things that may involve many libraries. The error is not pythonic so I guess it comes from a C-based library or program. On possibility is FFMPEG. Can you just type 'ffmpeg' in a terminal and copy/paste what happens (just to be sure). Also do you have OpenCV or Pygame installed ? (do NOT install them if you don't have them, they are not mandatory, but if they are installed, they might be causing the trouble). |
Here is the ffmpeg output $ ffmpeg Use -h to get full help or, even better, run 'man ffmpeg' I do not have pygame but I do have an old version of opencv installed. I'll check if updating it fixes the issue. Or is there a way to disable it for moviepy? |
Your ffmpeg looks nice. Now I would definitely say that's an OpenCV issue, it already gave me this kind of trouble. I have a recent version of OpenCV and it is going well. Can you try that ? There is no way to disable the OpenCV import in moviepy for the moment (opencv, if detected, is used by default to resize frames in a fast and antialiased way) but I can change that. |
Hi, I fixed the problem with opencv (by deleting the broken version) and now moviepy.editor imports fine. |
Cool, I hope things will go smoothly from there, tell me if you meet other problems. |
It seems that moviepy.editor segfaults with OpenCV3 (which may be the limitation seen by the OP). Any chance OpenCV3 can be supported, or this limitation indicated in the docs? |
I see no trouble with opencv 3.1.0. I'm on Arch Linux, with |
The issue seems to be fixed with opencv 3.1.0 indeed (I suspected opencv3 because importing moviepy would segfault when it was installed (Arch Linux AUR opencv-git) but not when opencv2 was installed (Arch Linux standard repos)). |
@anntzer: Could you open a new issue for this, and report the full error you're seeing? Also, opencv 3.1.0 is in the Arch standard repos, and with it, I have had no issues with |
I was exactly saying that the issue is solved by 3.1.0, so it's not a problem anymore except if you also want to maintain compatibility with 3.0.0. |
Oh, sorry! I completely misread. Thanks for the update! |
Hi,
It's actually as simple as the title says. I made sure that the ffmpeg is the most recent version (downloaded from http://www.ffmpeg.org/download.html), and it is installed in working condition.
Importing moviepy is fine, but import moviepy.editor results in segmentation fault without any other output on the command line.
I made sure numpy, decorator and tqdm are also up to date using pip install --upgrade.
I'm running Ubuntu 14.04.1 LTS and python 2.7.
Is there a way to understand where is the segfault coming from?
$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered: