neuralcoref icon indicating copy to clipboard operation
neuralcoref copied to clipboard

installation failed with

Open arademaker opened this issue 2 years ago • 5 comments

      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/[email protected]/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/[email protected]/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

arademaker avatar Nov 09 '23 23:11 arademaker

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

ZheXu-Joseph avatar Dec 06 '23 21:12 ZheXu-Joseph

Did you overcome this error @arademaker ?

tommybbq avatar Mar 13 '24 12:03 tommybbq

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:

  • 3.11.2: Failed with the same error as above
  • 3.10.10: Failed due to instances of neuralcoref.cpp:49376:72: error: no member named 'tp_print' in '_typeobject'
  • 3.9.16: Failed due to instances of neuralcoref.cpp:49376:72: error: no member named 'tp_print' in '_typeobject'
  • 3.8.16: Succeeded

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

mboogerd avatar May 01 '24 12:05 mboogerd

No solution yet, right?

     clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/opt/homebrew/opt/llvm/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.12/include/python3.12 -I/private/var/folders/__/49tv_g9s6278ljp2ld68b0l40000gn/T/pip-install-uu3c1u75/neuralcoref_f0fc437021f14c30bd3ee7814510fd2a/include -I/Users/ar/r/mrs-logic/venv/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c neuralcoref/neuralcoref.cpp -o build/temp.macosx-14.0-arm64-cpython-312/neuralcoref/neuralcoref.o -O2 -Wno-strict-prototypes -Wno-unused-function
      neuralcoref/neuralcoref.cpp:196:12: fatal error: 'longintrepr.h' file not found
        196 |   #include "longintrepr.h"
            |            ^~~~~~~~~~~~~~~
      1 error generated.
      error: command '/opt/homebrew/opt/llvm/bin/clang' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for neuralcoref
Failed to build neuralcoref
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (neuralcoref)
(venv) ar@tranco mrs-logic %

arademaker avatar Jul 25 '24 19:07 arademaker