Command runs on node, but not on cluster when called in a fastr script

5 views
Skip to first unread message

Mattias Hansson

unread,
Feb 21, 2017, 5:38:30 AM2/21/17
to Fastr Users
Somehow my script wont load dicoms from xnat anymore. I get the following error:

[8:03]  
[MainProcess::MainThread] INFO: target:346 >> Calling command: "'python' '/cm/shared/apps/fastr/1.1.2/lib/python2.7/site-packages/fastr/core/ioplugin.py' '--input' 'xnat://bigr-rad-xnat.erasmusmc.nl/data/archive/projects/Proof_Study/subjects/PROOF013/experiments/PROOF013_MRI_L_T0/scans/601/resources/DICOM?insecure=true' '--behaviour' 'source' '--datatype' 'DicomImageFile' '--output' '/scratch/mhansson/staging/testdir_L_T0_test/target_dicom/PROOF013_MRI_L_T0/result' '--sample_id' 'PROOF013_MRI_L_T0'"
[MainProcess::MainThread] INFO: fastrinterface:342 >> Collecting results
[MainProcess::MainThread] ERROR: fastrinterface:352 >> Encountered an error when collecting the results
[MainProcess::MainThread] CRITICAL: executionscript:98 >> Execution script encountered errors: Traceback (most recent call last):
 File "/cm/shared/apps/fastr/1.1.2/lib/python2.7/site-packages/fastr/execution/executionscript.py", line 73, in execute_job
   job.execute()
 File "/cm/shared/apps/fastr/1.1.2/lib/python2.7/site-packages/fastr/execution/job.py", line 605, in execute
   result = tool.execute(payload)
 File "/cm/shared/apps/fastr/1.1.2/lib/python2.7/site-packages/fastr/core/tool.py", line 321, in execute
   result = self.interface.execute(target, payload)
 File "/cm/shared/apps/fastr/1.1.2/lib/python2.7/site-packages/fastr/resources/plugins/interfaceplugins/fastrinterface.py", line 350, in execute
   self.collect_results(result)
 File "/cm/shared/apps/fastr/1.1.2/lib/python2.7/site-packages/fastr/resources/plugins/interfaceplugins/fastrinterface.py", line 454, in collect_results
   collector.collect_results(self, output, result)
 File "/cm/shared/apps/fastr/1.1.2/lib/python2.7/site-packages/fastr/resources/plugins/interfaceplugins/fastrinterface.py", line 67, in collect_results
   self._collect_results(interface, output, result)
 File "/cm/shared/apps/fastr/1.1.2/lib/python2.7/site-packages/fastr/resources/plugins/collectorplugins/jsoncollector.py", line 65, in _collect_results
   raise exceptions.FastrValueError('Could not find {} in stdout'.format(loc))
FastrValueError: [fastr://plugins/collectorplugins/json] Could not find ^__IOPLUGIN_OUT__=(.*)$ in stdout

[MainProcess::MainThread] INFO: executionscript:103 >> Writing job result to: /scratch/mhansson/staging/testdir_L_T0_test/target_dicom/PROOF013_MRI_L_T0/__fastr_result__.pickle.gz
[MainProcess::MainThread] INFO: executionscript:156 >> ---------------------------

[8:05]  
But when I run the python command on the node it works. I dont understand why this has suddenly started happening...

nmhansson [9:33 AM] 
fastr cat __fastr_result__.pickle.gz process/stdout
Traceback (most recent call last):
 File "/cm/shared/apps/fastr/1.1.2/bin/fastr", line 11, in <module>
   sys.exit(main())
 File "/cm/shared/apps/fastr/1.1.2/lib/python2.7/site-packages/fastr/utils/cmd/__init__.py", line 85, in main
   module.main()
 File "/cm/shared/apps/fastr/1.1.2/lib/python2.7/site-packages/fastr/utils/cmd/cat.py", line 55, in main
   job = pickle.load(fh)
 File "/cm/shared/apps/python/2.7.11/lib/python2.7/pickle.py", line 1384, in load
   return Unpickler(file).load()
 File "/cm/shared/apps/python/2.7.11/lib/python2.7/pickle.py", line 864, in load
   dispatch[key](self)
 File "/cm/shared/apps/python/2.7.11/lib/python2.7/pickle.py", line 1096, in load_global
   klass = self.find_class(module, name)
 File "/cm/shared/apps/python/2.7.11/lib/python2.7/pickle.py", line 1132, in find_class
   klass = getattr(mod, name)
 File "/cm/shared/apps/fastr/1.1.2/lib/python2.7/site-packages/fastr/core/pluginmanager.py", line 379, in __getattr__
   raise exception
AttributeError: 'LazyModule' object has no attribute '__source-interface__behaviour__Enum__'
Reply all
Reply to author
Forward
0 new messages