huggingface / neuralcoref

✨Fast Coreference Resolution in spaCy with Neural Networks
https://huggingface.co/coref/
MIT License
2.83k stars 474 forks source link

installation failed with #361

Open arademaker opened 8 months ago

arademaker commented 8 months ago
      clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/usr/local/include -I/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -I/private/var/folders/b_/7nbv248s2nq019mcx58xrrb80000gn/T/pip-install-4w4tbrnm/neuralcoref_ec8382bdcf32461da12bc431aa5c3c71/include -I/Users/ar/work/cpdoc/dhbb-nlp/venv/include -I/usr/local/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c neuralcoref/neuralcoref.cpp -o build/temp.macosx-14-x86_64-cpython-311/neuralcoref/neuralcoref.o -O2 -Wno-strict-prototypes -Wno-unused-function
      neuralcoref/neuralcoref.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
      [end of output]

any idea? I was following the README

ZheXu-Joseph commented 7 months ago

you can try upgrading Cpython/ downgrading python/ installing build-essential

tommybbq commented 3 months ago

Did you overcome this error @arademaker ?

mboogerd commented 2 months ago

I'm on a MacBook Pro from 2019 (2,3 GHz 8-Core Intel Core i9), macOS Sonoma 14.4.1 (23E224) and experienced the issue @arademaker mentioned, and tried a variety of python versions:

Just to share my experience and a possible way forward for others, i.e. using python 3.8(.16)

Edit: Celebrations were premature. My 3.8.16 installation cannot run the example due to #310

Edit 2: After some digging, this repository seems to have been abandoned in favour of an integration within spaCy directly, although it still lives in spaCy-experimental