ome / omero-py

Python project containing Ice remoting code for OMERO
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
20 stars 33 forks source link

hql.py: when querying masks, filter `bytes` field #230

Closed joshmoore closed 4 years ago

joshmoore commented 4 years ago

omero hql "select s from Shape s" or similar fails with

UnicodeEncodeError: 'utf-8' codec can't encode character '\udcb0' in position 3797: surrogates not allowed

due to the bytes field.

joshmoore commented 4 years ago

This is the only field with that name:

(cd /opt/omero-build/omero-model/src/main/resources/mappings/; git grep bytes)
roi.ome.xml:            <optional name="bytes" type="byte[]"/>