Monthly Archives: October 2014

Oh noes! Kivy dependency installation has killed my graphics

If you are in the habit of blindly installing packages onto your personal machine while following installation instructions for some new shiny program, and that current shiny program is Kivy (1.9) and your version of xorg is a bit out of date, you may find a black screen the next time you boot.

This is due to the following kivy dependencies which have upgraded your xorg dependencies and broken xorg:


When you try and start xorg, you will get an error similar to:

No such file or directory: /usr/bin/x


To fix, upgrade xorg to quantal version:

apt-get install xserver-xorg-lts-quantal


I rebooted into failsafe graphics mode, then normal mode (both failed), then normal mode again and everything was working.

Windows console encoding

Filenames on NTFS are encoded in UTF-16.  The windows console is set by default to some other encoding entirely.  This makes working with files with ‘special’ characters in the filenames impossible…

In my case, I was using the following common code to delete files and folders in a directory:

set folder=”C:\test”

cd /d %folder%

for /F “delims=” %%i in (‘dir /b’) do (rmdir “%%i” /s/q || del “%%i” /s/q)


But files with certain unicode characters were not being deleted.  To fix this, add the following at the top of the file:

chcp 10000


This changes the encoding to UTF-16.

Or if you’re using cmd and the dir command, change the font first to Lucida Console (as the default font has a very limited character set).