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

Segmentation fault (core dumped) #1048

Closed
CtrlAlt-Delete opened this issue Dec 11, 2019 · 5 comments
Closed

Segmentation fault (core dumped) #1048

CtrlAlt-Delete opened this issue Dec 11, 2019 · 5 comments

Comments

@CtrlAlt-Delete
Copy link

I am having some trouble running
from moviepy.editor import VideoFileClip, concatenate
where I get the error
python3: Relink /home/jonathan/.local/lib/python3.6/site-packages/PIL/.libs/./liblzma-6cd627ed.so.5.2.4' with /lib/x86_64-linux-gnu/librt.so.1' for IFUNC symbol clock_gettime Segmentation fault (core dumped)

What could be the issue here? I am somewhat new to this, I only have basic knowledge from one course in uni.

Thanks in advance

@makelove
Copy link

makelove commented Jan 13, 2020

same problem
when I am building docker with ubuntu:18.04
history:

    1  apt-get update
    2  apt-get -y install locales tzdata
    3  apt-get install python3-pip
    4  python3
    5  pip
    6  pip3
    7  vi requirements.txt
    8  apt install nano
    9  nano requirements.txt
   10  pip3 install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com --no-cache-dir -r requirements.txt
   11  apt-get -y install imagemagick   ffmpeg
   12  ipython
root@43ffc12d6d7d:/# ipython
Python 3.6.9 (default, Nov  7 2019, 10:44:02)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.11.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from moviepy.editor import TextClip
/usr/bin/python3: Relink `/usr/local/lib/python3.6/dist-packages/PIL/.libs/./liblzma-6cd627ed.so.5.2.4' with `/lib/x86_64-linux-gnu/librt.so.1' for IFUNC symbol `clock_gettime'
Segmentation fault (core dumped)
root@43ffc12d6d7d:/#

@makelove
Copy link

docker run --name movie19 -it -v pwd:/test ubuntu:19.04

is ok
didn't show that error

@makelove
Copy link

makelove commented Jan 15, 2020

error is caused by opencv

Fixed
pip3 uninstall opencv-contrib-python
then
pip3 install opencv-contrib-python-headless==4.1.2.30

welcome to use my docker
https://hub.docker.com/r/play4fun/moviepy_chinese_font

@CtrlAlt-Delete
Copy link
Author

I tried that but had no luck. What I did was reset Ubuntu (I use the terminal on Windows), and then got all necessary packages and it worked. A pretty ugly solution but effective

@kurkurzz
Copy link

I am using moviepy in AWS Lambda and got this similar error. What is the solution?

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