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

python3 pip is install version 0.1.108 when using any modern version of protobuf or grpcio #78

Open
veqryn opened this issue Dec 10, 2024 · 0 comments

Comments

@veqryn
Copy link

veqryn commented Dec 10, 2024

sabledocs 0.14.822 depends on protobuf==4.21.6,
which means if I want to use a more recent version, I get reverted back to sabledocs 0.1.108

Here is how I am installing sabledocs today:

ENV LANG=C.UTF-8
RUN set -eux; \
    apt update; \
    apt install -y --no-install-recommends \
        python3.12-full=3.12.3-1ubuntu0.3 \
        python3-pip=24.0+dfsg-1ubuntu1.1 \
    ; \
    rm -rf /var/lib/apt/lists/*; \
    python3 -m pip install --upgrade --break-system-packages --force-reinstall \
        protobuf==5.29.1 \
        grpcio==1.67.1 \
        grpcio-tools==1.67.1 \
        sabledocs \
        jinja2==3.1.2

This results in:

#9 0.117 + python3 -m pip install --upgrade --break-system-packages --force-reinstall protobuf==5.29.1 grpcio==1.67.1 grpcio-tools==1.67.1 sabledocs jinja2==3.1.2
#9 0.859 Collecting protobuf==5.29.1
#9 0.971   Downloading protobuf-5.29.1-cp38-abi3-manylinux2014_x86_64.whl.metadata (592 bytes)
#9 1.470 Collecting grpcio==1.67.1
#9 1.490   Downloading grpcio-1.67.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.9 kB)
#9 1.956 Collecting grpcio-tools==1.67.1
#9 1.978   Downloading grpcio_tools-1.67.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.3 kB)
#9 2.067 Collecting sabledocs
#9 2.093   Downloading sabledocs-0.14.822-py3-none-any.whl.metadata (9.2 kB)
#9 2.194 Collecting jinja2==3.1.2
#9 2.229   Downloading Jinja2-3.1.2-py3-none-any.whl.metadata (3.5 kB)
#9 2.444 Collecting setuptools (from grpcio-tools==1.67.1)
#9 2.470   Downloading setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB)
#9 2.582 Collecting MarkupSafe>=2.0 (from jinja2==3.1.2)
#9 2.770   Downloading MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (4.0 kB)
#9 2.929 Collecting Markdown==3.4.1 (from sabledocs)
#9 2.954   Downloading Markdown-3.4.1-py3-none-any.whl.metadata (4.6 kB)
#9 2.981 INFO: pip is looking at multiple versions of sabledocs to determine which version is compatible with other requirements. This could take a while.
#9 2.990 Collecting sabledocs
#9 3.164   Downloading sabledocs-0.14.814-py3-none-any.whl.metadata (9.2 kB)
#9 3.216   Downloading sabledocs-0.14.794-py3-none-any.whl.metadata (9.2 kB)
#9 3.262   Downloading sabledocs-0.13.793-py3-none-any.whl.metadata (9.1 kB)
#9 3.311   Downloading sabledocs-0.13.784-py3-none-any.whl.metadata (9.1 kB)
#9 3.501   Downloading sabledocs-0.13.770-py3-none-any.whl.metadata (9.1 kB)
#9 3.737   Downloading sabledocs-0.13.756-py3-none-any.whl.metadata (9.1 kB)
#9 3.777   Downloading sabledocs-0.13.742-py3-none-any.whl.metadata (9.1 kB)
#9 3.783 INFO: pip is still looking at multiple versions of sabledocs to determine which version is compatible with other requirements. This could take a while.
#9 3.813   Downloading sabledocs-0.13.728-py3-none-any.whl.metadata (9.1 kB)
#9 3.847   Downloading sabledocs-0.12.727-py3-none-any.whl.metadata (8.2 kB)
#9 3.878   Downloading sabledocs-0.12.718-py3-none-any.whl.metadata (7.9 kB)
#9 3.954   Downloading sabledocs-0.12.710-py3-none-any.whl.metadata (7.9 kB)
#9 3.986   Downloading sabledocs-0.11.684-py3-none-any.whl.metadata (7.5 kB)
#9 3.995 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.
#9 4.022   Downloading sabledocs-0.11.670-py3-none-any.whl.metadata (7.5 kB)
#9 4.053   Downloading sabledocs-0.11.656-py3-none-any.whl.metadata (7.5 kB)
#9 4.134   Downloading sabledocs-0.11.648-py3-none-any.whl.metadata (7.5 kB)
#9 4.189   Downloading sabledocs-0.11.598-py3-none-any.whl.metadata (7.5 kB)
#9 4.231   Downloading sabledocs-0.11.581-py3-none-any.whl.metadata (7.5 kB)
#9 4.269   Downloading sabledocs-0.11.567-py3-none-any.whl.metadata (7.5 kB)
#9 4.310   Downloading sabledocs-0.11.547-py3-none-any.whl.metadata (7.9 kB)
#9 4.339   Downloading sabledocs-0.11.533-py3-none-any.whl.metadata (7.9 kB)
#9 4.409   Downloading sabledocs-0.10.519-py3-none-any.whl.metadata (7.9 kB)
#9 4.482   Downloading sabledocs-0.10.505-py3-none-any.whl.metadata (7.9 kB)
#9 4.519   Downloading sabledocs-0.10.498-py3-none-any.whl.metadata (7.9 kB)
#9 4.550   Downloading sabledocs-0.10.486-py3-none-any.whl.metadata (7.9 kB)
#9 4.583   Downloading sabledocs-0.9.479-py3-none-any.whl.metadata (7.7 kB)
#9 4.657   Downloading sabledocs-0.9.449-py3-none-any.whl.metadata (7.7 kB)
#9 4.694   Downloading sabledocs-0.9.437-py3-none-any.whl.metadata (7.7 kB)
#9 4.730   Downloading sabledocs-0.9.430-py3-none-any.whl.metadata (7.7 kB)
#9 4.800   Downloading sabledocs-0.9.408-py3-none-any.whl.metadata (7.7 kB)
#9 4.842   Downloading sabledocs-0.9.375-py3-none-any.whl.metadata (7.7 kB)
#9 4.872   Downloading sabledocs-0.8.355-py3-none-any.whl.metadata (7.0 kB)
#9 4.913   Downloading sabledocs-0.8.347-py3-none-any.whl.metadata (7.0 kB)
#9 4.943   Downloading sabledocs-0.8.339-py3-none-any.whl.metadata (5.7 kB)
#9 4.976   Downloading sabledocs-0.8.325-py3-none-any.whl.metadata (5.4 kB)
#9 5.011   Downloading sabledocs-0.8.264-py3-none-any.whl.metadata (5.4 kB)
#9 5.042   Downloading sabledocs-0.8.252-py3-none-any.whl.metadata (5.4 kB)
#9 5.070   Downloading sabledocs-0.8.246-py3-none-any.whl.metadata (5.4 kB)
#9 5.098   Downloading sabledocs-0.8.240-py3-none-any.whl.metadata (5.4 kB)
#9 5.132   Downloading sabledocs-0.7.230-py3-none-any.whl.metadata (5.4 kB)
#9 5.164   Downloading sabledocs-0.7.226-py3-none-any.whl.metadata (5.4 kB)
#9 5.191   Downloading sabledocs-0.7.217-py3-none-any.whl.metadata (5.4 kB)
#9 5.230   Downloading sabledocs-0.6.208-py3-none-any.whl.metadata (5.2 kB)
#9 5.257   Downloading sabledocs-0.5.204-py3-none-any.whl.metadata (4.9 kB)
#9 5.290   Downloading sabledocs-0.4.198-py3-none-any.whl.metadata (4.9 kB)
#9 5.319   Downloading sabledocs-0.4.192-py3-none-any.whl.metadata (4.9 kB)
#9 5.357   Downloading sabledocs-0.4.186-py3-none-any.whl.metadata (4.9 kB)
#9 5.424   Downloading sabledocs-0.4.170-py3-none-any.whl.metadata (4.9 kB)
#9 5.456   Downloading sabledocs-0.3.156-py3-none-any.whl.metadata (4.9 kB)
#9 5.487   Downloading sabledocs-0.3.150-py3-none-any.whl.metadata (4.9 kB)
#9 5.532   Downloading sabledocs-0.3.146-py3-none-any.whl.metadata (4.8 kB)
#9 5.565   Downloading sabledocs-0.2.138-py3-none-any.whl.metadata (4.2 kB)
#9 5.596   Downloading sabledocs-0.2.134-py3-none-any.whl.metadata (4.2 kB)
#9 5.623   Downloading sabledocs-0.2.130-py3-none-any.whl.metadata (4.2 kB)
#9 5.661   Downloading sabledocs-0.1.126-py3-none-any.whl.metadata (4.2 kB)
#9 5.690   Downloading sabledocs-0.1.114-py3-none-any.whl.metadata (4.1 kB)
#9 5.719   Downloading sabledocs-0.1.108-py3-none-any.whl.metadata (4.0 kB)
#9 5.775 Downloading protobuf-5.29.1-cp38-abi3-manylinux2014_x86_64.whl (319 kB)
#9 5.830    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 319.7/319.7 kB 6.2 MB/s eta 0:00:00
#9 5.860 Downloading grpcio-1.67.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.9 MB)
#9 6.289    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.9/5.9 MB 13.7 MB/s eta 0:00:00
#9 6.312 Downloading grpcio_tools-1.67.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB)
#9 6.484    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 MB 14.2 MB/s eta 0:00:00
#9 6.517 Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
#9 6.534    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 9.5 MB/s eta 0:00:00
#9 6.566 Downloading sabledocs-0.1.108-py3-none-any.whl (44 kB)
#9 6.575    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.9/44.9 kB 7.2 MB/s eta 0:00:00
#9 6.597 Downloading MarkupSafe-3.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23 kB)
#9 6.623 Downloading setuptools-75.6.0-py3-none-any.whl (1.2 MB)
#9 6.726    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 12.3 MB/s eta 0:00:00
#9 6.811 Installing collected packages: setuptools, sabledocs, protobuf, MarkupSafe, grpcio, jinja2, grpcio-tools
#9 6.812   Attempting uninstall: setuptools
#9 6.814     Found existing installation: setuptools 68.1.2
#9 6.815     Uninstalling setuptools-68.1.2:
#9 6.851       Successfully uninstalled setuptools-68.1.2
#9 7.400   Attempting uninstall: MarkupSafe
#9 7.402     Found existing installation: MarkupSafe 2.1.5
#9 7.403     Uninstalling MarkupSafe-2.1.5:
#9 7.410       Successfully uninstalled MarkupSafe-2.1.5
#9 7.668 Successfully installed MarkupSafe-3.0.2 grpcio-1.67.1 grpcio-tools-1.67.1 jinja2-3.1.2 protobuf-5.29.1 sabledocs-0.1.108 setuptools-75.6.0

As you can see, pip decided the only compatible sabledocs is version 0.1.108.

When I change to specify the latest version of sabledocs:

sabledocs==0.14.822

Then I get this error:

#9 0.103 + python3 -m pip install --upgrade --break-system-packages --force-reinstall protobuf==5.29.1 grpcio==1.67.1 grpcio-tools==1.67.1 sabledocs==0.14.822 jinja2==3.1.2
#9 0.870 Collecting protobuf==5.29.1
#9 1.001   Downloading protobuf-5.29.1-cp38-abi3-manylinux2014_x86_64.whl.metadata (592 bytes)
#9 1.491 Collecting grpcio==1.67.1
#9 1.513   Downloading grpcio-1.67.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.9 kB)
#9 1.996 Collecting grpcio-tools==1.67.1
#9 2.016   Downloading grpcio_tools-1.67.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.3 kB)
#9 2.105 Collecting sabledocs==0.14.822
#9 2.127   Downloading sabledocs-0.14.822-py3-none-any.whl.metadata (9.2 kB)
#9 2.193 Collecting jinja2==3.1.2
#9 2.212   Downloading Jinja2-3.1.2-py3-none-any.whl.metadata (3.5 kB)
#9 2.405 Collecting setuptools (from grpcio-tools==1.67.1)
#9 2.423   Downloading setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB)
#9 2.502 Collecting Markdown==3.4.1 (from sabledocs==0.14.822)
#9 2.522   Downloading Markdown-3.4.1-py3-none-any.whl.metadata (4.6 kB)
#9 2.534 INFO: pip is looking at multiple versions of sabledocs to determine which version is compatible with other requirements. This could take a while.
#9 2.537 ERROR: Cannot install grpcio-tools==1.67.1, protobuf==5.29.1 and sabledocs==0.14.822 because these package versions have conflicting dependencies.
#9 2.537
#9 2.537 The conflict is caused by:
#9 2.537     The user requested protobuf==5.29.1
#9 2.537     grpcio-tools 1.67.1 depends on protobuf<6.0dev and >=5.26.1
#9 2.537     sabledocs 0.14.822 depends on protobuf==4.21.6
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

1 participant