[MacPorts] #74263: pyopencl in python 3.11 crashes at initialization

MacPorts noreply at macports.org
Wed Jul 29 14:56:43 UTC 2026


#74263: pyopencl in python 3.11 crashes at initialization
-----------------------+----------------------------
 Reporter:  lpagani91  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.12.5
 Keywords:             |       Port:  py311-pyopencl
-----------------------+----------------------------
 pyopencl only exists for python 3.10 and 3.11.
 After installing python3.11 and launching ipython-3.11, i get this :

 {{{
 In [1]: import pyopencl

 A module that was compiled using NumPy 1.x cannot be run in
 NumPy 2.4.6 as it may crash. To support both 1.x and 2.x
 versions of NumPy, modules must be compiled with NumPy 2.0.
 Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

 If you are a user of the module, the easiest solution will be to
 downgrade to 'numpy<2' or try to upgrade the affected module.
 We expect that some modules will need time to support NumPy 2.

 }}}



 {{{
 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)
 AttributeError: _ARRAY_API not found
 ---------------------------------------------------------------------------
 ImportError                               Traceback (most recent call
 last)
 ImportError: numpy.core.multiarray failed to import

 The above exception was the direct cause of the following exception:

 ImportError                               Traceback (most recent call
 last)
 }}}

 numpy-3.11 version is

 {{{
 The following ports are currently installed:
   py311-numpy @2.4.6_0+gfortran+openblas (active)
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/74263>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list