Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.6.9] Failed building wheel for uamqp #386

Open
cicharka opened this issue Mar 25, 2024 · 10 comments · May be fixed by #411
Open

[1.6.9] Failed building wheel for uamqp #386

cicharka opened this issue Mar 25, 2024 · 10 comments · May be fixed by #411

Comments

@cicharka
Copy link

  • UAMQP Package Version: 1.6.9
  • Operating System: macOS 14.4 (23E214)
  • Python Version: 3.8.18, 3.9.18, 3.11.6

Describe the bug
Failed to install directly with pip:

pip install uamqp

      ...
      uamqp/c_uamqp.c:65557:146: error: incompatible function pointer types passing 'void (void *, enum MESSAGE_RECEIVER_STATE_TAG, enum MESSAGE_RECEIVER_STATE_TAG)' to parameter of type 'ON_MESSAGE_RECEIVER_STATE_CHANGED' (aka 'void (*)(const void *, enum MESSAGE_RECEIVER_STATE_TAG, enum MESSAGE_RECEIVER_STATE_TAG)') [-Wincompatible-function-pointer-types]
              __pyx_t_1 = ((struct __pyx_vtabstruct_5uamqp_7c_uamqp_cMessageReceiver *)__pyx_v_receiver->__pyx_vtab)->create(__pyx_v_receiver, __pyx_v_link, __pyx_f_5uamqp_7c_uamqp_on_message_receiver_state_changed, ((void *)__pyx_v_callback_context)); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 23, __pyx_L1_error)
                                                                                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ...                                                                                                                                    
      35 warnings and 1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for uamqp
Failed to build uamqp
ERROR: Could not build wheels for uamqp, which is required to install pyproject.toml-based projects

To Reproduce
Steps to reproduce the behavior:

  1. Create virtual env with desired python version
  2. Install package with pip install uamqp or pip install uamqp==1.6.9

Expected behavior
Package should be installed.

Additional context
Installation of version 1.6.8 works fine.
Release 1.6.9 is blocking installation of requirements for azure collection.

@Jangetta
Copy link

I am facing the same issue but for all versions of uampq with Python 3.11.8 on a Macbook with Sonoma 14.4.1 and an M3 chip.

@bhenderson-r7
Copy link

bhenderson-r7 commented Mar 26, 2024

I have the same issue with Python 3.8.17 on an M1 Macbook with Sonoma 14.2.1

Edit: I followed the recommendation and updated my Azure SDK

@kashifkhan
Copy link
Member

Hi everyone, are yall using uAMQP with either the eventhub or servicebus python sdks ? If thats the case we are wanting users to move over to the new versions of the SDK that uses a pure python based AMQP library

As such this library never officially supported ARM and didn't have wheels pushed out for it. We are just pushing out small updates overall as this library is no longer in active maintenance.

@VidyaV1993
Copy link

I have the same issue with Python 3.11 on an Apple M2 Max with macOS Sonoma Version 14.3.1. I encountered this when I was trying to install azure-iot-hub.

@rtrive
Copy link

rtrive commented Apr 4, 2024

I have the same issue with Python 3.8.17 on an M1 Macbook with Sonoma 14.2.1

Edit: I followed the recommendation and updated my Azure SDK

Which one? Because I installed cmake, but it doesn't work

@kashifkhan
Copy link
Member

@rtrive are you using the Azure Event Hub or Service Bus SDKs? Those also used uAMQP but now are using a new python based on. Upgrading those most likely fixed the issue for them

@Gsantomaggio
Copy link

  • UAMQP Package Version: 1.6.9
  • Operating System: macOS 14.4 (23E214)
  • Python Version: 3.12.2
  • M1

have the same problem with 1.6.8 and 1.6.9

Same error:

uamqp/c_uamqp.c:112510:55: error: no member named 'ob_digit' in 'struct _longobject'
                  const digit* digits = ((PyLongObject*)x)->ob_digit;
                                        ~~~~~~~~~~~~~~~~~~  ^
      uamqp/c_uamqp.c:112651:55: error: no member named 'ob_digit' in 'struct _longobject'
                  const digit* digits = ((PyLongObject*)x)->ob_digit;
                                        ~~~~~~~~~~~~~~~~~~  ^
      fatal error: too many errors emitted, stopping now [-ferror-limit=]
      294 warnings and 20 errors generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

thank you

@miguelmgl
Copy link

UAMQP Package Version: 1.6.9
Operating System: Sonoma 14.4.1
Python Version: 3.11.6
M2

It is possible to build with this flag:
CFLAGS="-Wno-error=incompatible-function-pointer-types" pip install uamqp==1.6.9

Not sure if there are side effects, but I only require to install uampq as a dependency of azure-iot-hub, and it doesn't seems to affect the functionality I need.

With Python 3.12 this workaround doesn't work.

@justinokay
Copy link

UAMQP Package Version: 1.6.9 Operating System: Sonoma 14.4.1 Python Version: 3.11.6 M2

It is possible to build with this flag: CFLAGS="-Wno-error=incompatible-function-pointer-types" pip install uamqp==1.6.9

Not sure if there are side effects, but I only require to install uampq as a dependency of azure-iot-hub, and it doesn't seems to affect the functionality I need.

With Python 3.12 this workaround doesn't work.

This worked for me installing the latest version. Thanks!

CFLAGS="-Wno-error=incompatible-function-pointer-types" pip3 install uamqp

@sergeibelov113
Copy link

sergeibelov113 commented Jul 22, 2024

UAMQP Package Version: 1.6.9 Operating System: Sonoma 14.4.1 Python Version: 3.11.6 M2
It is possible to build with this flag: CFLAGS="-Wno-error=incompatible-function-pointer-types" pip install uamqp==1.6.9
Not sure if there are side effects, but I only require to install uampq as a dependency of azure-iot-hub, and it doesn't seems to affect the functionality I need.
With Python 3.12 this workaround doesn't work.

This worked for me installing the latest version. Thanks!

CFLAGS="-Wno-error=incompatible-function-pointer-types" pip3 install uamqp

This works on python 3.11 for me:

UAMQP Package Version: 1.6.9
Operating System: Version 14.5 (23F79)
Python Version: 3.11.9
M1

brew install llvm@14
PATH=/opt/homebrew/opt/llvm@14/bin:$PATH pip install uamqp

3.12 - still haven't found a solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants