Skip to content

Macro Rendering Error ΒΆ

File: spec.md

FrictionlessException: [schema-error] Schema is not valid: descriptor is not valid (Schema is not valid: names of the fields are not unique)

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/mkdocs_macros/plugin.py", line 527, in render
    return md_template.render(**page_variables)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 102, in top-level template code
  File "/home/runner/work/GMNSpy/GMNSpy/main.py", line 117, in frictionless_schemas
    return document_schemas_to_md(schema_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/GMNSpy/GMNSpy/gmnspy/schema.py", line 134, in document_schemas_to_md
    s = frictionless.Schema(sf)
        ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/frictionless/schema/factory.py", line 20, in __call__
    cls.from_descriptor(descriptor, **options),  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/site-packages/frictionless/metadata/metadata.py", line 187, in from_descriptor
    raise FrictionlessException(error, reasons=errors)
frictionless.exception.FrictionlessException: [schema-error] Schema is not valid: descriptor is not valid (Schema is not valid: names of the fields are not unique)