Python Index Page 1
Moviepy: example script with subtitles
In this short tutorial, we are to explain how to use moviepy to add subtitles to a video. We use CompositeVideoClip for adding the subtitles in the center position of the video. With this script you can add subtitles as a batch process to multiple videos.
Python Index Page 1
Mac OSX: OSError: MoviePy Error missing magick font
If you are trying to render font using moviepy you will need to install ghost script with brew install Ghostscript to have all the required fonts by moviepy. Check here for full details.
Python Index Page 1
Pygame blank screen with python3 and osx
Here is the solution when using pygame with OSX and you get a blank screen or not loading. You will need to uninstall and then install pygame from source code. In this article, we explain step by step how to fix pygame not loading in mac.
Python Index Page 1
OSX Solution: No package 'gobject-introspection-1.0' found
The error: PKG_CONFIG_PATH environment variable No package 'glib-2.0' found, could be easy solved when using brew by settings the PKG_CONFIG_PATH to the following value: export...
Python Index Page 1
python3 http server command line
In this short tutorial we explain how to start a simple http server from the command line, very useful to share files across the network. Just execute python -m http.server 8000
Python Index Page 1
OSX: No package glib-2.0 Found - PKG_CONFIG Fix
The error: PKG_CONFIG_PATH environment variable No package 'glib-2.0' found, could be easy solved when using brew by settings the PKG_CONFIG_PATH to the following value: export...
Python Index Page 1
Fix: AttributeError - Token Has No Attribute 'objects' [Django REST Framework]
Fix "AttributeError: type object 'Token' has no attribute 'objects'" in Django REST Framework. Add rest_framework.authtoken to INSTALLED_APPS.
Python Index Page 1
Youtube api: download all videos from channel
In this tutorial, we are going to explain how to use YouTube API to fetch all videos on a channel.
Python Index Page 1
Raspberry Pi Python: ZipImportError zlib Fix
Install the package zlib1g-dev using the command: sudo apt-get install zlib1g-dev to fix the error zipimport.ZipImportError: while installing python 3.7 from sources
Python Index Page 1
SOLUTION: ValueError: bad marshal data (unknown type code)
If while doing a python setup.py install you got the error