scrapinghub / python-crfsuite

A python binding for crfsuite
MIT License
769 stars 223 forks source link

Install Fails on M1 Mac #149

Closed seandenigris closed 7 months ago

seandenigris commented 2 years ago

I tried to do pipenv install python-crfsuite, but got 12 errors.

Platform details:

Here is the output: crf_errors.txt

I'm guessing maybe it's a Mac ARM-specific problem, since AFAICT from other issues, the python3 problems have been solved.

nmalaguti commented 2 years ago

I've seen a similar problem when only having the CommandLineTools installed.

Install worked correctly for me when using the include path

-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include

instead of

-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include

I'm not sure how to force -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include to appear first in the list of include paths.

krkd commented 1 year ago

Issue is not connected to python-crfsuite but with local configuration. Check comment it may solve your problem

whwright commented 1 year ago

I am having the same errors even after reading the thread about xcode select path, and my error output has /Library/Developer/CommandLineTools/*. Any updates on this?

fgregg commented 7 months ago

should work now

bebaek commented 2 months ago

I had the same problem with python 3.9 but could install it fine with python 3.10. (I use pyenv for multiple python versions on macos.)