Skip to content

I can't install neuralcoref #357

Open
@mandanafasounaki

Description

I get different errors every time I try to install the package. One of them is this on Google Colab when I use

pip install -e .
Obtaining file:///content/neuralcoref
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Preparing metadata (setup.py) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

This is the environment:

Package            Version
------------------ -------------
blinker            1.4
blis               0.2.4
boto3              1.28.12
botocore           1.31.12
certifi            2023.7.22
charset-normalizer 3.2.0
cryptography       3.4.8
cymem              2.0.7
Cython             3.0.0
dbus-python        1.2.18
distro             1.7.0
exceptiongroup     1.1.2
idna               3.4
importlib-metadata 4.6.4
iniconfig          2.0.0
jeepney            0.7.1
jmespath           1.0.1
jsonschema         2.6.0
keyring            23.5.0
launchpadlib       1.10.16
lazr.restfulclient 0.14.4
lazr.uri           1.0.6
murmurhash         1.0.9
neuralcoref        4.0
numpy              1.21.6
packaging          23.1
pip                23.2.1
plac               0.9.6
pluggy             1.2.0
preshed            2.0.1
PyGObject          3.42.1
PyJWT              2.3.0
pytest             7.4.0
python-apt         2.4.0+ubuntu1
python-dateutil    2.8.2
requests           2.31.0
s3transfer         0.6.1
SecretStorage      3.3.1
setuptools         68.0.0
six                1.16.0
spacy              2.1.3
srsly              1.0.7
thinc              7.0.8
tomli              2.0.1
tqdm               4.65.0
typing_extensions  4.7.1
urllib3            1.26.16
wadllib            1.3.6
wasabi             0.10.1
wheel              0.41.0

Activity

chunjy92

chunjy92 commented on Jul 29, 2023

@chunjy92

had same issue but resolved by downgrading cython to 0.29 (neither 0.28 nor 0.30 will work)

pip install cython==0.29 --upgrade

mandanafasounaki

mandanafasounaki commented on Jul 31, 2023

@mandanafasounaki
Author

had same issue but resolved by downgrading cython to 0.29 (neither 0.28 nor 0.30 will work)

pip install cython==0.29 --upgrade

Thank you for the recommendation, but this is the output for installing cython 0.29:

   ...                                                        ^
      /private/var/folders/p6/1r8w12tn453fb2sybq6h72d40000gn/T/pip-install-_qz2gn4n/cython_bcca0e5411dc48d18b2ead6c30b3e539/Cython/Plex/Scanners.c:8362:16: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
              return PyUnicode_FromUnicode(NULL, 0);
                     ^
      /Users/mdp/opt/anaconda3/include/python3.9/cpython/unicodeobject.h:551:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here
      Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      ^
      /Users/mdp/opt/anaconda3/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      16 warnings and 1 error generated.
      error: command '/usr/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 cython
  Running setup.py clean for cython
Failed to build cython
ERROR: Could not build wheels for cython, which is required to install pyproject.toml-based projects
manugrana2

manugrana2 commented on Aug 8, 2023

@manugrana2

had same issue but resolved by downgrading cython to 0.29 (neither 0.28 nor 0.30 will work)

pip install cython==0.29 --upgrade

Hi, @chunjy92 what python version did you use?

chunjy92

chunjy92 commented on Aug 9, 2023

@chunjy92

had same issue but resolved by downgrading cython to 0.29 (neither 0.28 nor 0.30 will work)
pip install cython==0.29 --upgrade

Hi, @chunjy92 what python version did you use?

Python 3.7.3

adienxy

adienxy commented on Mar 23, 2024

@adienxy

same ques

jens5588

jens5588 commented on Apr 7, 2024

@jens5588

any upgrade here?

guihuzhang

guihuzhang commented on Apr 10, 2024

@guihuzhang

any upgrade here?

I can install by using cython==0.29 and python==3.8. Can't install for python>=3.9.

141forever

141forever commented on Jul 3, 2024

@141forever

had same issue but resolved by downgrading cython to 0.29 (neither 0.28 nor 0.30 will work)
pip install cython==0.29 --upgrade

Thank you for the recommendation, but this is the output for installing cython 0.29:

   ...                                                        ^
      /private/var/folders/p6/1r8w12tn453fb2sybq6h72d40000gn/T/pip-install-_qz2gn4n/cython_bcca0e5411dc48d18b2ead6c30b3e539/Cython/Plex/Scanners.c:8362:16: warning: 'PyUnicode_FromUnicode' is deprecated [-Wdeprecated-declarations]
              return PyUnicode_FromUnicode(NULL, 0);
                     ^
      /Users/mdp/opt/anaconda3/include/python3.9/cpython/unicodeobject.h:551:1: note: 'PyUnicode_FromUnicode' has been explicitly marked deprecated here
      Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
      ^
      /Users/mdp/opt/anaconda3/include/python3.9/pyport.h:508:54: note: expanded from macro 'Py_DEPRECATED'
      #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                           ^
      16 warnings and 1 error generated.
      error: command '/usr/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 cython
  Running setup.py clean for cython
Failed to build cython
ERROR: Could not build wheels for cython, which is required to install pyproject.toml-based projects

same question

Aryan-Deshpande

Aryan-Deshpande commented on Nov 18, 2024

@Aryan-Deshpande

yoo any update?

guihuzhang

guihuzhang commented on Nov 18, 2024

@guihuzhang

yoo any update?

From my personal feeling of using this package, I think the solution is to downgrade the environment. It works for me with python3.7 and spacy 2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      I can't install neuralcoref · Issue #357 · huggingface/neuralcoref