Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't install neuralcoref #357

Open
mandanafasounaki opened this issue Jul 27, 2023 · 7 comments
Open

I can't install neuralcoref #357

mandanafasounaki opened this issue Jul 27, 2023 · 7 comments

Comments

@mandanafasounaki
Copy link

mandanafasounaki commented Jul 27, 2023

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
@chunjy92
Copy link

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
Copy link
Author

mandanafasounaki commented Jul 31, 2023

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
Copy link

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
Copy link

chunjy92 commented Aug 9, 2023

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
Copy link

adienxy commented Mar 23, 2024

same ques

@jens5588
Copy link

jens5588 commented Apr 7, 2024

any upgrade here?

@guihuzhang
Copy link

any upgrade here?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants