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

Can not load the fonts #36

Closed
Netherdrake opened this issue May 9, 2014 · 4 comments
Closed

Can not load the fonts #36

Netherdrake opened this issue May 9, 2014 · 4 comments

Comments

@Netherdrake
Copy link

Hi,

I can't get the TextClip to work, since any font I tried errors out. I'm on MacOS 10.9.2.

~ % python
Python 2.7.6 (default, Apr  9 2014, 11:48:52) 
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from moviepy.editor import *
>>> txt = TextClip("V. Zulkoninov - Ukulele Sonata", font='Arial-regular')

MoviePy: WARNING !
   The following command returned an error:
convert: unable to read font `Arial-regular' @ warning/annotate.c/RenderType/871.
convert: unable to read font `Arial-regular' @ error/annotate.c/RenderFreetype/1126.
convert: Postscript delegate failed `/var/tmp/magick-687910PjuTb0L0M2g': No such file or directory @ error/ps.c/ReadPSImage/840.
convert: unable to read font `Arial-regular' @ warning/annotate.c/RenderType/871.
convert: unable to read font `Arial-regular' @ error/annotate.c/RenderFreetype/1126.
convert: Postscript delegate failed `/var/tmp/magick-687918Bk0Mx9P3V8w': No such file or directory @ error/ps.c/ReadPSImage/840.
convert: no images defined `PNG32:/var/folders/lf/myf7bjr57_jg7_5c4014bh640000gn/T/tmpGNVPDe.png' @ error/convert.c/ConvertImageCommand/3150.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/site-packages/moviepy/video/VideoClip.py", line 1078, in __init__
    subprocess_call(cmd, verbose=False )
  File "/usr/local/lib/python2.7/site-packages/moviepy/tools.py", line 34, in subprocess_call
    raise IOError
IOError
>>> 
@Netherdrake
Copy link
Author

I dug into the source code, and found out that it relies on imagemagick for font list.
My font list seems to be empty:

~/D/p/moviepy % convert -list font
~/D/p/moviepy % 

Hmm.

@Netherdrake
Copy link
Author

Ok, figured it out:
brew install ghostscript

Is a dependency on OSX.
Now everything works fine.

@qqibrow
Copy link

qqibrow commented Nov 18, 2014

Exactly what I met today. Thank you very much! I really hope there is a vote functionality on Github so that I can up vote your answer!

@subcontrabass
Copy link

Thanks Netherdrake! Worked great.

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