Closed michelleful closed 5 years ago
Hi @michelleful , sorry about the hassle. Installing cld2-cffi
has long been problematic in certain dev environments, so I recently decided to rip it out in favor of a home-brewed language classifier. See: https://github.com/chartbeat-labs/textacy/pull/247. This won't be an issue soon.
What solved the issue for me was running CFLAGS="-Wno-narrowing" pip3 install cld2-cffi
as suggested in the issues of the cld2-cffi repo
hope it helps.
Hey @michelleful , I've released a new version that drops this problematic dependency: https://github.com/chartbeat-labs/textacy/releases/tag/0.7.1 . I'm going to close this issue, but please open a new one if you run into any installation or language identification-related difficulties. :)
steps to reproduce
pip install cld2-cffi
orpip install textacy[lang]
expected vs. actual behavior
I expect the install to conclude correctly. Instead, an error ensues ending in
cffi.VerificationError: CompileError: command 'gcc' failed with exit status 1
possible solution?
Amend the documentation to suggest using the following command in case
pip install cld2-cffi/textacy[lang]
doesn't work:CFLAGS="-Wno-narrowing" pip install cld2-cffi
, per a suggestion in the issues oncld2-cffi
's github page.CFLAGS="-Wno-narrowing" pip install textacy[lang]
should also work.context
Trying to use the language detection aspects of
textacy
.environment
spacy
version: (not relevant)spacy
models: (not relevant)textacy
version: 0.7.0