Project

General

Profile

Leginon stops with "KeyError: u" in SetupWizard.py

Added by Anonymous almost 17 years ago

Hi,

I've so far installed Leginon 1.4.1 and all prerequisites. wxPython is installed from sources and http://emg.nysbc.org/bb/viewtopic.php?t=230 helped to solve the libCV problem. However, now when starting Leginon I am presented an almost uniformly grey window (with a white bar on the left side) and the following Python errors are issued:

[root@pc-polara1 numarray-1.5.2]# start-leginon.py 
This is a fake libCV
Traceback (most recent call last):

File "/usr/bin/start-leginon.py", line 10, in ?

start.start(legoptparse.options)

File "/usr/lib/python2.4/site-packages/Leginon/start.py", line 21, in start

m = gui.wx.Manager.App(None, options=options)

File "/usr/lib/python2.4/site-packages/Leginon/gui/wx/Manager.py", line 110, in __init__

wx.App.__init__(self)

File "/usr/lib64/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7836, in __init__

self._BootstrapApp()

File "/usr/lib64/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7433, in _BootstrapApp

return _core_.PyApp__BootstrapApp(*args, **kwargs)

File "/usr/lib/python2.4/site-packages/Leginon/gui/wx/Manager.py", line 146, in OnInit

setup = gui.wx.SetupWizard.SetupWizard(self.manager)

File "/usr/lib/python2.4/site-packages/Leginon/gui/wx/SetupWizard.py", line 599, in __init__

self.userpage.setUsers(users)

File "/usr/lib/python2.4/site-packages/Leginon/gui/wx/SetupWizard.py", line 89, in setUsers

self.setUserSelection()

File "/usr/lib/python2.4/site-packages/Leginon/gui/wx/SetupWizard.py", line 82, in setUserSelection

self.onUserChoice()

File "/usr/lib/python2.4/site-packages/Leginon/gui/wx/SetupWizard.py", line 109, in onUserChoice

session = parent.sessionselectpage.getSelectedSession()

File "/usr/lib/python2.4/site-packages/Leginon/gui/wx/SetupWizard.py", line 325, in getSelectedSession

return self.GetParent().userpage.sessions[name]
KeyError: u''

This can only stopped with ^C.

Any ideas, where this error message could be related to?

Thanks

frank


Replies (5)

- Added by Anonymous almost 17 years ago

Nobody has an idea? Do you need more infos from me? Please let me know. I'm stuck.

frank

- Added by Jim Pulokas over 16 years ago

Frank,

This bug has been fixed in our development version, which should become an official release very soon. Until then, I am providing some snapshots from our CVS repository:

http://www.scripps.edu/~pulokas/leginon/

Download the latest (2008-02-22, zip or tgz). This contains the latest leginon, sinedon, pyami, and ImageViewer. I recommend installing each of them over your current installation using

python setup.py install

That should fix the problem, and maybe some others that you have not encountered yet.

Let me know if that works.

Jim

- Added by Anonymous over 16 years ago

Hi Jim,

"pulokas" wrote: Frank,
This bug has been fixed in our development version, [...]

http://www.scripps.edu/~pulokas/leginon/
Download the latest (2008-02-22, zip or tgz). This contains the latest leginon, sinedon, pyami, and ImageViewer. I recommend installing each of them over your current installation using
python setup.py install

That should fix the problem, and maybe some others that you have not encountered yet.
Let me know if that works.
Jim

The error message is now different:

[root@pc-polara1 ~]# start-leginon.py 
This is a fake libCV
libCV found
Traceback (most recent call last):

File "/usr/bin/start-leginon.py", line 9, in ?

import start

File "/usr/lib/python2.4/site-packages/Leginon/start.py", line 12, in ?

import gui.wx.Manager

File "/usr/lib/python2.4/site-packages/Leginon/gui/wx/Manager.py", line 16, in ?

import manager

File "/usr/lib/python2.4/site-packages/Leginon/manager.py", line 18, in ?

import launcher

File "/usr/lib/python2.4/site-packages/Leginon/launcher.py", line 14, in ?

import nodeclassreg

File "/usr/lib/python2.4/site-packages/Leginon/nodeclassreg.py", line 122, in ?

registerNodeClasses()

File "/usr/lib/python2.4/site-packages/Leginon/nodeclassreg.py", line 120, in registerNodeClasses

registerNodeClass(modulename, classname, sortclass, package)

File "/usr/lib/python2.4/site-packages/Leginon/nodeclassreg.py", line 57, in registerNodeClass

mod = imp.load_module(impname, *modinfo)

File "/usr/lib/python2.4/site-packages/Leginon/robotatlastargetfinder.py", line 24, in ?

import project

File "/usr/lib/python2.4/site-packages/Leginon/project.py", line 9, in ?

dbparams = {
AttributeError: 'module' object has no attribute 'projectdb'
[root@pc-polara1 ~]# 

I am also irritated by the "libCV found" at the beginning. I thought I got rid of this...

frank

- Added by Jim Pulokas over 16 years ago

It looks like something did not get updated to the latest version (2008-02-22). Can you check the modification times of the files in /usr/lib/python2.4/site-packages/Leginon/. This error would be caused if project.py got updated, but leginonconfig.py did not. Maybe the "python setup.py install" did not work right. If that is the case, It may help to move /usr/lib/python2.4/site-packages/Leginon/ to a back up location and do a fresh install of leginon from the 2008-02-22 release.

Regarding the libcv message, the fake libCV.py module that is currently installed is no longer necessary to make leginon happy. In the latest version of Leginon, it will not crash if libCV is missing, so you can remove the fake one.

Jim

- Added by Anonymous over 16 years ago

"pulokas" wrote: It looks like something did not get updated to the latest version (2008-02-22). [...] Maybe the "python setup.py install" did not work right. If that is the case, It may help to move /usr/lib/python2.4/site-packages/Leginon/ to a back up location and do a fresh install of leginon from the 2008-02-22 release.

[...]

Great. I did as instructed (reinstalled Leginon from the 2008-02-22 release) and now start-leginon.py starts up w/o error message. Since I am not the one that knows how to use Leginon, I'll let you know as soon as I have the final OK from the user.

frank

    (1-5/5)