暗语被打破了

2024-04-29 10:16:40 发布

您现在位置:Python中文网/ 问答频道 /正文

这个周末,我们的docker形象崩溃了,因为它不能再建造了。在查看统计数据时,我看到了这一行:

crypt_blowfish-1.2/crypt.h:17:23: fatal error: gnu-crypt.h: No such file or directory

更详细地说:

^{pr2}$

我们的实现与使用bcrypt的包cryptacular一起工作。上周所有的软件包都没有更新,我不知道从哪里开始。在

作为附加信息,错误发生在Dockerfile的这个块中

RUN apt-get install -y build-essential libfontconfig && \
    pip install -q -U pip && \
    pip install -q -r requirements.txt && \
    apt-get remove -y --purge build-essential && \
    apt-get autoremove -y && \
    apt-get clean -y

其中requirements.txt使用cryptacular==1.4.1

编辑:我们正在处理python:3.6-slim图像


Tags: installpipdockerbuildtxtgetapt统计数据
3条回答

我能够使用virtualenv与python2.7.14一起安装,通过venv安装

(test) rodrigo@trujillo:/tmp/test $ python --version
Python 2.7.14

(test) rodrigo@trujillo:/tmp/test $ pip --version
pip 10.0.1 from /tmp/test/lib/python2.7/site-packages/pip (python 2.7)

(test) rodrigo@trujillo:/tmp/test $ pip install cryptacular
Collecting cryptacular
  Using cached https://files.pythonhosted.org/packages/73/bd/714b3fbfb3392d6b4e658638d9b74f77ce1072725209c08a6becd90836a7/cryptacular-1.4.1.tar.gz
Collecting pbkdf2 (from cryptacular)
Requirement already satisfied: setuptools in ./lib/python2.7/site-packages (from cryptacular) (39.2.0)
Building wheels for collected packages: cryptacular
  Running setup.py bdist_wheel for cryptacular ... done
  Stored in directory: /home/rodrigo/.cache/pip/wheels/05/cd/1f/64fb0fb06f2735e2ca898935061275465573db7f4f98fa1db4
Successfully built cryptacular
Installing collected packages: pbkdf2, cryptacular
Successfully installed cryptacular-1.4.1 pbkdf2-1.3

(test) rodrigo@trujillo:/tmp/test $ pip list
Package       Version
------------- -------
cryptacular   1.4.1  
pbkdf2        1.3    
pip           10.0.1 
pkg-resources 0.0.0  
setuptools    39.2.0 
wheel         0.31.1 

我们不知道确切的错误,但上周末在基础映像中进行了安全更新。因此,我们将python映像固定到3.6.4。在

我在运行python3.6.6时也遇到了同样的问题。有了这一行程序,我就可以安装最新提交的密码。在

pipenv install -e hg+https://bitbucket.org/dholth/cryptacular@cb96fb3#egg=cryptacular

您需要安装mercurial

^{pr2}$

有关this thread的详细信息

相关问题 更多 >