semantra icon indicating copy to clipboard operation
semantra copied to clipboard

Error installing semantra.

Open lhtiger opened this issue 1 year ago • 5 comments

hi:

  The following error was found, please help.

Fatal error from pip prevented installation. Full pip output in file: C:\Users\lh_ti.local\pipx\logs\cmd_2023-04-25_15.39.21_pip_errors.log

pip failed to build package: annoy-fixed

Some possibly relevant errors from pip install: error: subprocess-exited-with-error error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

Error installing semantra.

error

visual c++

lhtiger avatar Apr 25 '23 08:04 lhtiger

It seems that this is not a code error. You may need to install Microsoft's development kit first. The error message indicates that Microsoft Visual C++ needs to be installed beforehand.

xiqiuqiu avatar Apr 25 '23 08:04 xiqiuqiu

The following image shows the package I installed, and Latest package.

lhtiger avatar Apr 25 '23 12:04 lhtiger

Can anyone confirm that Semantra is installable on Windows? I don't have a Windows machine so it's hard for me to validate that it's just a build error.

freedmand avatar Apr 25 '23 15:04 freedmand

thanks!

lhtiger avatar Apr 26 '23 06:04 lhtiger

I experienced the same install error. Have you fixed it? how can it be fixed?

yeghub avatar Apr 27 '23 05:04 yeghub

I installed the ubuntu virtual machine on my own machine and it was successful.

lhtiger avatar Apr 28 '23 06:04 lhtiger

Solved it on mac by running: xcode-select --install

Ayman-Fadil avatar Apr 28 '23 14:04 Ayman-Fadil

Closing this issue for now since it appears to be unrelated to Semantra itself. If we get enough common installation issues and how to fix them, I can put together a troubleshooting guide. Many thanks!

freedmand avatar Apr 29 '23 15:04 freedmand

I faced some errors when trying to install on windows subsystem on linux but installing gcc and g++ resolved those issues:

(research) chuaxr@MSS21701323:~$ pipx install semantra
Fatal error from pip prevented installation. Full pip output in file:
    /home/chuaxr/.local/pipx/logs/cmd_2023-05-04_12.38.19_pip_errors.log

pip failed to build package:
    annoy-fixed

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    error: command 'gcc' failed: No such file or directory
    error: legacy-install-failure
(research) chuaxr@MSS21701323:~$ pipx install semantra
Fatal error from pip prevented installation. Full pip output in file:
    /home/chuaxr/.local/pipx/logs/cmd_2023-05-04_12.49.24_pip_errors.log

pip failed to build package:
    annoy-fixed

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    gcc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
    error: command '/usr/bin/gcc' failed with exit code 1
    error: legacy-install-failure

chuaxr avatar May 04 '23 06:05 chuaxr

I get the same error attempting to install on Windows in PowerShell, i.e. Microsoft Visual C++ 14.0 or greater is required. However, the Visual C++ package is already installed.

I'm happy to run it in WSL, but perhaps lack of compatibility with Windows per se should be flagged in the README.

Jaifroid avatar Feb 14 '24 08:02 Jaifroid