-
Notifications
You must be signed in to change notification settings - Fork 163
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
dependency cchardet cannot be installed on python 3.11 #507
Comments
Thank you @pleblancq It has worked well with my LG AC. Regards, |
Thanks for this suggestion. I'm busy with work and far from home on this period, I will implement suggested changes as soon I will be back home. |
I'm running HA on Python 3.10.10 and also got an error logged when HA tried to install |
Hi,
You need to change manifest.json do not try to install cchardet. Try something like that:
$ cat manifest.json
{
"domain": "smartthinq_sensors",
"name": "SmartThinQ LGE Sensors",
"integration_type": "hub",
"documentation": "https://github.com/ollo69/ha-smartthinq-sensors",
"issue_tracker": "https://github.com/ollo69/ha-smartthinq-sensors/issues",
"dependencies": [],
"codeowners": ***@***.***"],
"requirements": ["pycountry>=20.7.3", "xmltodict>=0.12.0", "charset-normalizer>=2.1.1"],
"config_flow": true,
"iot_class": "cloud_polling",
"version": "0.31.4"
}
Regrets,
… On 16 Mar 2023, at 17:06, Sergio Rius ***@***.***> wrote:
@pleblancq <https://github.com/pleblancq> I've tried your solution but still is complaining about cchardet.
I've tried searching for cchardet in the whole config folder but didn't had any matches, but still failing.
Is there anything more to be done?
—
Reply to this email directly, view it on GitHub <#507 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQ3MP5JKWWBKLCSOGJI23TTW4NXCVANCNFSM6AAAAAAVMRUOZ4>.
You are receiving this because you commented.
|
Thank you very much Kleytonn. That solved my problem. |
Change implemented in last release, I close this issue. Please open a new one in case of problems. |
Hi,
since HomeAssistant v2023.3.0, we can install HomeAssistant with python 3.11
Your sensors has a dependency that is not working with python 3.11 (cchardet).
see thewhiteh4t/nexfil#24 stating that cchardet seems to be abandonned.
You could easily migrate to charset_normalizer.
I changed the import cchardet in core_async.py to
from charset_normalizer import detect
and changed the detect line to:
encoding = detect(content).get("encoding")
and everyhing works fine.
Would be nice if you could add this modification so people migrating to v3.11 will be able to use your sensors.
Thanks
The text was updated successfully, but these errors were encountered: