Skip to content

jupyter-server cannot co-habitate with cirq --pre #6500

@pavoljuhas

Description

@pavoljuhas

Description of the issue

In a fresh virtual environment for Python 3.10

$ pip install jupyter jupyter-server
$ pip install --pre cirq
...
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
jupyter-events 0.9.1 requires jsonschema[format-nongpl]>=4.18.0, but you have jsonschema 4.17.3 which is incompatible.
jupyterlab 4.1.4 requires httpx>=0.25.0, but you have httpx 0.23.3 which is incompatible.
jupyterlab-server 2.25.4 requires jsonschema>=4.18.0, but you have jsonschema 4.17.3 which is incompatible.
referencing 0.33.0 requires attrs>=22.2.0, but you have attrs 21.4.0 which is incompatible.

After this jupyter notebook fails to start with TypeError from the referencing package.

An attempt to install jupyter-server with existing notebook requirements fails to resolve a compatible set of packages:

$ pip install -r dev_tools/requirements/notebooks.env.txt jupyter-server
... 30 minutes of trial resolutions ...
ERROR: Exception
pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 200000

Note: jupyter-server can be installed with cirq-core so the incompatible requirement is in some other cirq-something-not-core package.

Proposed Solution

Update package dependencies so they are compatible with jupyter-server requirements.

Cirq version

1.4.0.dev at dc1065d.

Metadata

Metadata

Assignees

Labels

kind/healthFor CI/testing/release process/refactoring/technical debt items

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions