cubicweb #14803941 Binary() TypeError: unhashable instance [waiting feedback]

I'm getting a TypeError: unhashable instance

This might be related to something like this changeset https://hg.logilab.org/master/cubicweb/rev/d0f6fe008ec4

Remove the __eq__ method, solves the problem, but it's probably not the right way.

Traceback

File "/usr/local/bin/cubicweb-ctl", line 4, in <module>
  run(sys.argv[1:])
File "/usr/local/lib/python2.7/dist-packages/cubicweb/cwctl.py", line 1103, in run
  CWCTL.run(args)
File "/usr/local/share/cubicweb/cubes/sentry/ccplugin.py", line 21, in sentry_run
  original_run(self, args)
File "/usr/local/lib/python2.7/dist-packages/logilab/common/clcommands.py", line 136, in run
  sys.exit(command.main_run(args, rcfile))
File "/usr/local/lib/python2.7/dist-packages/logilab/common/clcommands.py", line 265, in main_run
  self.run(args)
File "/usr/local/share/cubicweb/cubes/pnia_content/ccplugin.py", line 83, in run
  import_data(in_memory_db, cnx, config)
File "/usr/local/share/cubicweb/cubes/pnia_content/scripts/import_data.py", line 554, in import_data
  importer.import_entities(cmsimporter.build_extentities(in_memory_db))
File "/usr/local/lib/python2.7/dist-packages/cubicweb/dataimport/importer.py", line 264, in import_entities
  deferred = self._import_entities(ext_entities, queue)
File "/usr/local/lib/python2.7/dist-packages/cubicweb/dataimport/importer.py", line 273, in _import_entities
  for ext_entity in self.iter_ext_entities(ext_entities, deferred, queue):
File "/usr/local/lib/python2.7/dist-packages/cubicweb/dataimport/importer.py", line 290, in iter_ext_entities
  for ext_entity in ext_entities:
File "/usr/local/share/cubicweb/cubes/pnia_content/scripts/import_data.py", line 293, in build_extentities
  for extentity in self.build_commemoration(page_type, content):
File "/usr/local/share/cubicweb/cubes/pnia_content/scripts/import_data.py", line 426, in build_commemoration
  image_file, image = self.create_image(content['photo_1'], content['legende_1'])
File "/usr/local/share/cubicweb/cubes/pnia_content/scripts/import_data.py", line 377, in create_image
  image_file = self.create_static_file(url_or_path)
File "/usr/local/share/cubicweb/cubes/pnia_content/scripts/import_data.py", line 371, in create_static_file
  'data': {Binary(open(filepath).read())},
TypeError: unhashable instance

$ cubicweb-ctl version 3.22.4

prioritynormal
typebug
done in<not specified>
closed by<not specified>