Opened 4 weeks ago

Closed 4 weeks ago

#70132 closed defect (fixed)

py27-scipy @1.2.3: Cannot assign type 'void (object) except *' to 'PyCapsule_Destructor' (alias of 'void (*)(object) noexcept'). Exception values are incompatible.

Reported by: srinr Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: sonoma arm64 Cc:
Port: py27-scipy

Description

Hi,

I was trying to install py27-scipy and I got the error message " Failed to build py27-scipy: command execution failed". Could you please tell me how to fix this? I am running it on macOS Sonoma (M1 machine).

Thank you.

Attachments (1)

main.log (719.9 KB) - added by srinr 4 weeks ago.
log file

Download all attachments as: .zip

Change History (6)

comment:1 Changed 4 weeks ago by ryandesign (Ryan Carsten Schmidt)

Keywords: sonoma arm64 added
Owner: set to michaelld
Port: py27-scipy added
Priority: HighNormal
Status: newassigned

Please attach the main.log file.

Changed 4 weeks ago by srinr

Attachment: main.log added

log file

comment:2 Changed 4 weeks ago by srinr

Main.log file attached

comment:3 Changed 4 weeks ago by ryandesign (Ryan Carsten Schmidt)

Summary: Failed to build py27-scipy: command execution failedpy27-scipy @1.2.3: Cannot assign type 'void (object) except *' to 'PyCapsule_Destructor' (alias of 'void (*)(object) noexcept'). Exception values are incompatible.
Version: 2.9.3

Looks like the first error in the log is:

Error compiling Cython file:
------------------------------------------------------------
...
    if with_signature:
        signature = "int (double *, npy_intp, double *, npy_intp, void *)"
    try:
        capsule = PyCapsule_New(<void *>_filter1d, signature, _destructor)
                                                              ^
------------------------------------------------------------
_cytest.pyx:46:62: Cannot assign type 'void (object) except *' to 'PyCapsule_Destructor' (alias of 'void (*)(object) noexcept'). Exception values are incompatible. Suggest adding 'noexcept' to the type of '_destructor'.

comment:4 Changed 4 weeks ago by srinr

Ok, how do I go about fixing it?

comment:5 Changed 4 weeks ago by jmroot (Joshua Root)

Resolution: fixed
Status: assignedclosed

In a5848d4acd6c98ceb5ae8667e3486eadc971c1b8/macports-ports (master):

py27-scipy: use cython-compat

Closes: #70132

Note: See TracTickets for help on using tickets.