question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrade CLTK supported version 3.7

See original GitHub issue

Attempting to install CLTK in a virtual environment, and it’s failing due, it seems, to an issue with python-crfsuite:

Failed building wheel for python-crfsuite
  Running setup.py clean for python-crfsuite
Failed to build python-crfsuite
Installing collected packages: python-crfsuite, regex, pyyaml, whoosh, cltk
  Running setup.py install for python-crfsuite ... error
    Complete output from command /Users/daniellibatique/code/github-repos/ovid-bot/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/8c/fhxmb48x2mggd034j0rvld7w0000gn/T/pip-install-fq_levxy/python-crfsuite/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/8c/fhxmb48x2mggd034j0rvld7w0000gn/T/pip-record-hzlinkg3/install-record.txt --single-version-externally-managed --compile --install-headers /Users/daniellibatique/code/github-repos/ovid-bot/env/bin/../include/site/python3.7/python-crfsuite:
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.9-x86_64-3.7
    creating build/lib.macosx-10.9-x86_64-3.7/pycrfsuite
    copying pycrfsuite/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pycrfsuite
    copying pycrfsuite/_dumpparser.py -> build/lib.macosx-10.9-x86_64-3.7/pycrfsuite
    copying pycrfsuite/_logparser.py -> build/lib.macosx-10.9-x86_64-3.7/pycrfsuite
    running build_ext
    building 'pycrfsuite._pycrfsuite' extension
    creating build/temp.macosx-10.9-x86_64-3.7
    creating build/temp.macosx-10.9-x86_64-3.7/pycrfsuite
    creating build/temp.macosx-10.9-x86_64-3.7/crfsuite
    creating build/temp.macosx-10.9-x86_64-3.7/crfsuite/lib
    creating build/temp.macosx-10.9-x86_64-3.7/crfsuite/lib/crf
    creating build/temp.macosx-10.9-x86_64-3.7/crfsuite/lib/crf/src
    creating build/temp.macosx-10.9-x86_64-3.7/crfsuite/swig
    creating build/temp.macosx-10.9-x86_64-3.7/crfsuite/lib/cqdb
    creating build/temp.macosx-10.9-x86_64-3.7/crfsuite/lib/cqdb/src
    creating build/temp.macosx-10.9-x86_64-3.7/liblbfgs
    creating build/temp.macosx-10.9-x86_64-3.7/liblbfgs/lib
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c pycrfsuite/_pycrfsuite.cpp -o build/temp.macosx-10.9-x86_64-3.7/pycrfsuite/_pycrfsuite.o -std=c99
    error: invalid argument '-std=c99' not allowed with 'C++'
    error: command 'gcc' failed with exit status 1
    
    ----------------------------------------
Command "/Users/daniellibatique/code/github-repos/ovid-bot/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/private/var/folders/8c/fhxmb48x2mggd034j0rvld7w0000gn/T/pip-install-fq_levxy/python-crfsuite/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/8c/fhxmb48x2mggd034j0rvld7w0000gn/T/pip-record-hzlinkg3/install-record.txt --single-version-externally-managed --compile --install-headers /Users/daniellibatique/code/github-repos/ovid-bot/env/bin/../include/site/python3.7/python-crfsuite" failed with error code 1 in /private/var/folders/8c/fhxmb48x2mggd034j0rvld7w0000gn/T/pip-install-fq_levxy/python-crfsuite/

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
diyclassicscommented, Jul 9, 2018

cf. https://github.com/scrapinghub/python-crfsuite/issues/88 and, in particular, the sentence: “Of course we should also upload an wheel to pypi for py37” (2 days ago). Maybe just need to wait a bit, use 3.6.5 in the meantime.

1reaction
kylepjohnsoncommented, Jul 8, 2018

Thanks, Daniel, this is a big help. I have renamed this ticket to keep track at least our one know issue, the crf suite.

If anyone wants to reach out to them on our behalf, feel free. Haven’t seen this come up on the nltk lists yet, but I do not follow all of them.

Read more comments on GitHub >

github_iconTop Results From Across the Web

3. Installation - The Classical Language Toolkit
We currently support Python versions 3.7 , 3.8 , 3.9 . ... we recommend you upgrade to WSL2 at least, and install the...
Read more >
Stuck again · Issue #11 · cltk/tutorials - GitHub
I was self deluded when I thought I had installed the cltk! I did create the directory, ... Upgrade CLTK supported version 3.7...
Read more >
Installation - Pillow (PIL Fork) 9.3.0 documentation
We provide Pillow binaries for Windows compiled for the matrix of supported Pythons in both 32 and 64-bit versions in the wheel format....
Read more >
Packages for 64-bit Windows with Python 3.7
Name Version Summary / License _libgcc_mutex 0.1 Mutex for libgcc and libgcc‑ng / None aiofiles 0.7.0 File support for asyncio / Apache 2.0 alembic 1.8.1 A...
Read more >
Updated gnuradio Install Instructions - Factoria Labs
Installing gnuradio 3.8. By default the gnuradio install script installs version 3.7.13.5, the latest release before 3.8. If you want to try out ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found