Skip to content

[POP] Error with jsonschema due wrong Anchor

Following command does not work:

xbonnin@b29119bed125:/pipeline$ pop -ll INFO dingo --help
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/jsonschema/validators.py", line 446, in _validate_reference
    resolved = self._resolver.lookup(ref)
  File "/usr/local/lib/python3.8/site-packages/referencing/_core.py", line 597, in lookup
    retrieved = retrieved.registry.anchor(uri, fragment)
  File "/usr/local/lib/python3.8/site-packages/referencing/_core.py", line 385, in anchor
    raise exceptions.InvalidAnchor(
referencing.exceptions.InvalidAnchor: '#definitions/release' is not a valid anchor, neither as a plain name anchor nor as a JSON Pointer. You may have intended to use '#/definitions/release', as the slash is required *before each segment* of a JSON pointer.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/poppy/core/plugin.py", line 168, in descriptor
    data.read_validate()
  File "/usr/local/lib/python3.8/site-packages/poppy/core/configuration.py", line 101, in read_validate
    jsonschema.validate(
  File "/usr/local/lib/python3.8/site-packages/jsonschema/validators.py", line 1305, in validate
    error = exceptions.best_match(validator.iter_errors(instance))
  File "/usr/local/lib/python3.8/site-packages/jsonschema/exceptions.py", line 444, in best_match
    best = next(errors, None)
  File "/usr/local/lib/python3.8/site-packages/jsonschema/validators.py", line 368, in iter_errors
    for error in errors:
  File "/usr/local/lib/python3.8/site-packages/jsonschema/_validators.py", line 305, in properties
    yield from validator.descend(
  File "/usr/local/lib/python3.8/site-packages/jsonschema/validators.py", line 416, in descend
    for error in errors:
  File "/usr/local/lib/python3.8/site-packages/jsonschema/_validators.py", line 284, in ref
    yield from validator._validate_reference(ref=ref, instance=instance)
  File "/usr/local/lib/python3.8/site-packages/jsonschema/validators.py", line 448, in _validate_reference
    raise exceptions._WrappedReferencingError(err)
jsonschema.exceptions._WrappedReferencingError: InvalidAnchor: '#definitions/release' is not a valid anchor, neither as a plain name anchor nor as a JSON Pointer. You may have intended to use '#/definitions/release', as the slash is required *before each segment* of a JSON pointer.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/pop", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/site-packages/poppy/pop/scripts/scripts.py", line 244, in main
    Command.manager.generate(options)
  File "/usr/local/lib/python3.8/site-packages/poppy/core/command.py", line 106, in generate
    self.generation_start(options)
  File "/usr/local/lib/python3.8/site-packages/poppy/core/generic/signals.py", line 23, in __call__
    func(*args, **kargs)
  File "/usr/local/lib/python3.8/site-packages/poppy/pop/scripts/scripts.py", line 127, in setup
    load_plugins(plugins)
  File "/usr/local/lib/python3.8/site-packages/poppy/pop/scripts/scripts.py", line 71, in load_plugins
    Plugin(plugin, module)
  File "/usr/local/lib/python3.8/site-packages/poppy/core/generic/metaclasses.py", line 73, in __call__
    instance = super(ManagerMeta, cls).__call__(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/poppy/core/plugin.py", line 42, in __init__
    self.module = module
  File "/usr/local/lib/python3.8/site-packages/poppy/core/plugin.py", line 213, in module
    self.tasks
  File "/usr/local/lib/python3.8/site-packages/poppy/core/generic/cache.py", line 27, in __get__
    result = self.func(instance)
  File "/usr/local/lib/python3.8/site-packages/poppy/core/plugin.py", line 116, in tasks
    descriptor = self.descriptor
  File "/usr/local/lib/python3.8/site-packages/poppy/core/generic/cache.py", line 27, in __get__
    result = self.func(instance)
  File "/usr/local/lib/python3.8/site-packages/poppy/core/plugin.py", line 170, in descriptor
    raise PluginError(
poppy.core.plugin.PluginError: InvalidAnchor: '#definitions/release' is not a valid anchor, neither as a plain name anchor nor as a JSON Pointer. You may have intended to use '#/definitions/release', as the slash is required *before each segment* of a JSON pointer.
Cannot read JSON descriptor of plugin poppy.pop

(Tested with RODP 1.24.0 in Docker Debian)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information