I previously commented to attest the validity of Evandro's solution.
After reinstalling and reapplying the fix, I noticed that it is very
important where you place:

from gettext import gettext as _

in the three files. Initially I placed them too high and Magicicada
would not start. So just for clarification, open each of these three
files:

/usr/lib/python2.7/dist-packages/magicicada/gui/gtk/operations.py
/usr/lib/python2.7/dist-packages/magicicada/gui/gtk/listings.py
/usr/lib/python2.7/dist-packages/magicicada/gui/gtk/status.py

and add the line:

from gettext import gettext as _

to each of them, right after the line:

# pylint: enable=E0611

and that should work. This is usually right above any lines saying
'import magicicada ....' but also above another import in one of the
files. I have tested that as long as 'from gettext import gettext as _'
is after '# pylint: enable=E0611'  and before any lines that say 'import
magicicada ...' in all three files, that it works.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1095665

Title:
  Crashes on start : NameError: name '_' is not defined

To manage notifications about this bug go to:
https://bugs.launchpad.net/magicicada/+bug/1095665/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to