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

Unable to install txtai, below is the error. I have installed c++ build tools #1

Closed
chintanckg opened this issue Aug 12, 2020 · 5 comments
Assignees
Milestone

Comments

@chintanckg
Copy link

File "c:\users\gaussfer\anaconda3\lib\distutils\command\build_ext.py", line 340, in run
    self.build_extensions()
  File "C:\Users\Gaussfer\AppData\Local\Temp\pip-install-1drqoyp0\faiss-gpu\setup.py", line 50, in build_extensions
    self._remove_flag('-Wstrict-prototypes')
  File "C:\Users\Gaussfer\AppData\Local\Temp\pip-install-1drqoyp0\faiss-gpu\setup.py", line 58, in _remove_flag
    compiler = self.compiler.compiler
AttributeError: 'MSVCCompiler' object has no attribute 'compiler'
----------------------------------------

ERROR: Command errored out with exit status 1: 'c:\users\gaussfer\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Gaussfer\AppData\Local\Temp\pip-install-1drqoyp0\faiss-gpu\setup.py'"'"'; file='"'"'C:\Users\Gaussfer\AppData\Local\Temp\pip-install-1drqoyp0\faiss-gpu\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\Gaussfer\AppData\Local\Temp\pip-record-wnt_ovu1\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\gaussfer\anaconda3\Include\faiss-gpu' Check the logs for full command output.

@davidmezzetti
Copy link
Member

Thank you for the notes on this issue. Unfortunately, I haven't tested with Windows and it looks like one of the packages referenced, faiss-gpu, doesn't support Windows.

If you're willing to give it a try, there is a port of faiss for Windows here: https://github.com/bitsun/faiss/blob/master/INSTALL_cmake.md. Otherwise, I'll work to locate a Windows machine to further test the install process on Windows.

The thought would be to build this package and ignore the faiss-gpu dependency when installing txtai.

@chintanckg
Copy link
Author

@davidmezzetti I tried it, appears setting up faiss on windows is not that straightforward. I have a box with big GPU and Windows OS, can't move to linux as of now. Will try to find a linux box for experimentation, meanwhile please let us know if you find any work around!

@davidmezzetti
Copy link
Member

After spending a good deal of time working to setup an environment to compile faiss on Windows, I realize that it's not a practical solution. Will investigate having a fallback option for Windows when faiss isn't present.

@chintanckg
Copy link
Author

@davidmezzetti thanks for update, highly appreciate this!

@davidmezzetti
Copy link
Member

This issue has been resolved with v1.1.0, Windows installs should now work without issue.

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

2 participants