yaml.parser.ParserError: while parsing a flow mapping in "/tmp/tmpdb3y1_36/xsect_hJetNTex_el/NP_hJetNTex_comb.yaml", line 3, column 12 did not find expected ',' or '}' in "/tmp/tmpdb3y1_36/xsect_hJetNTex_el/NP_hJetNTex_comb.yaml", line 3, column 22
sentry_patched_wsgi_app
integration.http_methods_to_capture
if integration
else DEFAULT_HTTP_METHODS_TO_CAPTURE
),
)
return middleware(environ, start_response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Flask.__call__ = sentry_patched_wsgi_app
def _add_sentry_trace(sender, template, context, **extra):
__call__
partial(
_sentry_start_response, start_response, transaction
),
)
except BaseException:
reraise(*_capture_exception()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
finally:
_wsgi_middleware_applied.set(False)
return _ScopedResponse(scope, response)
reraise
def reraise(tp, value, tb=None):
# type: (Optional[Type[BaseException]], Optional[BaseException], Optional[Any]) -> NoReturn
assert value is not None
if value.__traceback__ is not tb:
raise value.with_traceback(tb)
raise value ^^^^^^^^^^^
def _no_op(*_a, **_k):
# type: (*Any, **Any) -> None
"""No-op function for ensure_integration_enabled."""
__call__
)
if transaction is not None
else nullcontext()
):
try:
response = self.app(
environ,
partial(
_sentry_start_response, start_response, transaction
),
)
<lambda>
return old_app(self, environ, start_response)
integration = sentry_sdk.get_client().get_integration(FlaskIntegration)
middleware = SentryWsgiMiddleware(
lambda *a, **kw: old_app(self, *a, **kw), ^^^^^^^^^^^^^^^^^^^^^^^
span_origin=FlaskIntegration.origin,
http_methods_to_capture=(
integration.http_methods_to_capture
if integration
else DEFAULT_HTTP_METHODS_TO_CAPTURE
__call__
) -> cabc.Iterable[bytes]:
"""The WSGI server calls the Flask application object as the
WSGI application. This calls :meth:`wsgi_app`, which can be
wrapped to apply middleware.
"""
return self.wsgi_app(environ, start_response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
wsgi_app
try:
ctx.push()
response = self.full_dispatch_request()
except Exception as e:
error = e
response = self.handle_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^
except: # noqa: B001
error = sys.exc_info()[1]
raise
return response(environ, start_response)
finally:
wsgi_app
ctx = self.request_context(environ)
error: BaseException | None = None
try:
try:
ctx.push()
response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
except Exception as e:
error = e
response = self.handle_exception(e)
except: # noqa: B001
error = sys.exc_info()[1]
full_dispatch_request
request_started.send(self, _async_wrapper=self.ensure_sync)
rv = self.preprocess_request()
if rv is None:
rv = self.dispatch_request()
except Exception as e:
rv = self.handle_user_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
return self.finalize_request(rv)
def finalize_request(
self,
rv: ft.ResponseReturnValue | HTTPException,
full_dispatch_request
try:
request_started.send(self, _async_wrapper=self.ensure_sync)
rv = self.preprocess_request()
if rv is None:
rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^
except Exception as e:
rv = self.handle_user_exception(e)
return self.finalize_request(rv)
def finalize_request(
dispatch_request
and req.method == "OPTIONS"
):
return self.make_default_options_response()
# otherwise dispatch to the handler for that endpoint
view_args: dict[str, t.Any] = req.view_args # type: ignore[assignment]
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
def full_dispatch_request(self) -> Response:
"""Dispatches the request and on top of that performs request
pre and postprocessing as well as HTTP exception catching and
error handling.
convert
path, dirs, files = walked[0]
conversion_input = os.path.join(path, files[0])
else:
conversion_input = conversion_input + '/' + archive_name + '/'
hepdata_converter.convert(conversion_input, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
conversion_output,
kwargs.get('options', {}))
if not os.path.isdir(conversion_output):
output_format = output_format[:-1] if output_format == 'yoda1' else output_format
convert
# if no output was specified create proxy output to which writer can insert data
_output = output
if not _output:
_output = StringIO()
writer.write(parser.parse(input), _output) ^^^^^^^^^^^^^^^^^^^
# if no output was specified return output
if not output:
return _output.getvalue()
parse
with open(table_filepath, 'r') as table_file:
if not os.path.exists(table_filepath):
raise ValueError(
"table file: %s does not exist" % table.data_file)
table_data = yaml.load(table_file, Loader=Loader) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
if not data_file_validator.validate(data=table_data,
file_path=table_filepath):
raise RuntimeError(
"Data file (%s) did not pass validation: %s" %
load
Parse the first YAML document in a stream
and produce the corresponding Python object.
"""
loader = Loader(stream)
try:
return loader.get_single_data() ^^^^^^^^^^^^^^^^^^^^^^^^
finally:
loader.dispose()
def load_all(stream, Loader):
"""
get_single_data
if self.check_node():
return self.construct_document(self.get_node())
def get_single_data(self):
# Ensure that the stream contains a single document and construct it.
node = self.get_single_node() ^^^^^^^^^^^^^^^^^^^^^^
if node is not None:
return self.construct_document(node)
return None
def construct_document(self, node):
yaml._yaml.CParser.get_single_node
yaml._yaml.CParser._compose_document
yaml._yaml.CParser._compose_node
yaml._yaml.CParser._compose_mapping_node
yaml._yaml.CParser._compose_node
yaml._yaml.CParser._compose_sequence_node
yaml._yaml.CParser._compose_node
yaml._yaml.CParser._compose_mapping_node
yaml._yaml.CParser._compose_node
yaml._yaml.CParser._compose_mapping_node
yaml._yaml.CParser._parse_next_event
yaml.parser.ParserError: while parsing a flow mapping in "/tmp/tmpdb3y1_36/xsect_hJetNTex_el/NP_hJetNTex_comb.yaml", line 3, column 12 did not find expected ',' or '}' in "/tmp/tmpdb3y1_36/xsect_hJetNTex_el/NP_hJetNTex_comb.yaml", line 3, column 22
This is the Copy/Paste friendly version of the traceback.
The console is locked and needs to be unlocked by entering the PIN. You can find the PIN printed out on the standard output of your shell that runs the server.