Skip to content

Comments

[FIX] Workarround pkg_resources removal in setuptools#691

Merged
josep-tecnativa merged 1 commit intomasterfrom
fix-upgrade-cbor2
Feb 16, 2026
Merged

[FIX] Workarround pkg_resources removal in setuptools#691
josep-tecnativa merged 1 commit intomasterfrom
fix-upgrade-cbor2

Conversation

@david-banon-tecnativa
Copy link
Contributor

@david-banon-tecnativa david-banon-tecnativa commented Feb 12, 2026

The module pkg_resources was removed from the package setuptools in version 82.0.0 and it causes the follwoing errors:

  • Odoo 16 and 17 use somewhere the pkg_resources module, those have been pinned to setuptools <82
  • Odoo 18 and 19 use the package cbor2==5.4.2, this version needs building, and since it uses pkg_resources it also fails. This PR changes to version 5.4.6 that comes pre-built and avoids this error altogether.

TT61004

@david-banon-tecnativa david-banon-tecnativa marked this pull request as ready for review February 13, 2026 08:59
@david-banon-tecnativa david-banon-tecnativa changed the title [FIX] Replace cbor2 with a version that builds without pkg_resources [FIX] Replace cbor2 with a version that installs without pkg_resources Feb 13, 2026
@david-banon-tecnativa david-banon-tecnativa changed the title [FIX] Replace cbor2 with a version that installs without pkg_resources [FIX] Workarround pkg_resources removal in setuptools Feb 13, 2026
@josep-tecnativa
Copy link
Contributor

LGTM

@josep-tecnativa josep-tecnativa merged commit 4dce95a into master Feb 16, 2026
27 of 28 checks passed
@josep-tecnativa josep-tecnativa deleted the fix-upgrade-cbor2 branch February 16, 2026 08:50
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 this pull request may close these issues.

2 participants