Project-MONAI / Project-MONAI/tutorials

TypeError: create.<locals>.Validator.__init__() got an unexpected keyword argument 'registry'

Open
#1,807 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Jupyter Notebook
Stars
2.5k
Forks
803
Avg merge
6d 22h
Merged PRs (30d)
3

Description

[2024-09-01T16:26:05.898Z] Running ./pathology/tumor_detection/ignite/profiling_camelyon_pipeline.ipynb
[2024-09-01T16:26:05.898Z] Checking PEP8 compliance...
[2024-09-01T16:26:06.154Z] Traceback (most recent call last):
[2024-09-01T16:26:06.154Z]   File "/usr/local/bin/jupytext", line 5, in <module>
[2024-09-01T16:26:06.154Z]     from jupytext.cli import jupytext
[2024-09-01T16:26:06.154Z]   File "/usr/local/lib/python3.10/dist-packages/jupytext/__init__.py", line 9, in <module>
[2024-09-01T16:26:06.154Z]     from .contentsmanager import build_jupytext_contents_manager_class
[2024-09-01T16:26:06.154Z]   File "/usr/local/lib/python3.10/dist-packages/jupytext/contentsmanager.py", line 616, in <module>
[2024-09-01T16:26:06.154Z]     from jupyter_server.services.contents.largefilemanager import LargeFileManager
[2024-09-01T16:26:06.154Z]   File "/usr/local/lib/python3.10/dist-packages/jupyter_server/services/contents/largefilemanager.py", line 7, in <module>
[2024-09-01T16:26:06.154Z]     from jupyter_server.services.contents.filemanager import (
[2024-09-01T16:26:06.154Z]   File "/usr/local/lib/python3.10/dist-packages/jupyter_server/services/contents/filemanager.py", line 36, in <module>
[2024-09-01T16:26:06.154Z]     from .manager import AsyncContentsManager, ContentsManager, copy_pat
[2024-09-01T16:26:06.154Z]   File "/usr/local/lib/python3.10/dist-packages/jupyter_server/services/contents/manager.py", line 16, in <module>
[2024-09-01T16:26:06.154Z]     from jupyter_events import EventLogger
[2024-09-01T16:26:06.154Z]   File "/usr/local/lib/python3.10/dist-packages/jupyter_events/__init__.py", line 3, in <module>
[2024-09-01T16:26:06.154Z]     from .logger import EVENTS_METADATA_VERSION, EventLogger
[2024-09-01T16:26:06.154Z]   File "/usr/local/lib/python3.10/dist-packages/jupyter_events/logger.py", line 19, in <module>
[2024-09-01T16:26:06.154Z]     from .schema import SchemaType
[2024-09-01T16:26:06.154Z]   File "/usr/local/lib/python3.10/dist-packages/jupyter_events/schema.py", line 18, in <module>
[2024-09-01T16:26:06.154Z]     from .validators import draft7_format_checker, validate_schema
[2024-09-01T16:26:06.154Z]   File "/usr/local/lib/python3.10/dist-packages/jupyter_events/validators.py", line 44, in <module>
[2024-09-01T16:26:06.154Z]     JUPYTER_EVENTS_SCHEMA_VALIDATOR = Draft7Validator(
[2024-09-01T16:26:06.154Z] TypeError: create.<locals>.Validator.__init__() got an unexpected keyword argument 'registry'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ./pathology/tumor_detection/ignite/profiling_camelyon_pipeline.ipynb run and the /usr/local/bin/jupytext import traceback. Trace the jupyter_server and jupyter_events imports through the reported Validator initialization, then rerun the notebook's PEP8 check. Done means the command completes without the TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.