Page MenuHomeSoftware Heritage
Paste P1410

(An Untitled Masterwork)
ActivePublic

Authored by ardumont on Jul 21 2022, 6:50 PM.
swh/indexer/tests/test_cli.py:791:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/home/tony/.virtualenvs/swh/lib/python3.9/site-packages/click/testing.py:408: in invoke
return_value = cli.main(args=args or (), prog_name=prog_name, **extra)
/home/tony/.virtualenvs/swh/lib/python3.9/site-packages/click/core.py:1055: in main
rv = self.invoke(ctx)
/home/tony/.virtualenvs/swh/lib/python3.9/site-packages/click/core.py:1657: in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
/home/tony/.virtualenvs/swh/lib/python3.9/site-packages/click/core.py:1404: in invoke
return ctx.invoke(self.callback, **ctx.params)
/home/tony/.virtualenvs/swh/lib/python3.9/site-packages/click/core.py:760: in invoke
return __callback(*args, **kwargs)
/home/tony/.virtualenvs/swh/lib/python3.9/site-packages/click/decorators.py:26: in new_func
return f(get_current_context(), *args, **kwargs)
swh/indexer/cli.py:365: in journal_client
client.process(worker_fn)
../swh-journal/swh/journal/client.py:318: in process
batch_processed, at_eof = self.handle_messages(messages, worker_fn)
../swh-journal/swh/journal/client.py:356: in handle_messages
worker_fn(dict(objects))
swh/indexer/cli.py:362: in worker_fn
fn(objects)
swh/indexer/indexer.py:325: in process_journal_objects
for item, raw_content in zip(
../swh-objstorage/swh/objstorage/objstorage.py:126: in get_batch
yield self.get(obj_id)
../swh-objstorage/swh/objstorage/backends/in_memory.py:45: in get
if obj_id not in self:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <swh.objstorage.backends.in_memory.InMemoryObjStorage object at 0x7f8894419ee0>
obj_id = {'blake2s256': b'\xb3\xe7l\xb6\xec\x8a\x9c,\xb3\xa55>\x0b\xb4\x93\xf8\x17<\x9fCxJ\x9a\x86\xb2\xda\xc0\x9d\xe9\x93\xca\...ata': b'du fran\xc3\xa7ais', 'length': 12, 'sha1': b'\x97\xbbi^ij\xda\xfay\xba\x82\x7f5\x90\x80\x91\xae\x9fa\x93', ...}
def __contains__(self, obj_id: ObjId) -> bool:
> return obj_id in self.state
E TypeError: unhashable type: 'dict'
../swh-objstorage/swh/objstorage/backends/in_memory.py:32: TypeError

Event Timeline

swh.objstorage 2.0.1.dev2+g2e642be /home/tony/work/inria/repo/swh/swh-environment/swh-objstorage