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

[Report] pypi镜像 HTTP error 403 Client Error: Forbidden for url #40

Closed
leixiao-nv opened this issue Feb 2, 2023 · 3 comments
Closed

Comments

@leixiao-nv
Copy link

leixiao-nv commented Feb 2, 2023

intro

pypi镜像遇到报错:

  ERROR: HTTP error 403 while getting https://mirrors.cqu.edu.cn/pypi/web/packages/c9/cd/5d77845520ea6f3c96b6121ddba7068f9f1b789f4a534005a29cce829804/jax-0.4.2.tar.gz#sha256=d561d431f1662a3888eae73818a53c280fba405c13442a32ac8238dc7e5dcca4 (from https://mirrors.cqu.edu.cn/pypi/web/simple/jax/) (requires-python:>=3.8)
ERROR: Could not install requirement jax from https://mirrors.cqu.edu.cn/pypi/web/packages/c9/cd/5d77845520ea6f3c96b6121ddba7068f9f1b789f4a534005a29cce829804/jax-0.4.2.tar.gz#sha256=d561d431f1662a3888eae73818a53c280fba405c13442a32ac8238dc7e5dcca4 (from secretflow) because of HTTP error 403 Client Error: Forbidden for url: https://mirrors.cqu.edu.cn/pypi/web/packages/c9/cd/5d77845520ea6f3c96b6121ddba7068f9f1b789f4a534005a29cce829804/jax-0.4.2.tar.gz for URL https://mirrors.cqu.edu.cn/pypi/web/packages/c9/cd/5d77845520ea6f3c96b6121ddba7068f9f1b789f4a534005a29cce829804/jax-0.4.2.tar.gz#sha256=d561d431f1662a3888eae73818a53c280fba405c13442a32ac8238dc7e5dcca4 (from https://mirrors.cqu.edu.cn/pypi/web/simple/jax/) (requires-python:>=3.8)

重试后上面的问题没有出现,但又报下面错误:

  ERROR: HTTP error 403 while getting https://mirrors.cqu.edu.cn/pypi/web/packages/4e/8d/01035d9b56893bd3b5d6eb4505d3ed1383d124b1c9c2b6024c175681c64b/aiobotocore-2.1.2.tar.gz#sha256=00fd7f43cc0484d8ed274fd0be492aa16a7fea679dbea96a602bb722ca4c2d22 (from https://mirrors.cqu.edu.cn/pypi/web/simple/aiobotocore/) (requires-python:>=3.6)
ERROR: Could not install requirement aiobotocore~=2.1.0 from https://mirrors.cqu.edu.cn/pypi/web/packages/4e/8d/01035d9b56893bd3b5d6eb4505d3ed1383d124b1c9c2b6024c175681c64b/aiobotocore-2.1.2.tar.gz#sha256=00fd7f43cc0484d8ed274fd0be492aa16a7fea679dbea96a602bb722ca4c2d22 (from s3fs==2022.1.0->secretflow) because of HTTP error 403 Client Error: Forbidden for url: https://mirrors.cqu.edu.cn/pypi/web/packages/4e/8d/01035d9b56893bd3b5d6eb4505d3ed1383d124b1c9c2b6024c175681c64b/aiobotocore-2.1.2.tar.gz for URL https://mirrors.cqu.edu.cn/pypi/web/packages/4e/8d/01035d9b56893bd3b5d6eb4505d3ed1383d124b1c9c2b6024c175681c64b/aiobotocore-2.1.2.tar.gz#sha256=00fd7f43cc0484d8ed274fd0be492aa16a7fea679dbea96a602bb722ca4c2d22 (from https://mirrors.cqu.edu.cn/pypi/web/simple/aiobotocore/) (requires-python:>=3.6)

how to reproduce this bug

pypi镜像这个403的问题遇到好几次了,重试也不是每次都出现

通过如下dockerfile构建镜像时出现:

FROM python:3.8-slim

RUN pip config set global.index-url https://mirrors.cqu.edu.cn/pypi/web/simple
RUN pip install -U secretflow && \
    pip uninstall -y secretflow-ray
#    pip install -U https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-3.0.0.dev0-cp38-cp38-manylinux2014_x86_64.whl

RUN pip install -U 'ray[all]'

RUN pip install ipython && \
    pip install redis

WORKDIR /workspace

tasks to do

@leixiao-nv
Copy link
Author

Collecting jax
  ERROR: HTTP error 403 while getting https://mirrors.cqu.edu.cn/pypi/web/packages/c9/cd/5d77845520ea6f3c96b6121ddba7068f9f1b789f4a534005a29cce829804/jax-0.4.2.tar.gz#sha256=d561d431f1662a3888eae73818a53c280fba405c13442a32ac8238dc7e5dcca4 (from https://mirrors.cqu.edu.cn/pypi/web/simple/jax/) (requires-python:>=3.8)
ERROR: Could not install requirement jax from https://mirrors.cqu.edu.cn/pypi/web/packages/c9/cd/5d77845520ea6f3c96b6121ddba7068f9f1b789f4a534005a29cce829804/jax-0.4.2.tar.gz#sha256=d561d431f1662a3888eae73818a53c280fba405c13442a32ac8238dc7e5dcca4 (from secretflow) because of HTTP error 403 Client Error: Forbidden for url: https://mirrors.cqu.edu.cn/pypi/web/packages/c9/cd/5d77845520ea6f3c96b6121ddba7068f9f1b789f4a534005a29cce829804/jax-0.4.2.tar.gz for URL https://mirrors.cqu.edu.cn/pypi/web/packages/c9/cd/5d77845520ea6f3c96b6121ddba7068f9f1b789f4a534005a29cce829804/jax-0.4.2.tar.gz#sha256=d561d431f1662a3888eae73818a53c280fba405c13442a32ac8238dc7e5dcca4 (from https://mirrors.cqu.edu.cn/pypi/web/simple/jax/) (requires-python:>=3.8)

重试了几次,都报这个错

@weearc
Copy link
Contributor

weearc commented Feb 2, 2023

无法复现,请检查网络连接状况

@Hagb
Copy link
Member

Hagb commented Feb 2, 2023

感谢反馈!能够复现到这个现象。我们先前因为磁盘空间的问题,移除了 PyPI 的镜像,并设置成了反向代理。
推荐校外用户使用其他开源软件镜像站的 PyPI 镜像。现在来自校外对 PyPI 镜像的请求会被重定向到北京外国语大学开源软件镜像站,问题应该不会再出现。

@weearc weearc pinned this issue Apr 27, 2023
@cqumirror cqumirror locked as resolved and limited conversation to collaborators Apr 27, 2023
@weearc weearc closed this as not planned Won't fix, can't repro, duplicate, stale Jan 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants