Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible chardet dependency between this repo and Odoo #2966

Open
gpothier opened this issue Jun 12, 2024 · 1 comment · May be fixed by #2967
Open

Incompatible chardet dependency between this repo and Odoo #2966

gpothier opened this issue Jun 12, 2024 · 1 comment · May be fixed by #2967
Labels

Comments

@gpothier
Copy link

In this repo there is a dependency on pygount:


The current version of pygount (1.8.0) requires chardet = "^5" (https://github.com/roskakori/pygount/blob/7113dd74687732e4c5d7195050caea8e83b67c9f/pyproject.toml#L68). However, Odoo itself requires chardet==4.0.0 (https://github.com/odoo/odoo/blob/09ada135847b96fa58d862568603dde61fcf1488/requirements.txt#L4)

The last version of pygount to support chardet = "^4" is 1.4.0 (https://github.com/roskakori/pygount/blob/49ca668c55d5383c2e512913f3264f1d954bfc7a/pyproject.toml#L68)

If one installs the dependencies from both repositories requirements.txt files, Odoo fails to start:

pkg_resources.ContextualVersionConflict: (chardet 5.2.0 (/usr/local/lib/python3.9/site-packages), Requirement.parse('chardet<5,>=3.0.2'), {'requests'})

This can be solved by specifying the compatible version in this repo:

pygount==1.4.0
@gpothier gpothier added the bug label Jun 12, 2024
@pedrobaeza
Copy link
Member

You can add a PR pinning such dependency in the manifest of the affected module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants