Daily build on startup error: NameError: name '_' is not defined

Bug #515890 reported by grofaty
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Lernid
Undecided
Unassigned

Bug Description

I have downloaded daily build lernid_0.6~154~201002020433_all.deb

Executing "lernid" from terminal I get the following error:
==================================================================
Traceback (most recent call last):
  File "/usr/bin/lernid", line 47, in <module>
    from lernid.LernidOptions import Options
  File "/usr/lib/python2.6/dist-packages/lernid/LernidOptions.py", line 23, in <module>
    from lernid.lernidconfig import VERSION
  File "/usr/lib/python2.6/dist-packages/lernid/lernidconfig.py", line 33, in <module>
    DESCRIPTION = _('Connect to a world of online tutorials quickly and easily.')
NameError: name '_' is not defined
==================================================================

and Lernid does not start up at all.

grofaty (grofaty)
description: updated
description: updated
Revision history for this message
Michael Budde (mbudde) wrote :

My fault. That last change got pushed a little too fast. I have fixed it now.

Changed in lernid:
status: New → Fix Committed
Revision history for this message
grofaty (grofaty) wrote :

Michael,
today I have downloaded daily build again (new day new build) and I got another error:

=============
Desktop CouchDB is not running; starting it. Removing stale, deceptive pid file.
Apache CouchDB has started, time to relax.
...waiting for couchdb to start...
...waiting for couchdb to start...
...waiting for couchdb to start...
...waiting for couchdb to start...
...waiting for couchdb to start...
...waiting for couchdb to start...
...waiting for couchdb to start...
Traceback (most recent call last):
  File "/usr/bin/lernid", line 414, in <module>
    window = NewLernidWindow()
  File "/usr/bin/lernid", line 393, in NewLernidWindow
    window.finish_initializing(builder)
  File "/usr/bin/lernid", line 92, in finish_initializing
    main_window_size = Preferences.get('main_window_size')
  File "/usr/lib/python2.6/dist-packages/lernid/CouchDBPreferences.py", line 75, in get
    klass = cls.get_instance()
  File "/usr/lib/python2.6/dist-packages/lernid/CouchDBPreferences.py", line 66, in get_instance
    cls._instance = cls()
  File "/usr/lib/python2.6/dist-packages/lernid/CouchDBPreferences.py", line 31, in __init__
    self._database = CouchDatabase(self._db_name, create=True)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/records/server.py", line 50, in __init__
    desktopcouch.find_pid()
  File "/usr/lib/python2.6/dist-packages/desktopcouch/__init__.py", line 29, in find_pid
    pid = start_local_couchdb.start_couchdb()
  File "/usr/lib/python2.6/dist-packages/desktopcouch/start_local_couchdb.py", line 307, in start_couchdb
    write_bookmark_file(username, password, pid)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/start_local_couchdb.py", line 280, in write_bookmark_file
    port = desktopcouch.find_port(pid=pid)
  File "/usr/lib/python2.6/dist-packages/desktopcouch/__init__.py", line 85, in find_port__linux
    raise RuntimeError("Unable to find listening port")
RuntimeError: Unable to find listening port
=============

Changed in lernid:
status: Fix Committed → New
Revision history for this message
grofaty (grofaty) wrote :

I rebooted Ubuntu and now Lernid works fine. Strange, but it works fine.

Michael Budde (mbudde)
Changed in lernid:
status: New → Fix Committed
Revision history for this message
Emilien Klein (emilien-klein) wrote :

grofaty, this is another bug. I've reported it in bug 516619.

Michael Budde (mbudde)
Changed in lernid:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers