Skip to content
This repository was archived by the owner on Jun 5, 2026. It is now read-only.
This repository was archived by the owner on Jun 5, 2026. It is now read-only.

[1.6.9] Failed building wheel for uamqp #386

Description

@cicharka
  • 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.

Activity

  1. Jangetta commented on Mar 25, 2024

    @Jangetta

    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.

  2. bhenderson-r7 commented on Mar 26, 2024

    @bhenderson-r7

    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

  3. kashifkhan commented on Mar 26, 2024

    @kashifkhan
    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.

  4. VidyaV1993 commented on Apr 1, 2024

    @VidyaV1993

    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.

  5. rtrive commented on Apr 4, 2024

    @rtrive

    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

  6. kashifkhan commented on Apr 4, 2024

    @kashifkhan
    Member

    Riccardo Trivellato (@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

  7. Gsantomaggio commented on Apr 9, 2024

    @Gsantomaggio
    • 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

  8. miguelmgl commented on Apr 12, 2024

    @miguelmgl

    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.

  9. justinokay commented on May 29, 2024

    @justinokay

    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

  10. sergeibelov113 commented on Jul 22, 2024

    @sergeibelov113

    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

  11. kurtke1990 commented on Apr 7, 2025

    @kurtke1990

    CFLAGS="-Wno-error=incompatible-function-pointer-types" CMAKE_POLICY_VERSION_MINIMUM=3.5 pip install uamqp This works on my M3 MacBook Air.
    Python: 3.11.11

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions