Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P905
swh.search 0.3.3 latest failure
Active
Public
Actions
Authored by
ardumont
on Dec 11 2020, 5:48 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
Archive search
Subscribers
None
Dec 11 16:37:34 search0 swh[20181]: Traceback (most recent call last):
Dec 11 16:37:34 search0 swh[20181]: File "/usr/bin/swh", line 11, in <module>
Dec 11 16:37:34 search0 swh[20181]: load_entry_point('swh.core==0.11.0', 'console_scripts', 'swh')()
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/swh/core/cli/__init__.py", line 185, in main
Dec 11 16:37:34 search0 swh[20181]: return swh(auto_envvar_prefix="SWH")
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
Dec 11 16:37:34 search0 swh[20181]: return self.main(*args, **kwargs)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
Dec 11 16:37:34 search0 swh[20181]: rv = self.invoke(ctx)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
Dec 11 16:37:34 search0 swh[20181]: return _process_result(sub_ctx.command.invoke(sub_ctx))
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
Dec 11 16:37:34 search0 swh[20181]: return _process_result(sub_ctx.command.invoke(sub_ctx))
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
Dec 11 16:37:34 search0 swh[20181]: return _process_result(sub_ctx.command.invoke(sub_ctx))
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
Dec 11 16:37:34 search0 swh[20181]: return ctx.invoke(self.callback, **ctx.params)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
Dec 11 16:37:34 search0 swh[20181]: return callback(*args, **kwargs)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
Dec 11 16:37:34 search0 swh[20181]: return f(get_current_context(), *args, **kwargs)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/swh/search/cli.py", line 102, in journal_client_objects
Dec 11 16:37:34 search0 swh[20181]: nb_messages = client.process(worker_fn)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/swh/journal/client.py", line 265, in process
Dec 11 16:37:34 search0 swh[20181]: batch_processed, at_eof = self.handle_messages(messages, worker_fn)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/swh/journal/client.py", line 292, in handle_messages
Dec 11 16:37:34 search0 swh[20181]: worker_fn(dict(objects))
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/swh/search/journal_client.py", line 31, in process_journal_objects
Dec 11 16:37:34 search0 swh[20181]: process_origin_intrinsic_metadata(messages["origin_intrinsic_metadata"], search)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/swh/search/journal_client.py", line 77, in process_origin_intrinsic_metadata
Dec 11 16:37:34 search0 swh[20181]: search.origin_update(origin_metadata)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/swh/search/elasticsearch.py", line 109, in origin_update
Dec 11 16:37:34 search0 swh[20181]: for (sha1, document) in documents_with_sha1
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/swh/search/elasticsearch.py", line 102, in <listcomp>
Dec 11 16:37:34 search0 swh[20181]: {
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/swh/search/elasticsearch.py", line 99, in <genexpr>
Dec 11 16:37:34 search0 swh[20181]: (origin_identifier(document), document) for document in documents
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/swh/search/elasticsearch.py", line 28, in _sanitize_origin
Dec 11 16:37:34 search0 swh[20181]: res["intrinsic_metadata"] = codemeta.expand(res["intrinsic_metadata"])
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/swh/indexer/codemeta.py", line 131, in expand
Dec 11 16:37:34 search0 swh[20181]: return jsonld.expand(doc, options={"documentLoader": _document_loader})
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/pyld/jsonld.py", line 171, in expand
Dec 11 16:37:34 search0 swh[20181]: return JsonLdProcessor().expand(input_, options)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/pyld/jsonld.py", line 821, in expand
Dec 11 16:37:34 search0 swh[20181]: expanded = self._expand(active_ctx, None, document, options, False)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/pyld/jsonld.py", line 2101, in _expand
Dec 11 16:37:34 search0 swh[20181]: active_ctx, key, value, options, inside_list=False)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/pyld/jsonld.py", line 1927, in _expand
Dec 11 16:37:34 search0 swh[20181]: return self._expand_value(active_ctx, active_property, element)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/pyld/jsonld.py", line 2712, in _expand_value
Dec 11 16:37:34 search0 swh[20181]: return {'@id': self._expand_iri(active_ctx, value, base=True)}
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/pyld/jsonld.py", line 4210, in _expand_iri
Dec 11 16:37:34 search0 swh[20181]: rval = prepend_base(active_ctx['@base'], rval)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/pyld/jsonld.py", line 466, in prepend_base
Dec 11 16:37:34 search0 swh[20181]: rel = parse_url(iri)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3/dist-packages/pyld/jsonld.py", line 577, in parse_url
Dec 11 16:37:34 search0 swh[20181]: m = re.match(p, url)
Dec 11 16:37:34 search0 swh[20181]: File "/usr/lib/python3.7/re.py", line 173, in match
Dec 11 16:37:34 search0 swh[20181]: return _compile(pattern, flags).match(string)
Dec 11 16:37:34 search0 swh[20181]: TypeError: expected string or bytes-like object
Event Timeline
ardumont
created this paste.
Dec 11 2020, 5:48 PM
2020-12-11 17:48:03 (UTC+1)
ardumont
mentioned this in
T2876: metadata indexation : ES' dynamic mapping creation fails for field values that are of varying types
.
Log In to Comment