Errors while starting Leginon
Added by Anonymous almost 18 years ago
Hello,
I have installed Leginon and all supporting packages including Python 2.4. I am getting errors when I start leginon. (When I click on start.py and run the module using python GUI) Here are the errors that I am getting
Traceback (most recent call last):
File "C:\Python24\Lib\site-packages\Leginon\gui\wx\Node.py", line 60, in _onNodeInitialized
self.onNodeInitialized()
File "C:\Python24\Lib\site-packages\Leginon\gui\wx\Corrector.py", line 183, in onNodeInitialized
self.settingsdialog = SettingsDialog(self)
File "C:\Python24\Lib\site-packages\Leginon\gui\wx\Settings.py", line 82, in init
self.getNodeSettings()
File "C:\Python24\Lib\site-packages\Leginon\gui\wx\Settings.py", line 190, in getNodeSettings
node.setSettings(nodesettings)
File "C:\Python24\Lib\site-packages\Leginon\node.py", line 148, in setSettings
self.publish(sd, database=True, dbforce=True)
File "C:\Python24\Lib\site-packages\Leginon\node.py", line 340, in publish
self.dbdatakeeper.insert(idata, force=dbforce)
File "C:\Python24\Lib\site-packages\Leginon\dbdatakeeper.py", line 227, in insert
self._insert(newdata, force=force)
File "C:\Python24\Lib\site-packages\Leginon\dbdatakeeper.py", line 262, in _insert
return self.recursiveInsert(newdata, force=force)
File "C:\Python24\Lib\site-packages\Leginon\dbdatakeeper.py", line 253, in recursiveInsert
self.recursiveInsert(dat)
File "C:\Python24\Lib\site-packages\Leginon\dbdatakeeper.py", line 256, in recursiveInsert
dbid = self.flatInsert(newdata, force=force)
File "C:\Python24\Lib\site-packages\Leginon\dbdatakeeper.py", line 270, in flatInsert
definition, formatedData = sqldict.dataSQLColumns(newdata)
File "C:\Python24\Lib\site-packages\Leginon\sqldict.py", line 1635, in dataSQLColumns
result = type2columns(key, value, value_type, data_instance)
File "C:\Python24\Lib\site-packages\Leginon\sqldict.py", line 1709, in type2columns
columns, row = subSQLColumns(column_dict, data_instance)
File "C:\Python24\Lib\site-packages\Leginon\sqldict.py", line 1601, in subSQLColumns
raise ValueError
ValueError
What can I do about these errors?
Thanks,
Poojitha
Fred Sigworth's Lab
Yale University
Replies (1)
- Added by Jim Pulokas almost 18 years ago
I don't recall the exact cause of this, but I think it has been fixed since the 1.3.0 release.
Sorry to make you manually fix it, but could you try the following:
Edit the file that is causing the error:
C:\Python24\Lib\site-packages\Leginon\sqldict.py
The problem is on line 1601, which is in the function called subSQLColumns
Currently it says "raise ValueError". Could you change that line to say:
print 'subSQLColumns failed', data_instance.__class__, key, value, value_type
(make sure to keep the indentation just like it was before, just change the text)
This should make it print a more useful message instead of exploding with an exception.
Even after the message is printed, see if you can continue with Leginon. It may turn out to be a harmless error.
Also, post the resulting message here and I'll try to figure it out.
Jim