On Tue, Jan 18, 2022 at 3:33 PM <s.srigowth...@gmail.com> wrote:

> Hi,
>
> We are using Openstack zuul ( Openstack CI ) to deploy devstack on IBM
> PPC64el hardware
>
> In
> https://review.opendev.org/c/openstack/requirements/+/824810/2/upper-constraints.txt#124
> commit
> the numpy package version is updated from 1.22.0 to 1.22.1
>
> When the version 1.22.0 of numpy was used setuptools-60.5.0 has
> successfully deployed.
>
> where as with the latest numpy 1.22.1 the setuptools package installation
> is failing with the below runtime error.
>
> Error:
> 2022-01-18 12:17:18.663446 | devstack-focal-newcloud | Collecting numpy
> 2022-01-18 12:17:18.763054 | devstack-focal-newcloud |   Downloading
> numpy-1.22.1.zip (11.4 MB)
> 2022-01-18 12:17:24.048280 | devstack-focal-newcloud |   Installing build
> dependencies: started
> 2022-01-18 12:17:32.883181 | devstack-focal-newcloud |   Installing build
> dependencies: finished with status 'done'
> 2022-01-18 12:17:32.890122 | devstack-focal-newcloud |   Getting
> requirements to build wheel: started
> 2022-01-18 12:17:33.282029 | devstack-focal-newcloud |   Getting
> requirements to build wheel: finished with status 'error'
> 2022-01-18 12:17:33.282475 | devstack-focal-newcloud |   ERROR: Command
> errored out with exit status 1:
> 2022-01-18 12:17:33.282499 | devstack-focal-newcloud |    command:
> /usr/bin/python3.8
> /usr/local/lib/python3.8/dist-packages/pip/_vendor/pep517/in_process/_in_process.py
> get_requires_for_build_wheel /tmp/tmpkr3xl1i_
> 2022-01-18 12:17:33.282529 | devstack-focal-newcloud |        cwd:
> /tmp/pip-install-c1eqnkjm/numpy_7e0d04ecfb1b47af806fb5707c655744
> .......
> 2022-01-18 12:17:33.283155 | devstack-focal-newcloud |   RuntimeError:
> Setuptools version is '60.5.0', version < '60.0.0' is required. See
> pyproject.toml
> ...
>
> 2022-01-18 12:17:49.575387 | devstack-focal-newcloud |
> 2022-01-18 12:17:49.575401 | devstack-focal-newcloud | The conflict is
> caused by:
> 2022-01-18 12:17:49.575422 | devstack-focal-newcloud |     websockify
> 0.10.0 depends on numpy
> 2022-01-18 12:17:49.575450 | devstack-focal-newcloud |     The user
> requested (constraint) numpy===1.22.1
>
> numpy: 1.22.1
> ubuntu: Focal
> python : 3.8
>
> Could someone help me with a way forward.
>

Please do what the error message says and use setuptools <60.0 (59.8.0 is
the highest version that works).

If there's a real problem with getting an older version of setuptools
(which seems unlikely, it's pure Python), then you can try removing that
check in numpy and adding SETUPTOOLS_USE_DISTUTILS=stdlib (which is already
default in OpenStack it looks like:
https://opendev.org/openstack/devstack/commit/4b1885bef6766c0bbc20db851b19a83844103c89).
No guarantees that that will work and remain working though, it's untested.

Cheers,
Ralf
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to