简体   繁体   English

devpi 在访问镜像链接以从 s3 下载时用 & 替换 &

[英]devpi replacing & with & while accessing mirror link to download from s3

I am trying to use dockerized devpi to mirror my organization's private pypi(pypicloud) hosted using a s3 bucket.我正在尝试使用dockerized devpi来镜像我组织的使用 s3 存储桶托管的私有 pypi(pypicloud)。 The simple index is visible but when I try to install one of the packages listed, I get a 403 from S3.简单索引是可见的,但是当我尝试安装列出的软件包之一时,我从 S3 得到 403。 Initially I thought it to be a permissions issue, but on comparing the download URL from direct pip install from private pypi (which works fine) and the URL from devpi(local mirror) pip install, I see that all the & between the parameters like Signature, Expires and AWSAccessKeyId have been replaced by &最初我认为这是一个权限问题,但是在比较来自私有 pypi(工作正常)的直接 pip install 的下载 URL 和来自 devpi(本地镜像)pip install 的 URL 时,我看到参数之间的所有& Signature、Expires 和 AWSAccessKeyId 已被替换为&

On manually replacing these &在手动替换这些& back with & , the URL works perfectly and I can download the package.返回& ,该 URL 完美运行,我可以下载该软件包。 My question is, how to fix the issue within devpi or any other alternatives to be explored for mirroring a remote pypi repository.我的问题是,如何解决 devpi 或任何其他要探索的用于镜像远程 pypi 存储库的替代方案中的问题。

这是通过按照 devpi 团队的建议将 devpi 版本更新为最新版本来解决的: https : //github.com/devpi/devpi/issues/762

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM