Skip to content

cx_Oracle 8.3.0 installation breaks with setuptools 82.0.0 due to pkg_resources removal #675

@SoniaComp

Description

@SoniaComp

Below is the content written in English, following the requested GitHub issue format:

  1. What versions are you using?

cx_Oracle version: 8.3.0

setuptools version: 82.0.0 (latest at the time of installation)

(Additional Python/platform information can be provided if needed.)

  1. Describe the problem

When installing cx_Oracle 8.3.0, the installation fails due to a compatibility issue with newer versions of setuptools.

Starting from setuptools v82.0.0, pkg_resources is no longer supported (see:
https://github.com/pypa/setuptools/blob/v82.0.0/NEWS.rst#deprecations-and-removals
).

Because of this removal, the installation process raises the following error:

ModuleNotFoundError: No module named 'pkg_resources'

To resolve this issue, we plan to set an upper bound for the setuptools version (i.e., < 82.0.0) to prevent installation failures.

  1. Oracle Client libraries

(Not applicable in this case — the issue occurs during package installation before Oracle Client configuration.)

  1. PATH / LD_LIBRARY_PATH

(Not applicable — installation fails before runtime.)

  1. Oracle environment variables

(Not applicable — installation fails before runtime.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions