Installation fails due to SetuptoolsDeprecationWarning: License classifiers are deprecated. #11142

Closed
opened 2025-12-29 21:40:54 +01:00 by adam · 0 comments
Owner

Originally created by @Kimotu on GitHub (May 7, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.3.0

Python Version

3.12

Steps to Reproduce

I run Ubuntu 24.04.2 LTS with python 3.12.3 and followed the official installation guide step by step.

As source I used git and checked out the current release (4.3.0). When I run sudo /opt/netbox/upgrade.sh, I get

Building` wheels for collected packages: psycopg-c
  Building wheel for psycopg-c (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for psycopg-c (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [36 lines of output]
      /tmp/pip-build-env-euffrk7n/overlay/lib/python3.12/site-packages/setuptools/dist.py:761: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!

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

              License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)

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

      !!
        self._finalize_license_expression()
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-312/psycopg_c
      copying psycopg_c/_uuid.py -> build/lib.linux-x86_64-cpython-312/psycopg_c
      copying psycopg_c/version.py -> build/lib.linux-x86_64-cpython-312/psycopg_c
      copying psycopg_c/__init__.py -> build/lib.linux-x86_64-cpython-312/psycopg_c
      copying psycopg_c/_psycopg.pyi -> build/lib.linux-x86_64-cpython-312/psycopg_c
      copying psycopg_c/py.typed -> build/lib.linux-x86_64-cpython-312/psycopg_c
      copying psycopg_c/pq.pxd -> build/lib.linux-x86_64-cpython-312/psycopg_c
      creating build/lib.linux-x86_64-cpython-312/psycopg_c/_psycopg
      copying psycopg_c/_psycopg/__init__.pxd -> build/lib.linux-x86_64-cpython-312/psycopg_c/_psycopg
      copying psycopg_c/_psycopg/oids.pxd -> build/lib.linux-x86_64-cpython-312/psycopg_c/_psycopg
      copying psycopg_c/_psycopg/endian.pxd -> build/lib.linux-x86_64-cpython-312/psycopg_c/_psycopg
      creating build/lib.linux-x86_64-cpython-312/psycopg_c/pq
      copying psycopg_c/pq/__init__.pxd -> build/lib.linux-x86_64-cpython-312/psycopg_c/pq
      copying psycopg_c/pq/libpq.pxd -> build/lib.linux-x86_64-cpython-312/psycopg_c/pq
      running build_ext
      building 'psycopg_c._psycopg' extension
      creating build/temp.linux-x86_64-cpython-312/psycopg_c
      creating build/temp.linux-x86_64-cpython-312/psycopg_c/types
      x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I/usr/include/postgresql -I/opt/netbox/venv/include -I/usr/include/python3.12 -c psycopg_c/_psycopg.c -o build/temp.linux-x86_64-cpython-312/psycopg_c/_psycopg.o
      error: command 'x86_64-linux-gnu-gcc' failed: No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for psycopg-c
Failed to build psycopg-c
ERROR: Failed to build installable wheels for some pyproject.toml based projects (psycopg-c)

Expected Behavior

Successful installtion

Observed Behavior

Error about deprecated license header thrown.

Originally created by @Kimotu on GitHub (May 7, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.3.0 ### Python Version 3.12 ### Steps to Reproduce I run Ubuntu 24.04.2 LTS with python 3.12.3 and followed the official [installation guide](https://netboxlabs.com/docs/netbox/en/stable/installation/3-netbox/) step by step. As source I used git and checked out the current release (4.3.0). When I run `sudo /opt/netbox/upgrade.sh`, I get ``` Building` wheels for collected packages: psycopg-c Building wheel for psycopg-c (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for psycopg-c (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [36 lines of output] /tmp/pip-build-env-euffrk7n/overlay/lib/python3.12/site-packages/setuptools/dist.py:761: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running bdist_wheel running build running build_py creating build/lib.linux-x86_64-cpython-312/psycopg_c copying psycopg_c/_uuid.py -> build/lib.linux-x86_64-cpython-312/psycopg_c copying psycopg_c/version.py -> build/lib.linux-x86_64-cpython-312/psycopg_c copying psycopg_c/__init__.py -> build/lib.linux-x86_64-cpython-312/psycopg_c copying psycopg_c/_psycopg.pyi -> build/lib.linux-x86_64-cpython-312/psycopg_c copying psycopg_c/py.typed -> build/lib.linux-x86_64-cpython-312/psycopg_c copying psycopg_c/pq.pxd -> build/lib.linux-x86_64-cpython-312/psycopg_c creating build/lib.linux-x86_64-cpython-312/psycopg_c/_psycopg copying psycopg_c/_psycopg/__init__.pxd -> build/lib.linux-x86_64-cpython-312/psycopg_c/_psycopg copying psycopg_c/_psycopg/oids.pxd -> build/lib.linux-x86_64-cpython-312/psycopg_c/_psycopg copying psycopg_c/_psycopg/endian.pxd -> build/lib.linux-x86_64-cpython-312/psycopg_c/_psycopg creating build/lib.linux-x86_64-cpython-312/psycopg_c/pq copying psycopg_c/pq/__init__.pxd -> build/lib.linux-x86_64-cpython-312/psycopg_c/pq copying psycopg_c/pq/libpq.pxd -> build/lib.linux-x86_64-cpython-312/psycopg_c/pq running build_ext building 'psycopg_c._psycopg' extension creating build/temp.linux-x86_64-cpython-312/psycopg_c creating build/temp.linux-x86_64-cpython-312/psycopg_c/types x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -I/usr/include/postgresql -I/opt/netbox/venv/include -I/usr/include/python3.12 -c psycopg_c/_psycopg.c -o build/temp.linux-x86_64-cpython-312/psycopg_c/_psycopg.o error: command 'x86_64-linux-gnu-gcc' failed: No such file or directory [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for psycopg-c Failed to build psycopg-c ERROR: Failed to build installable wheels for some pyproject.toml based projects (psycopg-c) ``` ### Expected Behavior Successful installtion ### Observed Behavior Error about deprecated license header thrown.
adam added the netbox label 2025-12-29 21:40:54 +01:00
adam closed this issue 2025-12-29 21:40:54 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11142