chartbeat-labs / textacy

NLP, before and after spaCy
https://textacy.readthedocs.io
Other
2.21k stars 249 forks source link

Installing `textacy[lang]` fails due to `cld2-cffi` bug #246

Closed michelleful closed 5 years ago

michelleful commented 5 years ago

steps to reproduce

  1. pip install cld2-cffi or pip 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 on cld2-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

bdewilde commented 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.

Nivek92 commented 5 years ago

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.

bdewilde commented 5 years ago

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. :)