Workflow returns pyFAI objects to the client
Error in the client side (Bliss, does not have pyFAI and should not have pyFAI)
SESSION_BM23 [2]: ERROR: XRPD plotter task failed (No module named 'pyFAI')
Traceback (most recent call last):
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/kombu/serialization.py", line 41, in _reraise_errors
yield
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/kombu/serialization.py", line 265, in loads
return decode(data)
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/kombu/serialization.py", line 337, in unpickle [F2] Menu - CPython 3.9.18
return pickle_loads(str_to_bytes(s))
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/kombu/serialization.py", line 50, in pickle_loads
return load(BytesIO(s))
ModuleNotFoundError: No module named 'pyFAI'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/blissadm/local/automation/blissoda/src/blissoda/xrpd/plotter.py", line 35, in wrapper
return method(*args, **kw)
File "/home/blissadm/local/automation/blissoda/src/blissoda/xrpd/plotter.py", line 123, in _handle_workflow_result_from_memory
while not future.ready():
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/celery/result.py", line 347, in ready
return self.state in self.backend.READY_STATES
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/celery/result.py", line 503, in state
return self._get_task_meta()['status']
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/celery/result.py", line 442, in _get_task_meta
return self._maybe_set_cache(self.backend.get_task_meta(self.id))
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/celery/backends/base.py", line 608, in get_task_meta
meta = self._get_task_meta_for(task_id)
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/celery/backends/base.py", line 998, in _get_task_meta_for
return self.decode_result(meta)
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/celery/backends/base.py", line 425, in decode_result
return self.meta_from_decoded(self.decode(payload))
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/celery/backends/base.py", line 431, in decode
return loads(payload,
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/kombu/serialization.py", line 265, in loads
return decode(data)
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/contextlib.py", line 137, in __exit__
self.gen.throw(typ, value, traceback)
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/kombu/serialization.py", line 45, in _reraise_errors
reraise(wrapper, wrapper(exc), sys.exc_info()[2])
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/kombu/exceptions.py", line 34, in reraise
raise value.with_traceback(tb)
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/kombu/serialization.py", line 41, in _reraise_errors
yield
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/kombu/serialization.py", line 265, in loads
return decode(data)
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/kombu/serialization.py", line 337, in unpickle
return pickle_loads(str_to_bytes(s))
File "/opt/bliss/conda/miniconda/envs/bliss_dev/lib/python3.9/site-packages/kombu/serialization.py", line 50, in pickle_loads
return load(BytesIO(s))
kombu.exceptions.DecodeError: No module named 'pyFAI'
It returns Orientation.BottomRight
which causes the error above on the client side
{'intensity_error': array([[nan, nan, nan, ..., nan, nan, nan]], dtype=float32), 'radial': array([ 4.24389528, 4.25247713, 4.26105898, ..., 39.36940263, 39.37798448, 39.38656633]), 'intensity': array([[ 0. , 0. , 0. , ..., -4.325992 , -4.3271794, -4.3280435]], dtype=float32), 'azimuthal_units': None, 'radial_units': '2th_deg', 'azimuthal': None, 'info': {'poni_version': 2.0, 'method': 'no_csr_ocl_gpu', 'nbpt_rad': 4096, 'unit': 'q_nm^-1', 'dist': 0.2551979697952477, 'poni1': 0.09418880473393038, 'poni2': -0.018376523535792548, 'rot1': 0.0021122345208307407, 'rot2': -0.0038288558062695745, 'rot3': -8.996173643916569e-10, 'detector': 'Pilatus1M', 'detector_config': {'orientation': Orientation.BottomRight}, 'wavelength': 8.265613228880018e-11, 'mask_file': '/users/opd23/ewoks/mask_pyfai.edf', 'do_mask': True, 'flat_field': None, 'do_flat': False, 'dark_current': None, 'do_dark': False, 'monitors': [None], 'references': [None], 'energy': 15.0}}