Skip to content

Issue installing the package #60

Closed
@akshaybabloo

Description

@akshaybabloo

Describe the bug

I am using uv to install the package on Ubuntu 22.04 and I am getting this error

× Failed to build `python-qpid-proton==0.39.0`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit status: 1)

      [stdout]
      running bdist_wheel
      running build
      running build_py
      copying cproton.py -> build/lib.linux-x86_64-cpython-312
      copying proton/_transport.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_common.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_url.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_delivery.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_selectable.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_condition.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_tracing.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_handlers.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_reactor.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_data.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_wrapper.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_handler.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/handlers.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_utils.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_io.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/__init__.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/tracing.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_message.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/reactor.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_exceptions.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_events.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/utils.py -> build/lib.linux-x86_64-cpython-312/proton
      copying proton/_endpoints.py -> build/lib.linux-x86_64-cpython-312/proton
      running build_ext
      generating cffi module 'build/temp.linux-x86_64-cpython-312/cproton_ffi.c'
      already up-to-date
      building 'cproton_ffi' extension
      cc -pthread -fno-strict-overflow -Wsign-compare -Wunreachable-code -DNDEBUG -g -O3 -Wall -fdebug-default-version=4 -fPIC -I/tools/deps/include
      -I/tools/deps/include/ncursesw -I/tools/deps/libedit/include -fPIC -DPROTON_DECLARE_STATIC -I./include -I./src -I/home/akshay/.cache/uv/builds-v0/.tmpl3AC5p/include
      -I/home/akshay/.local/share/uv/python/cpython-3.12.0-linux-x86_64-gnu/include/python3.12 -c ./src/compiler/gcc/start.c -o build/temp.linux-x86_64-cpython-312/src/compiler/gcc/start.o -std=c99

      [stderr]
      /home/akshay/.cache/uv/builds-v0/.tmpl3AC5p/lib/python3.12/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!

              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:

              License :: OSI Approved :: Apache Software License

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        self._finalize_license_expression()
      cc: error: unrecognized command-line option ‘-fdebug-default-version=4’
      error: command '/usr/bin/cc' failed with exit code 1

      hint: This usually indicates a problem with the package or the build environment.
  help: `python-qpid-proton` (v0.39.0) was included because `rabbitmq-amqp-python-client` (v0.1.0b2) depends on `python-qpid-proton`

Looks like an issue with python-qpid-proton

Reproduction steps

  1. Install uv from - https://github.com/astral-sh/uv
  2. uv init --python 3.12 . - to initialise the project
  3. uv add rabbitmq-amqp-python-client - to install the package

Expected behavior

I believe it should install the package without any error

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions