Unable to install Talon on python 3.11.4 due to dependency conflict with cchardet package
I am experiencing difficulties while attempting to install the Talon in my Python 3.11.4 environment. The installation process fails with an error related to the dependency on the cchardet package. This is the error I'm getting:
Backend subprocess exited when trying to invoke build_wheel
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-13-arm64-cpython-311
creating build/lib.macosx-13-arm64-cpython-311/cchardet
copying src/cchardet/version.py -> build/lib.macosx-13-arm64-cpython-311/cchardet
copying src/cchardet/__init__.py -> build/lib.macosx-13-arm64-cpython-311/cchardet
running build_ext
building 'cchardet._cchardet' extension
creating build/temp.macosx-13-arm64-cpython-311
creating build/temp.macosx-13-arm64-cpython-311/src
creating build/temp.macosx-13-arm64-cpython-311/src/cchardet
creating build/temp.macosx-13-arm64-cpython-311/src/ext
creating build/temp.macosx-13-arm64-cpython-311/src/ext/uchardet
creating build/temp.macosx-13-arm64-cpython-311/src/ext/uchardet/src
creating build/temp.macosx-13-arm64-cpython-311/src/ext/uchardet/src/LangModels
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -Isrc/ext/uchardet/src -I/private/var/folders/8j/9h5rrd_s4nx5ycsy2j7dfjkw0000gn/T/tmpdbxeaean/.venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c src/cchardet/_cchardet.cpp -o build/temp.macosx-13-arm64-cpython-311/src/cchardet/_cchardet.o
src/cchardet/_cchardet.cpp:196:12: fatal error: 'longintrepr.h' file not found
#include "longintrepr.h"
^~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
I've tried installing it on linux as well but throws the same error
cchardet is no longer maintained.
@andersk opened this PR to fix it the issue - no response yet from Talon maintainers.
As an aside, this fork is an actively maintained direct replacement for cchardet.
Talon seems to be unmaintained.
@rpoyau that isn't clear. Deprecated Mailgun libraries have been clearly marked as such in the docs. I've reached out directly to the Mailgun team.
The zulip fork of talon @ zulip-25522 resolves this 👉 https://github.com/zulip/talon/tree/zulip-25522
I install it using pip-tools with this in requirements.in:
https://github.com/zulip/talon/archive/refs/tags/zulip-25522.zip#egg=talon-core&subdirectory=talon-core
Which gets turned into this in requirements.txt:
talon-core @ https://github.com/zulip/talon/archive/refs/tags/zulip-25522.zip#subdirectory=talon-core