Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.
This repository was archived by the owner on May 23, 2024. It is now read-only.

Docker build fails (cryptography) #106

@ybizeul

Description

@ybizeul

While trying to build :

 => ERROR [ 3/13] RUN /usr/bin/python3 -m pip install ansible cryptography docutils psutil PyYAML     pyOpenSSL flask flask-restful uwsgi netaddr notario &&     /usr/bin/python3 -m pip install -  137.1s 
------                                                                                                                                                                                                     
 > [ 3/13] RUN /usr/bin/python3 -m pip install ansible cryptography docutils psutil PyYAML     pyOpenSSL flask flask-restful uwsgi netaddr notario &&     /usr/bin/python3 -m pip install --no-cache-dir ansible-runner==1.4.6 &&     rm -rf /var/cache/yum:                                                                                                                                                          
#6 1.750 WARNING: Running pip install with root privileges is generally not a good idea. Try `__main__.py install --user` instead.                                                                         
#6 1.893 Collecting ansible                                                                                                                                                                                
#6 2.918   Downloading https://files.pythonhosted.org/packages/fd/f8/071905c6a67592d0852a9f340f6ab9226861eeeb97fdf4068642b22edcf3/ansible-4.10.0.tar.gz (36.8MB)                                           
#6 129.4 Collecting cryptography
#6 131.9   Downloading https://files.pythonhosted.org/packages/6d/0c/5e67831007ba6cd7e52c4095f053cf45c357739b0a7c46a45ddd50049019/cryptography-38.0.1.tar.gz (599kB)
#6 133.6     Complete output from command python setup.py egg_info:
#6 133.6     
#6 133.6             =============================DEBUG ASSISTANCE==========================
#6 133.6             If you are seeing an error here please try the following to
#6 133.6             successfully install cryptography:
#6 133.6     
#6 133.6             Upgrade to the latest pip and try again. This will fix errors for most
#6 133.6             users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
#6 133.6             =============================DEBUG ASSISTANCE==========================
#6 133.6     
#6 133.6     Traceback (most recent call last):
#6 133.6       File "<string>", line 1, in <module>
#6 133.6       File "/tmp/pip-build-guiafx4y/cryptography/setup.py", line 17, in <module>
#6 133.6         from setuptools_rust import RustExtension
#6 133.6     ModuleNotFoundError: No module named 'setuptools_rust'
#6 133.6     
#6 133.6     ----------------------------------------
#6 136.6 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-guiafx4y/cryptography/

Maybe related to #84 ?

I'm building it on Docker for mac, tried both docker build and docker build --platform x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions