CellProfiler / BatchProfiler

1 stars 1 forks source link

Error in ViewBatch.py #11

Closed dlogan closed 8 years ago

dlogan commented 8 years ago

This BatchProfiler submission uses the current trunk build (20150910):

http://imagewebrhel6/batchprofiler/cgi-bin/NewBatch.py?data_dir=%2Fimaging%2Fanalysis%2F2010_05_18_Malaria_Liver_Infection_Bhatia_Lab%2FAnalysis%2F2015_03_02_PV_20x_v5_2015_10_15

It apparently ran ok (at least it created the right amount of database Per_Image rows), but ViewBatch returns this error with this URL http://imagewebrhel6/batchprofiler/cgi-bin/ViewBatch.py?batch_id=68:

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /imaging/docs/People/imageweb/batchprofiler/BatchProfiler/ViewBatch.py in ()
    659         
    660 with bputilities.CellProfilerContext():
    661     doc = ViewBatchDoc()
=>  662     doc.build()
    663 doc.render()
doc = <bpformdata.ViewBatchDoc object>, doc.build = <bound method ViewBatchDoc.build of <bpformdata.ViewBatchDoc object>>
 /imaging/docs/People/imageweb/batchprofiler/BatchProfiler/ViewBatch.py in build(self=<bpformdata.ViewBatchDoc object>)
     66             self.build_submit_run()
     67         else:
=>   68             self.build_batch()
     69     
     70     def read_batch(self):
self = <bpformdata.ViewBatchDoc object>, self.build_batch = <bound method ViewBatchDoc.build_batch of <bpformdata.ViewBatchDoc object>>
 /imaging/docs/People/imageweb/batchprofiler/BatchProfiler/ViewBatch.py in build_batch(self=<bpformdata.ViewBatchDoc object>)
    201                 self.build_summary_table()
    202                 self.build_summary_buttons()
=>  203                 self.build_database_scripts()
    204             with self.tag("div", style='clear:both; padding-top:10px'):
    205                 self.build_job_table()
self = <bpformdata.ViewBatchDoc object>, self.build_database_scripts = <bound method ViewBatchDoc.build_database_scripts of <bpformdata.ViewBatchDoc object>>
 /imaging/docs/People/imageweb/batchprofiler/BatchProfiler/ViewBatch.py in build_database_scripts(self=<bpformdata.ViewBatchDoc object>)
    375                     run, task, task_status = sql_jobs.sql_file_job_and_status(
    376                         self.my_batch.batch_id, 
=>  377                         RunBatch.batch_script_file(filename))
    378                     status = None if task_status is None else task_status.status
    379                     with self.tag("tr"):
global RunBatch = <module 'RunBatch' from '/imaging/docs/People/imageweb/batchprofiler/BatchProfiler/RunBatch.py'>, RunBatch.batch_script_file = <function batch_script_file>, filename = 'SQL__Per_Well_SETUP.SQL'
 /imaging/docs/People/imageweb/batchprofiler/BatchProfiler/sql_jobs.py in sql_file_job_and_status(batch_id=68, sql_file='batch_SQL__Per_Well_SETUP.SQL')
     54     returns latest job or None if not submitted
     55     """
=>   56     batch = RunBatch.select(batch_id)
     57     run = RunBatch.BPSQLRun.select_by_sql_filename(batch, sql_file)
     58     if run is None:
batch undefined, global RunBatch = <module 'RunBatch' from '/imaging/docs/People/imageweb/batchprofiler/BatchProfiler/RunBatch.py'>, RunBatch.select undefined, batch_id = 68
<type 'exceptions.AttributeError'>: 'module' object has no attribute 'select' 
      args = ("'module' object has no attribute 'select'",) 
      message = "'module' object has no attribute 'select'"

@braymp have you run/tested any new CP versions since September?

braymp commented 8 years ago

Nope, haven't worked with new versions on my end.

LeeKamentsky commented 8 years ago

@dlogan I'd hold off on using versions past Oct 1 because we don't have anything in place yet to compile an appropriate version of the centrosome package for the cluster.

LeeKamentsky commented 8 years ago

The problem was in a script that lets you issue a batch command to upload SQL data output by the pipeline. http://imagewebrhel6/batchprofiler/cgi-bin/dev/ViewBatch.py?batch_id=69 now works, running off of the issues/11 branch. Will submit pull request.