Skip to content

getLookup fails if value is list #31

@WolfgangFahl

Description

@WolfgangFahl
ERROR: testEventCorpusFromWikiUser (tests.test_EventCorpus.TestEventCorpus)
test the event corpus
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/wf/Documents/pyworkspace/OpenResearch/migration/tests/test_EventCorpus.py", line 45, in testEventCorpusFromWikiUser
    eventCorpus=Corpus.getEventCorpusFromWikiAPI(debug=self.debug, force=True)
  File "/Users/wf/Documents/pyworkspace/OpenResearch/migration/tests/corpusfortesting.py", line 53, in getEventCorpusFromWikiAPI
    eventCorpus.fromWikiUser(wikiUser,force=force)
  File "/Users/wf/Documents/pyworkspace/OpenResearch/migration/openresearch/eventcorpus.py", line 93, in fromWikiUser
    self.seriesLookup=self.eventList.getLookup("inEventSeries", withDuplicates=True)
  File "/Users/wf/Library/Python/3.9/lib/python/site-packages/lodstorage/jsonable.py", line 373, in getLookup
    return LOD.getLookup(self.getList(), attrName, withDuplicates)
  File "/Users/wf/Library/Python/3.9/lib/python/site-packages/lodstorage/lod.py", line 119, in getLookup
    if value in lookup:
TypeError: unhashable type: 'list'

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions