[Bug 266855] devel/py-nbformat: 5.6.1 fails to open ipynb files because of missing nbformat.v*.schema.json files

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 12 Oct 2022 19:01:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266855

--- Comment #6 from p5B2EA84B3@t-online.de ---
Trying to create a new Notebook fails too:

Creating Notebook Failed
An error occurred while creating a new notebook.

Traceback (most recent call last): File
"/usr/local/lib/python3.9/site-packages/tornado/web.py", line 1713, in _execute
result = await result File
"/usr/local/lib/python3.9/site-packages/tornado/gen.py", line 776, in run
yielded = self.gen.throw(*exc_info) # type: ignore File
"/usr/local/lib/python3.9/site-packages/notebook/services/contents/handlers.py",
line 212, in post yield self._new_untitled(path, type=type, ext=ext) File
"/usr/local/lib/python3.9/site-packages/tornado/gen.py", line 769, in run value
= future.result() File "/usr/local/lib/python3.9/site-packages/tornado/gen.py",
line 234, in wrapper yielded = ctx_run(next, result) File
"/usr/local/lib/python3.9/site-packages/notebook/services/contents/handlers.py",
line 161, in _new_untitled model = yield
maybe_future(self.contents_manager.new_untitled(path=path, type=type, ext=ext))
File
"/usr/local/lib/python3.9/site-packages/notebook/services/contents/manager.py",
line 395, in new_untitled return self.new(model, path) File
"/usr/local/lib/python3.9/site-packages/notebook/services/contents/manager.py",
line 414, in new model['content'] = new_notebook() File
"/usr/local/lib/python3.9/site-packages/nbformat/v4/nbbase.py", line 170, in
new_notebook validate(nb) File
"/usr/local/lib/python3.9/site-packages/nbformat/v4/nbbase.py", line 40, in
validate return validate_orig(node, ref=ref, version=nbformat) File
"/usr/local/lib/python3.9/site-packages/nbformat/validator.py", line 494, in
validate for error in iter_validate( File
"/usr/local/lib/python3.9/site-packages/nbformat/validator.py", line 612, in
iter_validate validator = get_validator(version, version_minor,
relax_add_props=relax_add_props) File
"/usr/local/lib/python3.9/site-packages/nbformat/validator.py", line 65, in
get_validator schema_json = _get_schema_json(v, version=version,
version_minor=version_minor) File
"/usr/local/lib/python3.9/site-packages/nbformat/validator.py", line 104, in
_get_schema_json with open(schema_path) as f: FileNotFoundError: [Errno 2] No
such file or directory:
'/usr/local/lib/python3.9/site-packages/nbformat/v4/nbformat.v4.5.schema.json'

-- 
You are receiving this mail because:
You are on the CC list for the bug.