Trelby on Ubuntu 16.04

Anyone interested in screenplay writing who installs Ubuntu 16.04 and tries to install Trelby from the Ubuntu Software app will be in for disappointment. The button clicks, an orange progress bar begins, then… nothing.

Luckily, there is a (relatively) easy fix. Do this:

1) download the .tar file from the Trelby website: Trelby Download Page
2) unpack the files in the .deb file:

  • dpkg-deb -xv trelby_2.2_all.deb opt/

3) install python-lxml python-wxgtk3.0 in Terminal

  • sudo apt install python-lxml python-wxgtk3.0

4) edit opt/trelby/src/cfgdlg.py:

  • replace: gsizer = wx.FlexGridSizer(2, 2, 5, 0)
  • width: gsizer = wx.FlexGridSizer(0, 2, 5, 0)

5) edit opt/trelby/src/config.py:

  • remove this line: nfi.SetEncoding(wx.FONTENCODING_ISO8859_1)

6) edit opt/trelby/src/trelby.py:

  • replace: if (wx.MAJOR_VERSION != 2) or (wx.MINOR_VERSION != 8):
  • with: if (wx.MAJOR_VERSION != 3) or (wx.MINOR_VERSION != 0):
  • replace: "program needs version 2.8." %
  • width: "program needs version 3.0." %

7) move the desktop file so you can open using Dash:

  • sudo mv opt/trelby/trelby.desktop /usr/share/applications/
  • You should now be able to load Trelby using the Dash menu, opened by clicking on the Ubuntu Launcher. Happy screenwriting!

Leave a Reply

Your email address will not be published. Required fields are marked *