usc-isi-i2 / kgtk-notebooks

Tutorial and hands-on notebook on using the Knowledge Graph Toolkit (KGTK)
MIT License
78 stars 25 forks source link

ERROR: Failed building wheel for thinc #13

Open versant2612 opened 1 year ago

versant2612 commented 1 year ago

I created a local copy of the notebooks to adapt to my research tests but when running the first kgtk installation cell I got an error.

Building wheels for collected packages: sh, thinc, peewee, iso-639, odictliteral, pycountry, sentence-transformers, blis, typing Building wheel for sh (setup.py) ... done Created wheel for sh: filename=sh-1.14.3-py2.py3-none-any.whl size=39638 sha256=3fde3a1a109ef32c3e0c953d517852bb87828f1622864126958ad5ead621ff89 Stored in directory: /root/.cache/pip/wheels/48/1e/68/186beff3cdcf04ad2a63b3756fd7eaa8d957e538fdc63787f6 error: subprocess-exited-with-error

× python setup.py bdist_wheel 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. Building wheel for thinc (setup.py) ... error ERROR: Failed building wheel for thinc Running setup.py clean for thinc

saggu commented 1 year ago

@versant2612 where are you running the notebooks? In google colab or locally ?

Which machine are you using? and which operating system. If you have a new Mac laptop: please see this section in the documentation: https://github.com/usc-isi-i2/kgtk#installation-issues-on-macbooks-with-m1-chip

versant2612 commented 1 year ago

@saggu sorry, I've forgot to mention that I am usagin Google Colab.

saggu commented 1 year ago

@versant2612 I am seeing error on my end also. I would suggest to run the notebooks locally.

  1. run pip install thinc
  2. comment out the line in kgtk requirements.txt which installs thinc (thinc==7.4.0)
  3. run pip install -e . from the kgtk folder.

Ideally we would fix this in a release, but that will happen when I have some free time. Sorry for the inconvenience

versant2612 commented 1 year ago

@saggu thank you.