I got this error when I use LoadData module, can anyone help me with why this error occurs?
this is my csv file:
load2.csv
(542 Bytes)
Failed to prepare run for module LoadData
Traceback (most recent call last):
File "/home/taheret/.local/lib/python3.8/site-packages/cellprofiler_core/pipeline/_pipeline.py", line 1368, in prepare_run
not module.prepare_run(workspace)
File "/home/taheret/.local/lib/python3.8/site-packages/cellprofiler_core/modules/loaddata.py", line 947, in prepare_run
m.add_all_measurements("Image", feature, values)
File "/home/taheret/.local/lib/python3.8/site-packages/cellprofiler_core/measurement/_measurements.py", line 955, in add_all_measurements
self.hdf5_dict.add_all(
File "/home/taheret/.local/lib/python3.8/site-packages/cellprofiler_core/utilities/hdf5_dict.py", line 842, in add_all
self.add_feature(object_name, feature_name)
File "/home/taheret/.local/lib/python3.8/site-packages/cellprofiler_core/utilities/hdf5_dict.py", line 785, in add_feature
feature_group = self.top_group[object_name].require_group(feature_name)
File "/home/taheret/.local/lib/python3.8/site-packages/h5py/_hl/group.py", line 273, in require_group
return self.create_group(name)
File "/home/taheret/.local/lib/python3.8/site-packages/h5py/_hl/group.py", line 65, in create_group
gid = h5g.create(self.id, name, lcpl=lcpl, gcpl=gcpl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5g.pyx", line 162, in h5py.h5g.create
ValueError: Name parameter cannot be an empty string (name parameter cannot be an empty string)
Hi tahi,
I’m currently encountering the same error trying to build an illumination pipeline with the LoadData module.
Have you managed to work that out ?
Thanks for attaching that csv file. I’ve replicated your issue and I believe this is coming from the first column of your spreadsheet, which has no column name. If you delete that column, I no longer get the error. If you’re using pandas to create this file, usually this happens because you haven’t turned off the option to save out the row index or row number when saving the csv.
Rebecca