Skip to content

fix: pin transitive dependencies to resolve Python 3.10 compatibility (Tested on both conda and venv)#228

Open
AXMonarch wants to merge 4 commits into
metacall:masterfrom
AXMonarch:fix/requirements-python3.10
Open

fix: pin transitive dependencies to resolve Python 3.10 compatibility (Tested on both conda and venv)#228
AXMonarch wants to merge 4 commits into
metacall:masterfrom
AXMonarch:fix/requirements-python3.10

Conversation

@AXMonarch

@AXMonarch AXMonarch commented Feb 20, 2026

Copy link
Copy Markdown

Fixes #227

Description

Two cascading errors prevented the kernel from launching on Python 3.10:

  1. referencing>=0.35 uses TypeVar(default=Any) which is Python 3.13+ only, causing TypeError: TypeVar.__init__() got an unexpected keyword argument 'default'
  2. traitlets was resolving to a version newer than what notebook==6.4.10 was built against, causing TypeError: warn() missing 1 required keyword-only argument: 'stacklevel'
  3. jupyter_server was not pinned at all despite being required by notebook 6.4.x

FIx

Within requirements.txt :

  • Bump typing-extensions to 4.5.0 from 3.10.0.0
  • Remove asyncio==3.4.3
  • Pin traitlets==5.1.1 to match notebook==6.4.10
  • Pin jupyter_server==1.13.5
  • Pin jsonschema==4.17.3 and referencing==0.28.4 to avoid TypeVar(default=) which requires Python 3.13+
  • Pin rpds-py, nbformat, attrs as supporting pins

Tested on

  • Python 3.10, macOS Sequoia 15.1.1
  • Both conda and venv environments

Type of change

  • Bug fix (non-breaking change which fixes an issue)

AXMonarch and others added 4 commits February 20, 2026 16:00
- Bump typing-extensions to 4.5.0 (was 3.10.0.0)
- Remove asyncio==3.4.3 (stdlib, PyPI package is a no-op)
- Pin traitlets==5.1.1 to match notebook==6.4.10
- Pin jupyter_server==1.13.5 (was missing, required by notebook)
- Pin jsonschema==4.17.3 and referencing==0.28.4 to avoid
  TypeVar(default=) which requires Python 3.13+
- Pin rpds-py, nbformat, attrs as supporting pins

Fixes metacall#227
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kernel fails to launch on a Python 3.10 environment with this error : "TypeVar.init() got an unexpected keyword argument 'default'"

1 participant