Trelby on Ubuntu 16.04 – 18.04

Anyone interested in screenplay writing who tries to install Trelby on Ubuntu will be in for disappointment. Using the software installer, 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)
  • with: 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." %
  • with: "program needs version 3.0." %

7) copy to /opt:

  • cd opt
  • sudo cp -r trelby/ /opt/

8) move the desktop file so you can open the program:

  • 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 *