Project

General

Profile

Actions

Bug #4275

open

sinedon querying to leginondb instead of appiondb

Added by Neil Voss about 8 years ago. Updated about 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
07/01/2016
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 3.2
Show in known bugs:
No
Workaround:

Description

  File "/tank/software/myami-3.2/appion/bin/makestack2.py", line 1142, in postLoopFunctions
    apStackMeanPlot.makeStackMeanPlot(stackid)
  File "/tank/software/myami-3.2/appion/appionlib/apStackMeanPlot.py", line 53, in makeStackMeanPlot
    partdatas = sinedon.directq.complexMysqlQuery('appiondata',sqlcmd)
  File "/tank/software/myami-3.2/sinedon/directq.py", line 24, in complexMysqlQuery
    results = cur.selectall(query)
  File "/tank/software/myami-3.2/sinedon/sqldb.py", line 44, in selectall
    self.c.execute(strSQL, param)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
    self.errorhandler(self, exc, value)
  File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.ProgrammingError: (1146, "Table 'leginondb.ApStackParticleData' doesn't exist")

Note it says <b>'leginondb.ApStackParticleData'</b>

I checked the code and had it print the info:

sqlcmd = "SELECT " + \
 "particleNumber, mean, stdev " + \
 "FROM ApStackParticleData " + \
 "WHERE `REF|ApStackData|stack` = %i"%(stackid)
print sinedon.getConfig('appiondata')
partdatas = sinedon.directq.complexMysqlQuery(newdbname, sqlcmd)
{'passwd': 'xxxx', 'host': '127.0.0.1', 'db': 'ap9', 'user': 'usr_object'}
connecting

any ideas? this is the northwestern install using myami 3.2 under debian 8.

Actions

Also available in: Atom PDF