Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pavoljuhas opened this issue Mar 14, 2024 · 3 comments
Closed

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

pavoljuhas opened this issue Mar 14, 2024 · 3 comments
Assignees
Labels
kind/health For CI/testing/release process/refactoring/technical debt items

Comments

@pavoljuhas
Copy link
Collaborator

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.

@pavoljuhas pavoljuhas added the kind/health For CI/testing/release process/refactoring/technical debt items label Mar 14, 2024
@pavoljuhas pavoljuhas self-assigned this Mar 14, 2024
@maffoo
Copy link
Contributor

maffoo commented Mar 14, 2024

Typically we don't install cirq but rather cirq-core, cirq-google, etc to bring in a minimal set of dependencies. I suspect it's one of the other cirq-* packages that is actually causing a problem here.

@NoureldinYosri
Copy link
Collaborator

I installed the subpackages one by one, it looks like the issue comes from cirq-rigetti which depends on an old version of pyquil<4.0 which has the transitive dependency on old jupyter. pyquil is no at 4.8 so I think changing this line

pyquil>=3.2.0,<4.0.0

to pyquil~4.8.0 should fix the issue

@jhgoebbert
Copy link

better you check this PR: #6281

Yash-10 pushed a commit to Yash-10/Cirq that referenced this issue Jun 12, 2024
- Add support for Kraus operators, POVMs and parametric defgates
- Update quil->cirq conversion

Fixes quantumlib#6500
Partially implements quantumlib#6464
vmscw pushed a commit to Sonderfall/Cirq that referenced this issue Jun 14, 2024
- Add support for Kraus operators, POVMs and parametric defgates
- Update quil->cirq conversion

Fixes quantumlib#6500
Partially implements quantumlib#6464
pavoljuhas pushed a commit to pavoljuhas/Cirq that referenced this issue Jun 26, 2024
- Add support for Kraus operators, POVMs and parametric defgates
- Update quil->cirq conversion

Fixes quantumlib#6500
Partially implements quantumlib#6464
pavoljuhas pushed a commit to pavoljuhas/Cirq that referenced this issue Jun 26, 2024
- Add support for Kraus operators, POVMs and parametric defgates
- Update quil->cirq conversion

Fixes quantumlib#6500
Partially implements quantumlib#6464
pavoljuhas pushed a commit to pavoljuhas/Cirq that referenced this issue Jun 26, 2024
- Add support for Kraus operators, POVMs and parametric defgates
- Update quil->cirq conversion

Fixes quantumlib#6500
Partially implements quantumlib#6464
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/health For CI/testing/release process/refactoring/technical debt items
Projects
None yet
Development

No branches or pull requests

4 participants