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

snowboy python module includes wrong snowboy-detect-swig.o (compiled files) #568

Open
norbusan opened this issue Apr 7, 2019 · 3 comments

Comments

@norbusan
Copy link

norbusan commented Apr 7, 2019

Installation using pip(3) on x86_64-linux is broken because the Python Pip distribution (https://files.pythonhosted.org/packages/86/fc/3a13408cb3b32abff1b0539f44fca02ca378d9077b11f0c95674f278f3de/snowboy-1.2.0b1.tar.gz) contains swig/Python/snowboy-detect-swig.o which is a Mach-O 64-bit x86_64 object and newer than the .c file and thus it is not rebuilt automatically. After this, the loader fails with

  Compiling snowboy...
  g++ -I../../ -O3 -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++0x  -shared snowboy-detect-swig.o \
  ../..//lib/ubuntu64/libsnowboy-detect.a -L/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu -L/usr/lib -lpython3.5m -lpthread -ldl  -lutil -lm  -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -lm -ldl -lf77blas -lcblas -llapack_atlas -latlas -o _snowboydetect.so
  snowboy-detect-swig.o: file not recognized: File format not recognized
  collect2: error: ld returned 1 exit status

Please remove the generated files from the Python distribution package. Thanks.

(BTW, this is probably the source of several other issues mentioning that installation fails!)

@hongquan
Copy link

Have you checked this #493 yet. @norbusan ? It is the better way to build Snowboy.

@norbusan
Copy link
Author

@hongquan thanks, interesting to see. Indeed, automatic support for Python3 would be nice. Thanks for your work on that.

@marchante0
Copy link

marchante0 commented Jul 11, 2020

How could I tell pip to use that branch? I just need to install this to run kalliope.
Edit: Dunno why I asked, this is how: pip3 install --user git+https://github.com/fossasia/snowboy.git@feature/standard-Python-build

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

3 participants