Actions
Bug #2557
closednew table in database causes sinedon to look for the class in in dataclass definition in python even though the reference is not in python class list
Start date:
10/10/2013
Due date:
% Done:
0%
Estimated time:
Affected Version:
Appion/Leginon 2.1.0
Show in known bugs:
No
Workaround:
Description
For example,
I added MoverParamsData in myami 3.0 that is referenced in AcquisitionImageData.
When running myami 2.2, there is no python class for MoverParamsData and we get this error:
Traceback (most recent call last): File "/opt/applications/myami/2.2/lib/python2.6/site-packages/appionlib/apDatabase.py", line 83, in getImagesFromDB imgtree = imgquery.query(readimages=False) File "/opt/applications/myami/2.2/lib/python2.6/site-packages/sinedon/data.py", line 395, in query results = db.query(self, **kwargs) File "/opt/applications/myami/2.2/lib/python2.6/site-packages/sinedon/dbdatakeeper.py", line 95, in query result = self._query(*args, **kwargs) File "/opt/applications/myami/2.2/lib/python2.6/site-packages/sinedon/dbdatakeeper.py", line 118, in _query myresult = result.fetchall() File "/opt/applications/myami/2.2/lib/python2.6/site-packages/sinedon/sqldict.py", line 576, in fetchall cursorresult = self._format(subfetch, qikey) File "/opt/applications/myami/2.2/lib/python2.6/site-packages/sinedon/sqldict.py", line 649, in _format result = map(sql2data, sqlresult, qikeylist, qinfolist) File "/opt/applications/myami/2.2/lib/python2.6/site-packages/sinedon/sqldict.py", line 1278, in sql2data content = datatype(in_dict, join=join, parentclass=parentclass) File "/opt/applications/myami/2.2/lib/python2.6/site-packages/sinedon/sqldict.py", line 1368, in datatype dclass = findDataClass(modulename, dclassname) File "/opt/applications/myami/2.2/lib/python2.6/site-packages/sinedon/sqldict.py", line 1304, in findDataClass cls = getattr(mod, classname) AttributeError: 'module' object has no attribute 'MoverParamsData'
When there are values in the `REF|MoverParamsData|mover` field in mysql db and the query result would include a real value in that field
Actions