archzfs / archzfs-ci

Automated testing and deployment for archzfs using buildbot
http://ci.archzfs.com
GNU General Public License v2.0
5 stars 4 forks source link

`docker-compose build` failes due to errors with `pip` #13

Closed UweSauter closed 9 months ago

UweSauter commented 9 months ago

In order to help with archzfs/archzfs/issues/521 I installed a fresh Arch Linux VM.

While building the Docker images I get errors:

[…]
#18 [master  4/11] RUN pip3 install 'buildbot[bundle]' &&     pip3 install txrequests         &&     pip3 install buildbot_pkg       &&     pip3 install buildbot-badges    &&     pip3 install --upgrade six cairocffi attrs service_identity
#18 1.828 Collecting buildbot[bundle]
#18 1.967   Downloading buildbot-3.10.1-py3-none-any.whl (1.0 MB)
#18 3.036 Collecting sqlalchemy<1.5,>=1.3.0
#18 3.064   Downloading SQLAlchemy-1.4.50-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.6 MB)
#18 3.314 Collecting msgpack>=0.6.0
#18 3.342   Downloading msgpack-1.0.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (530 kB)
#18 3.488 Collecting croniter>=1.3.0
#18 3.520   Downloading croniter-2.0.1-py2.py3-none-any.whl (19 kB)
#18 3.659 Collecting importlib-resources>=5
#18 3.687   Downloading importlib_resources-6.1.1-py3-none-any.whl (33 kB)
#18 4.003 Collecting zope.interface>=4.1.1
#18 4.032   Downloading zope.interface-6.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (246 kB)
#18 4.051 Requirement already satisfied: setuptools>=8.0 in /usr/lib/python3/dist-packages (from buildbot[bundle]) (52.0.0)
#18 4.185 Collecting pyyaml
#18 4.212   Downloading PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (738 kB)
#18 4.345 Collecting packaging
#18 4.369   Downloading packaging-23.2-py3-none-any.whl (53 kB)
#18 4.583 Collecting txaio>=2.2.2
#18 4.608   Downloading txaio-23.1.1-py2.py3-none-any.whl (30 kB)
#18 4.698 Collecting unidiff>=0.7.5
#18 4.740   Downloading unidiff-0.7.5-py2.py3-none-any.whl (14 kB)
#18 4.864 Collecting PyJWT
#18 4.889   Downloading PyJWT-2.8.0-py3-none-any.whl (22 kB)
#18 4.997 Collecting Jinja2>=2.1
#18 5.023   Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
#18 5.169 Collecting alembic>=1.6.0
#18 5.196   Downloading alembic-1.13.1-py3-none-any.whl (233 kB)
#18 5.325 Collecting Twisted<=23.10.0,>=18.7.0
#18 5.368   Downloading twisted-23.10.0-py3-none-any.whl (3.2 MB)
#18 5.519 Collecting python-dateutil>=1.5
#18 5.546   Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
#18 5.757 Collecting autobahn>=0.16.0
#18 5.784   Downloading autobahn-23.6.2.tar.gz (480 kB)
#18 6.303 Collecting buildbot-worker==3.10.1
#18 6.330   Downloading buildbot_worker-3.10.1-py2.py3-none-any.whl (91 kB)
#18 6.535 Collecting buildbot-www==3.10.1
#18 6.662   Downloading buildbot_www-3.10.1-py3-none-any.whl (3.2 MB)
#18 7.105 Collecting buildbot-waterfall-view==3.10.1
#18 7.132   Downloading buildbot_waterfall_view-3.10.1-py3-none-any.whl (197 kB)
#18 7.339 Collecting buildbot-console-view==3.10.1
#18 7.368   Downloading buildbot_console_view-3.10.1-py3-none-any.whl (20 kB)
#18 7.574 Collecting buildbot-grid-view==3.10.1
#18 7.605   Downloading buildbot_grid_view-3.10.1-py3-none-any.whl (16 kB)
#18 7.724 Collecting future
#18 7.750   Downloading future-0.18.3.tar.gz (840 kB)
#18 8.146 Collecting typing-extensions>=4
#18 8.172   Downloading typing_extensions-4.9.0-py3-none-any.whl (32 kB)
#18 8.280 Collecting Mako
#18 8.307   Downloading Mako-1.3.0-py3-none-any.whl (78 kB)
#18 8.859 Collecting cryptography>=3.4.6
#18 8.888   Downloading cryptography-41.0.7-cp37-abi3-manylinux_2_28_x86_64.whl (4.4 MB)
#18 9.071 Collecting hyperlink>=21.0.0
#18 9.101   Downloading hyperlink-21.0.0-py2.py3-none-any.whl (74 kB)
#18 9.296 Collecting pytz>2021.1
#18 9.321   Downloading pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
#18 9.714 Collecting cffi>=1.12
#18 9.742   Downloading cffi-1.16.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (443 kB)
#18 9.859 Collecting pycparser
#18 9.888   Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
#18 9.910 Requirement already satisfied: idna>=2.5 in /usr/lib/python3/dist-packages (from hyperlink>=21.0.0->autobahn>=0.16.0->buildbot[bundle]) (2.10)
#18 10.04 Collecting zipp>=3.1.0
#18 10.07   Downloading zipp-3.17.0-py3-none-any.whl (7.4 kB)
#18 10.25 Collecting MarkupSafe>=2.0
#18 10.27   Downloading MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
#18 10.31 Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=1.5->buildbot[bundle]) (1.16.0)
#18 10.81 Collecting greenlet!=0.4.17
#18 10.84   Downloading greenlet-3.0.3-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (614 kB)
#18 11.00 Collecting automat>=0.8.0
#18 11.02   Downloading Automat-22.10.0-py2.py3-none-any.whl (26 kB)
#18 11.11 Collecting attrs>=21.3.0
#18 11.14   Downloading attrs-23.2.0-py3-none-any.whl (60 kB)
#18 11.22 Collecting incremental>=22.10.0
#18 11.26   Downloading incremental-22.10.0-py2.py3-none-any.whl (16 kB)
#18 11.34 Collecting constantly>=15.1
#18 11.37   Downloading constantly-23.10.4-py3-none-any.whl (13 kB)
#18 11.54 Building wheels for collected packages: autobahn, future
#18 11.54   Building wheel for autobahn (setup.py): started
#18 11.99   Building wheel for autobahn (setup.py): finished with status 'done'
#18 11.99   Created wheel for autobahn: filename=autobahn-23.6.2-py2.py3-none-any.whl size=666843 sha256=8887e4cda88f276ede746f91b31ffe5bef0f856e9c089e81c6d9643d179e63b0
#18 11.99   Stored in directory: /root/.cache/pip/wheels/20/16/6e/4b433a15741a0d9380bca9eb46816eb14f32afbc7b37cb1401
#18 12.00   Building wheel for future (setup.py): started
#18 12.34   Building wheel for future (setup.py): finished with status 'done'
#18 12.34   Created wheel for future: filename=future-0.18.3-py3-none-any.whl size=492025 sha256=c412f8b387ff6849d4f8714e76c12b30ca6bbd033bd2969d331cb5e155e3031e
#18 12.34   Stored in directory: /root/.cache/pip/wheels/bf/5d/6a/2e53874f7ec4e2bede522385439531fafec8fafe005b5c3d1b
#18 12.35 Successfully built autobahn future
#18 12.65 Installing collected packages: pycparser, MarkupSafe, greenlet, cffi, attrs, zope.interface, zipp, typing-extensions, txaio, sqlalchemy, pytz, python-dateutil, Mako, incremental, hyperlink, cryptography, constantly, automat, unidiff, Twisted, pyyaml, PyJWT, packaging, msgpack, Jinja2, importlib-resources, croniter, autobahn, alembic, future, buildbot, buildbot-www, buildbot-worker, buildbot-waterfall-view, buildbot-grid-view, buildbot-console-view
#18 12.90   Attempting uninstall: attrs
#18 12.90     Found existing installation: attrs 20.3.0
#18 12.90     Not uninstalling attrs at /usr/lib/python3/dist-packages, outside environment /usr
#18 12.90     Can't uninstall 'attrs'. No files were found to uninstall.
#18 14.05   Attempting uninstall: cryptography
#18 14.05     Found existing installation: cryptography 3.3.2
#18 14.05     Not uninstalling cryptography at /usr/lib/python3/dist-packages, outside environment /usr
#18 14.05     Can't uninstall 'cryptography'. No files were found to uninstall.
#18 17.33 Successfully installed Jinja2-3.1.2 Mako-1.3.0 MarkupSafe-2.1.3 PyJWT-2.8.0 Twisted-23.10.0 alembic-1.13.1 attrs-23.2.0 autobahn-23.6.2 automat-22.10.0 buildbot-3.10.1 buildbot-console-view-3.10.1 buildbot-grid-view-3.10.1 buildbot-waterfall-view-3.10.1 buildbot-worker-3.10.1 buildbot-www-3.10.1 cffi-1.16.0 constantly-23.10.4 croniter-2.0.1 cryptography-41.0.7 future-0.18.3 greenlet-3.0.3 hyperlink-21.0.0 importlib-resources-6.1.1 incremental-22.10.0 msgpack-1.0.7 packaging-23.2 pycparser-2.21 python-dateutil-2.8.2 pytz-2023.3.post1 pyyaml-6.0.1 sqlalchemy-1.4.50 txaio-23.1.1 typing-extensions-4.9.0 unidiff-0.7.5 zipp-3.17.0 zope.interface-6.1
#18 18.11 Traceback (most recent call last):
#18 18.11   File "/usr/bin/pip3", line 33, in <module>
#18 18.11     sys.exit(load_entry_point('pip==20.3.4', 'console_scripts', 'pip3')())
#18 18.11   File "/usr/bin/pip3", line 25, in importlib_load_entry_point
#18 18.11     return next(matches).load()
#18 18.11   File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
#18 18.11     module = import_module(match.group('module'))
#18 18.11   File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
#18 18.11     return _bootstrap._gcd_import(name[level:], package, level)
#18 18.11   File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
#18 18.11   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
#18 18.11   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
#18 18.11   File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
#18 18.11   File "<frozen importlib._bootstrap_external>", line 790, in exec_module
#18 18.11   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
#18 18.11   File "/usr/lib/python3/dist-packages/pip/_internal/cli/main.py", line 10, in <module>
#18 18.11     from pip._internal.cli.autocompletion import autocomplete
#18 18.11   File "/usr/lib/python3/dist-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
#18 18.11     from pip._internal.cli.main_parser import create_main_parser
#18 18.11   File "/usr/lib/python3/dist-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
#18 18.11     from pip._internal.cli import cmdoptions
#18 18.11   File "/usr/lib/python3/dist-packages/pip/_internal/cli/cmdoptions.py", line 23, in <module>
#18 18.11     from pip._vendor.packaging.utils import canonicalize_name
#18 18.11   File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 94, in <module>
#18 18.11     vendored("requests.packages.urllib3.contrib.pyopenssl")
#18 18.11   File "/usr/lib/python3/dist-packages/pip/_vendor/__init__.py", line 36, in vendored
#18 18.11     __import__(modulename, globals(), locals(), level=0)
#18 18.11   File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
#18 18.11   File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
#18 18.11   File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
#18 18.11   File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
#18 18.11   File "<frozen zipimport>", line 259, in load_module
#18 18.11   File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py", line 50, in <module>
#18 18.11   File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
#18 18.11     from OpenSSL import crypto, SSL
#18 18.11   File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1556, in <module>
#18 18.11     class X509StoreFlags(object):
#18 18.11   File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1577, in X509StoreFlags
#18 18.11     CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
#18 18.11 AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
#18 ERROR: process "/bin/sh -c pip3 install 'buildbot[bundle]' &&     pip3 install txrequests         &&     pip3 install buildbot_pkg       &&     pip3 install buildbot-badges    &&     pip3 install --upgrade six cairocffi attrs service_identity" did not complete successfully: exit code: 1
------
 > [master  4/11] RUN pip3 install 'buildbot[bundle]' &&     pip3 install txrequests         &&     pip3 install buildbot_pkg       &&     pip3 install buildbot-badges    &&     pip3 install --upgrade six cairocffi attrs service_identity:
18.11   File "<frozen importlib._bootstrap>", line 627, in _load_backward_compatible
18.11   File "<frozen zipimport>", line 259, in load_module
18.11   File "/usr/share/python-wheels/urllib3-1.26.5-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py", line 50, in <module>
18.11   File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
18.11     from OpenSSL import crypto, SSL
18.11   File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1556, in <module>
18.11     class X509StoreFlags(object):
18.11   File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1577, in X509StoreFlags
18.11     CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
18.11 AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
------
failed to solve: process "/bin/sh -c pip3 install 'buildbot[bundle]' &&     pip3 install txrequests         &&     pip3 install buildbot_pkg       &&     pip3 install buildbot-badges    &&     pip3 install --upgrade six cairocffi attrs service_identity" did not complete successfully: exit code: 1

As I have no previous experience with Docker I'm at a loss here. Here is the complete log generated by docker-compose build --no-cache --progress=plain 2>&1 | tee build.log.

minextu commented 9 months ago

Thx for taking a look! It seems like I forgot to push the latest changes, I've done that now and it should go past this error. Let me know if you need any help