Skip to content

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

@michelleful

Description

@michelleful

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

  • operating system: Ubuntu Linux 18.04
  • python version: 3.7.0
  • gcc version: 7.3.0
  • spacy version: (not relevant)
  • installed spacy models: (not relevant)
  • textacy version: 0.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions