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

Encountered problems pip installing at two different levels. #2150

Open
oldspammer opened this issue May 19, 2024 · 1 comment
Open

Encountered problems pip installing at two different levels. #2150

oldspammer opened this issue May 19, 2024 · 1 comment

Comments

@oldspammer
Copy link

Copilot advised me to try cython, and got me to also install jupyter. When installing Jupyter, it was having extreme troubles trying to get nbconvert to also install properly. I am on Windows 10 Professional, latest Windows update as of right now. I have python 3.11 installed as of a couple of weeks ago. For about 20 hours, it was working on installing nbconvert of various versions when I got sick of waiting for the thing to get back to the command prompt. I am running MS VS MSVC++ 2022 professional preview edition. I then tried to pip install nbconvert.

Here are the diagnostics that claim a problem was encountered. I am running this at the cmd prompt of a regular user windows 10 professional of the latest windows update, etc.

Sun 05/19/2024 13:08:29.70
C:\Users\AverMedia>pip install nbconvert
Collecting nbconvert
Using cached nbconvert-7.16.4-py3-none-any.whl.metadata (8.5 kB)
Collecting beautifulsoup4 (from nbconvert)
Using cached beautifulsoup4-4.12.3-py3-none-any.whl.metadata (3.8 kB)
Collecting bleach!=5.0.0 (from nbconvert)
Using cached bleach-6.1.0-py3-none-any.whl.metadata (30 kB)
Collecting defusedxml (from nbconvert)
Using cached defusedxml-0.7.1-py2.py3-none-any.whl.metadata (32 kB)
Collecting jinja2>=3.0 (from nbconvert)
Using cached jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Collecting jupyter-core>=4.7 (from nbconvert)
Using cached jupyter_core-5.7.2-py3-none-any.whl.metadata (3.4 kB)
Collecting jupyterlab-pygments (from nbconvert)
Using cached jupyterlab_pygments-0.3.0-py3-none-any.whl.metadata (4.4 kB)
Collecting markupsafe>=2.0 (from nbconvert)
Using cached MarkupSafe-2.1.5.tar.gz (19 kB)
Preparing metadata (setup.py) ... done
Collecting mistune<4,>=2.0.3 (from nbconvert)
Using cached mistune-3.0.2-py3-none-any.whl.metadata (1.7 kB)
Collecting nbclient>=0.5.0 (from nbconvert)
Using cached nbclient-0.10.0-py3-none-any.whl.metadata (7.8 kB)
Collecting nbformat>=5.7 (from nbconvert)
Using cached nbformat-5.10.4-py3-none-any.whl.metadata (3.6 kB)
Collecting packaging (from nbconvert)
Using cached packaging-24.0-py3-none-any.whl.metadata (3.2 kB)
Collecting pandocfilters>=1.4.1 (from nbconvert)
Using cached pandocfilters-1.5.1-py2.py3-none-any.whl.metadata (9.0 kB)
Collecting pygments>=2.4.1 (from nbconvert)
Using cached pygments-2.18.0-py3-none-any.whl.metadata (2.5 kB)
Collecting tinycss2 (from nbconvert)
Using cached tinycss2-1.3.0-py3-none-any.whl.metadata (3.0 kB)
Collecting traitlets>=5.1 (from nbconvert)
Using cached traitlets-5.14.3-py3-none-any.whl.metadata (10 kB)
Collecting six>=1.9.0 (from bleach!=5.0.0->nbconvert)
Using cached six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting webencodings (from bleach!=5.0.0->nbconvert)
Using cached webencodings-0.5.1-py2.py3-none-any.whl.metadata (2.1 kB)
Collecting platformdirs>=2.5 (from jupyter-core>=4.7->nbconvert)
Using cached platformdirs-4.2.2-py3-none-any.whl.metadata (11 kB)
INFO: pip is looking at multiple versions of jupyter-core to determine which version is compatible with other requirements. This could take a while.
Collecting jupyter-core>=4.7 (from nbconvert)
Using cached jupyter_core-5.7.1-py3-none-any.whl.metadata (3.4 kB)
Using cached jupyter_core-5.7.0-py3-none-any.whl.metadata (3.4 kB)
Using cached jupyter_core-5.6.1-py3-none-any.whl.metadata (3.4 kB)
Using cached jupyter_core-5.5.1-py3-none-any.whl.metadata (3.4 kB)
Using cached jupyter_core-5.5.0-py3-none-any.whl.metadata (3.4 kB)
Using cached jupyter_core-5.4.0-py3-none-any.whl.metadata (3.4 kB)
Using cached jupyter_core-5.3.2-py3-none-any.whl.metadata (3.4 kB)
INFO: pip is still looking at multiple versions of jupyter-core to determine which version is compatible with other requirements. This could take a while.
Using cached jupyter_core-5.3.1-py3-none-any.whl.metadata (3.4 kB)
Using cached jupyter_core-5.3.0-py3-none-any.whl.metadata (3.4 kB)
Using cached jupyter_core-5.2.0-py3-none-any.whl.metadata (5.1 kB)
Using cached jupyter_core-5.1.5-py3-none-any.whl.metadata (5.1 kB)
Using cached jupyter_core-5.1.4-py3-none-any.whl.metadata (5.1 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
Using cached jupyter_core-5.1.3-py3-none-any.whl.metadata (5.1 kB)
Using cached jupyter_core-5.1.2-py3-none-any.whl.metadata (5.1 kB)
Using cached jupyter_core-5.1.1-py3-none-any.whl.metadata (4.9 kB)
Using cached jupyter_core-5.1.0-py3-none-any.whl.metadata (4.9 kB)
Using cached jupyter_core-5.0.0-py3-none-any.whl.metadata (4.8 kB)
Using cached jupyter_core-4.12.0-py3-none-any.whl.metadata (4.7 kB)
Using cached jupyter_core-4.11.2-py3-none-any.whl.metadata (4.7 kB)
Using cached jupyter_core-4.11.1-py3-none-any.whl.metadata (4.7 kB)
Using cached jupyter_core-4.10.0-py3-none-any.whl.metadata (1.4 kB)
Using cached jupyter_core-4.9.2-py3-none-any.whl.metadata (870 bytes)
Using cached jupyter_core-4.9.1-py3-none-any.whl.metadata (870 bytes)
Using cached jupyter_core-4.9.0-py3-none-any.whl.metadata (870 bytes)
Using cached jupyter_core-4.8.2-py3-none-any.whl.metadata (870 bytes)
Using cached jupyter_core-4.8.1-py3-none-any.whl.metadata (870 bytes)
Using cached jupyter_core-4.8.0-py3-none-any.whl.metadata (870 bytes)
Using cached jupyter_core-4.7.1-py3-none-any.whl.metadata (759 bytes)
Using cached jupyter_core-4.7.0-py3-none-any.whl.metadata (759 bytes)
Collecting nbconvert
Using cached nbconvert-7.16.3-py3-none-any.whl.metadata (8.2 kB)
Using cached nbconvert-7.16.2-py3-none-any.whl.metadata (8.0 kB)
Using cached nbconvert-7.16.1-py3-none-any.whl.metadata (8.0 kB)
Using cached nbconvert-7.16.0-py3-none-any.whl.metadata (7.7 kB)
Using cached nbconvert-7.15.0-py3-none-any.whl.metadata (7.7 kB)
Using cached nbconvert-7.14.2-py3-none-any.whl.metadata (7.7 kB)
Using cached nbconvert-7.14.1-py3-none-any.whl.metadata (7.7 kB)
Using cached nbconvert-7.14.0-py3-none-any.whl.metadata (7.7 kB)
Using cached nbconvert-7.13.1-py3-none-any.whl.metadata (7.7 kB)
Using cached nbconvert-7.13.0-py3-none-any.whl.metadata (7.7 kB)
Using cached nbconvert-7.12.0-py3-none-any.whl.metadata (7.7 kB)
Using cached nbconvert-7.11.0-py3-none-any.whl.metadata (7.7 kB)
Using cached nbconvert-7.10.0-py3-none-any.whl.metadata (7.8 kB)
Using cached nbconvert-7.9.2-py3-none-any.whl.metadata (7.9 kB)
Using cached nbconvert-7.9.1-py3-none-any.whl.metadata (7.9 kB)
Using cached nbconvert-7.9.0-py3-none-any.whl.metadata (7.9 kB)
Using cached nbconvert-7.8.0-py3-none-any.whl.metadata (8.0 kB)
Using cached nbconvert-7.7.4-py3-none-any.whl.metadata (8.0 kB)
Using cached nbconvert-7.7.3-py3-none-any.whl.metadata (8.0 kB)
Using cached nbconvert-7.7.2-py3-none-any.whl.metadata (8.0 kB)
Using cached nbconvert-7.7.1-py3-none-any.whl.metadata (8.0 kB)
Using cached nbconvert-7.7.0-py3-none-any.whl.metadata (8.0 kB)
Using cached nbconvert-7.6.0-py3-none-any.whl.metadata (7.9 kB)
Using cached nbconvert-7.5.0-py3-none-any.whl.metadata (7.9 kB)
Collecting mistune<3,>=2.0.3 (from nbconvert)
Using cached mistune-2.0.5-py2.py3-none-any.whl.metadata (1.5 kB)
Collecting nbconvert
Using cached nbconvert-7.4.0-py3-none-any.whl.metadata (7.9 kB)
Using cached nbconvert-7.3.1-py3-none-any.whl.metadata (8.1 kB)
Using cached nbconvert-7.3.0-py3-none-any.whl.metadata (8.1 kB)
Using cached nbconvert-7.2.10-py3-none-any.whl.metadata (8.0 kB)
Using cached nbconvert-7.2.9-py3-none-any.whl.metadata (8.3 kB)
Using cached nbconvert-7.2.8-py3-none-any.whl.metadata (8.3 kB)
Using cached nbconvert-7.2.7-py3-none-any.whl.metadata (8.3 kB)
Using cached nbconvert-7.2.6-py3-none-any.whl.metadata (8.3 kB)
Using cached nbconvert-7.2.5-py3-none-any.whl.metadata (9.1 kB)
Using cached nbconvert-7.2.4-py3-none-any.whl.metadata (9.1 kB)
Using cached nbconvert-7.2.3-py3-none-any.whl.metadata (9.1 kB)
Using cached nbconvert-7.2.2-py3-none-any.whl.metadata (9.1 kB)
Using cached nbconvert-7.2.1-py3-none-any.whl.metadata (9.1 kB)
Using cached nbconvert-7.1.0-py3-none-any.whl.metadata (9.0 kB)
Using cached nbconvert-7.0.0-py3-none-any.whl.metadata (9.2 kB)
Collecting lxml (from nbconvert)
Using cached lxml-5.2.2.tar.gz (3.7 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting nbconvert
Using cached nbconvert-6.5.4-py3-none-any.whl.metadata (6.0 kB)
Collecting entrypoints>=0.2.2 (from nbconvert)
Using cached entrypoints-0.4-py3-none-any.whl.metadata (2.6 kB)
Collecting mistune<2,>=0.8.1 (from nbconvert)
Using cached mistune-0.8.4-py2.py3-none-any.whl.metadata (8.5 kB)
Collecting nbconvert
Using cached nbconvert-6.5.3-py3-none-any.whl.metadata (6.0 kB)
Using cached nbconvert-6.5.2-py3-none-any.whl.metadata (6.0 kB)
Using cached nbconvert-6.5.1-py3-none-any.whl.metadata (6.0 kB)
Using cached nbconvert-6.5.0-py3-none-any.whl.metadata (6.0 kB)
Using cached nbconvert-6.4.5-py3-none-any.whl.metadata (5.9 kB)
Collecting testpath (from nbconvert)
Using cached testpath-0.6.0-py3-none-any.whl.metadata (1.1 kB)
Collecting nbclient<0.6.0,>=0.5.0 (from nbconvert)
Using cached nbclient-0.5.13-py3-none-any.whl.metadata (5.0 kB)
Collecting jupyter-core (from nbconvert)
Using cached jupyter_core-4.6.3-py2.py3-none-any.whl.metadata (850 bytes)
Using cached jupyter_core-4.6.2-py2.py3-none-any.whl.metadata (850 bytes)
Using cached jupyter_core-4.6.1-py2.py3-none-any.whl.metadata (941 bytes)
Using cached jupyter_core-4.6.0-py2.py3-none-any.whl.metadata (941 bytes)
Using cached jupyter_core-4.5.0-py2.py3-none-any.whl.metadata (884 bytes)
Collecting jupyter-client>=6.1.5 (from nbclient<0.6.0,>=0.5.0->nbconvert)
Using cached jupyter_client-8.6.1-py3-none-any.whl.metadata (8.3 kB)
Collecting nest-asyncio (from nbclient<0.6.0,>=0.5.0->nbconvert)
Using cached nest_asyncio-1.6.0-py3-none-any.whl.metadata (2.8 kB)
Collecting fastjsonschema>=2.15 (from nbformat>=5.7->nbconvert)
Downloading fastjsonschema-2.19.1-py3-none-any.whl.metadata (2.1 kB)
Collecting jsonschema>=2.6 (from nbformat>=5.7->nbconvert)
Downloading jsonschema-4.22.0-py3-none-any.whl.metadata (8.2 kB)
Collecting nbformat>=4.4 (from nbconvert)
Downloading nbformat-5.10.3-py3-none-any.whl.metadata (3.6 kB)
Collecting soupsieve>1.2 (from beautifulsoup4->nbconvert)
Downloading soupsieve-2.5-py3-none-any.whl.metadata (4.7 kB)
Collecting attrs>=22.2.0 (from jsonschema>=2.6->nbformat>=5.7->nbconvert)
Using cached attrs-23.2.0-py3-none-any.whl.metadata (9.5 kB)
Collecting jsonschema-specifications>=2023.03.6 (from jsonschema>=2.6->nbformat>=5.7->nbconvert)
Downloading jsonschema_specifications-2023.12.1-py3-none-any.whl.metadata (3.0 kB)
Collecting referencing>=0.28.4 (from jsonschema>=2.6->nbformat>=5.7->nbconvert)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/b7/59/2056f61236782a2c86b33906c025d4f4a0b17be0161b63b70fd9e8775d36/referencing-0.35.1-py3-none-any.whl.metadata
Downloading referencing-0.35.1-py3-none-any.whl.metadata (2.8 kB)
Collecting rpds-py>=0.7.1 (from jsonschema>=2.6->nbformat>=5.7->nbconvert)
Downloading rpds_py-0.18.1.tar.gz (25 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [6 lines of output]

  Cargo, the Rust package manager, is not installed or is not on PATH.
  This package requires Rust and Cargo to compile extensions. Install it through
  the system's package manager or via https://rustup.rs/

  Checking for Rust toolchain....
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Sun 05/19/2024 13:10:45.92
C:\Users\AverMedia>

The Copilot AI was provided this same information, and it suggested that I install Rust, and Cargo to get this thing going, but why should I have to do that?

@takluyver
Copy link
Member

It appears that for some reason it didn't find the pre-built packages which exist for rpds-py, so it fell back to trying to build from source. I'm not sure why from your description, though - there are wheels for Python 3.11 on Windows.

It also looks like something went wrong with dependency resolution - it's going back through many versions of nbconvert & jupyter_core trying to find a set of versions that all claim to be compatible. This is almost certainly the wrong thing to do, but resolving big webs of dependency constraints is hard. If you see this again, try telling it explicitly to install the latest version (pip install nbconvert==7.16.4), which might at least get it to tell you which packages seem to be incompatible.

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

No branches or pull requests

2 participants