Coder Social home page Coder Social logo

Installation fails on windows 64-bit with 'ERROR: Could not build wheels for annoy, which is required to install pyproject.toml-based projects' error about nemo-guardrails HOT 3 CLOSED

nvidia avatar nvidia commented on August 18, 2024
Installation fails on windows 64-bit with 'ERROR: Could not build wheels for annoy, which is required to install pyproject.toml-based projects' error

from nemo-guardrails.

Comments (3)

trebedea avatar trebedea commented on August 18, 2024 1

Hi @archanadixit ,

Thanks for signaling this.
We had not testing an install on Windows 64 bit with python 3.11 until now. But I have just installed the latest release (nemoguardrails-0.4.0) today on a fresh venv with 3.11 and did not encounter any issues (log is below).

As far as I understand, your problem is related to not having installed Microsoft C++ Build Tools on your machine

building 'annoy.annoylib' extension
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/

Can you check if this is the case and install the build tools if you don't have them?
If this solves your problem, please close the issue.

My clean install log:

(venv) C:\Users\trebedea\projects\test-python-3.11>pip install nemoguardrails
Collecting nemoguardrails
Downloading nemoguardrails-0.4.0-py3-none-any.whl (13.9 MB)
---------------------------------------- 13.9/13.9 MB 1.1 MB/s eta 0:00:00
Collecting pydantic~=1.10.6
Downloading pydantic-1.10.12-cp311-cp311-win_amd64.whl (2.1 MB)
---------------------------------------- 2.1/2.1 MB 555.5 kB/s eta 0:00:00
Collecting aiohttp==3.8.4
Downloading aiohttp-3.8.4-cp311-cp311-win_amd64.whl (317 kB)
---------------------------------------- 317.2/317.2 kB 561.2 kB/s eta 0:00:00
Collecting langchain==0.0.251
Using cached langchain-0.0.251-py3-none-any.whl (1.4 MB)
Collecting requests>=2.31.0
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Collecting typer==0.7.0
Using cached typer-0.7.0-py3-none-any.whl (38 kB)
Collecting PyYAML~=6.0
Downloading PyYAML-6.0.1-cp311-cp311-win_amd64.whl (144 kB)
---------------------------------------- 144.7/144.7 kB 537.8 kB/s eta 0:00:00
Collecting setuptools~=65.5.1
Using cached setuptools-65.5.1-py3-none-any.whl (1.2 MB)
Collecting annoy==1.17.3
Using cached annoy-1.17.3.tar.gz (647 kB)
Preparing metadata (setup.py) ... done
Collecting sentence-transformers==2.2.2
Using cached sentence-transformers-2.2.2.tar.gz (85 kB)
Preparing metadata (setup.py) ... done
Collecting fastapi==0.96.0
Using cached fastapi-0.96.0-py3-none-any.whl (57 kB)
Collecting starlette==0.27.0
Using cached starlette-0.27.0-py3-none-any.whl (66 kB)
Collecting uvicorn==0.22.0
Using cached uvicorn-0.22.0-py3-none-any.whl (58 kB)
Collecting httpx==0.23.3
Using cached httpx-0.23.3-py3-none-any.whl (71 kB)
Collecting simpleeval==0.9.13
Using cached simpleeval-0.9.13-py2.py3-none-any.whl (15 kB)
Collecting typing-extensions==4.5.0
Using cached typing_extensions-4.5.0-py3-none-any.whl (27 kB)
Collecting Jinja2==3.1.2
Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting attrs>=17.3.0
Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
Collecting charset-normalizer<4.0,>=2.0
Downloading charset_normalizer-3.2.0-cp311-cp311-win_amd64.whl (96 kB)
---------------------------------------- 96.6/96.6 kB 690.5 kB/s eta 0:00:00
Collecting multidict<7.0,>=4.5
Downloading multidict-6.0.4-cp311-cp311-win_amd64.whl (28 kB)
Collecting async-timeout<5.0,>=4.0.0a3
Downloading async_timeout-4.0.3-py3-none-any.whl (5.7 kB)
Collecting yarl<2.0,>=1.0
Downloading yarl-1.9.2-cp311-cp311-win_amd64.whl (60 kB)
---------------------------------------- 60.2/60.2 kB 640.7 kB/s eta 0:00:00
Collecting frozenlist>=1.1.1
Downloading frozenlist-1.4.0-cp311-cp311-win_amd64.whl (44 kB)
---------------------------------------- 44.9/44.9 kB 550.6 kB/s eta 0:00:00
Collecting aiosignal>=1.1.2
Using cached aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting certifi
Using cached certifi-2023.7.22-py3-none-any.whl (158 kB)
Collecting httpcore<0.17.0,>=0.15.0
Using cached httpcore-0.16.3-py3-none-any.whl (69 kB)
Collecting rfc3986[idna2008]<2,>=1.3
Using cached rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting sniffio
Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting MarkupSafe>=2.0
Downloading MarkupSafe-2.1.3-cp311-cp311-win_amd64.whl (17 kB)
Collecting SQLAlchemy<3,>=1.4
Downloading SQLAlchemy-2.0.19-cp311-cp311-win_amd64.whl (2.0 MB)
---------------------------------------- 2.0/2.0 MB 567.6 kB/s eta 0:00:00
Collecting dataclasses-json<0.6.0,>=0.5.7
Downloading dataclasses_json-0.5.14-py3-none-any.whl (26 kB)
Collecting langsmith<0.1.0,>=0.0.11
Downloading langsmith-0.0.22-py3-none-any.whl (32 kB)
Collecting numexpr<3.0.0,>=2.8.4
Downloading numexpr-2.8.5-cp311-cp311-win_amd64.whl (94 kB)
---------------------------------------- 94.4/94.4 kB 771.9 kB/s eta 0:00:00
Collecting numpy<2,>=1
Downloading numpy-1.25.2-cp311-cp311-win_amd64.whl (15.5 MB)
---------------------------------------- 15.5/15.5 MB 3.0 MB/s eta 0:00:00
Collecting openapi-schema-pydantic<2.0,>=1.2
Using cached openapi_schema_pydantic-1.2.4-py3-none-any.whl (90 kB)
Collecting tenacity<9.0.0,>=8.1.0
Downloading tenacity-8.2.3-py3-none-any.whl (24 kB)
Collecting transformers<5.0.0,>=4.6.0
Using cached transformers-4.31.0-py3-none-any.whl (7.4 MB)
Collecting tqdm
Downloading tqdm-4.66.1-py3-none-any.whl (78 kB)
---------------------------------------- 78.3/78.3 kB 4.3 MB/s eta 0:00:00
Collecting torch>=1.6.0
Downloading torch-2.0.1-cp311-cp311-win_amd64.whl (172.3 MB)
---------------------------------------- 172.3/172.3 MB 9.8 MB/s eta 0:00:00
Collecting torchvision
Downloading torchvision-0.15.2-cp311-cp311-win_amd64.whl (1.2 MB)
---------------------------------------- 1.2/1.2 MB 304.7 kB/s eta 0:00:00
Collecting scikit-learn
Downloading scikit_learn-1.3.0-cp311-cp311-win_amd64.whl (9.2 MB)
---------------------------------------- 9.2/9.2 MB 13.7 MB/s eta 0:00:00
Collecting scipy
Downloading scipy-1.11.1-cp311-cp311-win_amd64.whl (44.0 MB)
---------------------------------------- 44.0/44.0 MB 13.4 MB/s eta 0:00:00
Collecting nltk
Using cached nltk-3.8.1-py3-none-any.whl (1.5 MB)
Collecting sentencepiece
Downloading sentencepiece-0.1.99-cp311-cp311-win_amd64.whl (977 kB)
---------------------------------------- 977.5/977.5 kB 12.4 MB/s eta 0:00:00
Collecting huggingface-hub>=0.4.0
Using cached huggingface_hub-0.16.4-py3-none-any.whl (268 kB)
Collecting anyio<5,>=3.4.0
Using cached anyio-3.7.1-py3-none-any.whl (80 kB)
Collecting click<9.0.0,>=7.1.1
Using cached click-8.1.6-py3-none-any.whl (97 kB)
Collecting h11>=0.8
Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Collecting idna<4,>=2.5
Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting urllib3<3,>=1.21.1
Using cached urllib3-2.0.4-py3-none-any.whl (123 kB)
Collecting colorama
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting marshmallow<4.0.0,>=3.18.0
Using cached marshmallow-3.20.1-py3-none-any.whl (49 kB)
Collecting typing-inspect<1,>=0.4.0
Using cached typing_inspect-0.9.0-py3-none-any.whl (8.8 kB)
Collecting filelock
Using cached filelock-3.12.2-py3-none-any.whl (10 kB)
Collecting fsspec
Using cached fsspec-2023.6.0-py3-none-any.whl (163 kB)
Collecting packaging>=20.9
Using cached packaging-23.1-py3-none-any.whl (48 kB)
Collecting greenlet!=0.4.17
Downloading greenlet-2.0.2-cp311-cp311-win_amd64.whl (192 kB)
---------------------------------------- 192.5/192.5 kB 12.1 MB/s eta 0:00:00
Collecting sympy
Using cached sympy-1.12-py3-none-any.whl (5.7 MB)
Collecting networkx
Using cached networkx-3.1-py3-none-any.whl (2.1 MB)
Collecting regex!=2019.12.17
Downloading regex-2023.8.8-cp311-cp311-win_amd64.whl (268 kB)
---------------------------------------- 268.3/268.3 kB 8.1 MB/s eta 0:00:00
Collecting tokenizers!=0.11.3,<0.14,>=0.11.1
Downloading tokenizers-0.13.3-cp311-cp311-win_amd64.whl (3.5 MB)
---------------------------------------- 3.5/3.5 MB 14.8 MB/s eta 0:00:00
Collecting safetensors>=0.3.1
Downloading safetensors-0.3.2-cp311-cp311-win_amd64.whl (266 kB)
---------------------------------------- 266.3/266.3 kB 17.1 MB/s eta 0:00:00
Collecting joblib
Downloading joblib-1.3.2-py3-none-any.whl (302 kB)
---------------------------------------- 302.2/302.2 kB 19.5 MB/s eta 0:00:00
Collecting threadpoolctl>=2.0.0
Using cached threadpoolctl-3.2.0-py3-none-any.whl (15 kB)
Collecting pillow!=8.3.*,>=5.3.0
Downloading Pillow-10.0.0-cp311-cp311-win_amd64.whl (2.5 MB)
---------------------------------------- 2.5/2.5 MB 17.8 MB/s eta 0:00:00
Collecting mypy-extensions>=0.3.0
Using cached mypy_extensions-1.0.0-py3-none-any.whl (4.7 kB)
Collecting mpmath>=0.19
Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Building wheels for collected packages: annoy, sentence-transformers
Building wheel for annoy (setup.py) ... done
Created wheel for annoy: filename=annoy-1.17.3-cp311-cp311-win_amd64.whl size=52210 sha256=58bb4db45af8b00cd8eb1f3bb07c5abc4105a46fba9855c576c6fcbaa1c6a5b9
Stored in directory: c:\users\trebedea\appdata\local\pip\cache\wheels\6f\b7\de\ac2140ac002f1205a2585937fa08a096ad3f23a8a7dd4b0976
Building wheel for sentence-transformers (setup.py) ... done
Created wheel for sentence-transformers: filename=sentence_transformers-2.2.2-py3-none-any.whl size=125960 sha256=ebb3a4e904fe795e0b5b02fe5b4522ac5147f68057a38520650fd8d81e958715
Stored in directory: c:\users\trebedea\appdata\local\pip\cache\wheels\c5\ca\33\8657d5aded943d57e56bf40ec332c8960f9f3f70a143e34731
Successfully built annoy sentence-transformers
Installing collected packages: tokenizers, simpleeval, sentencepiece, safetensors, rfc3986, mpmath, annoy, urllib3, typing-extensions, threadpoolctl, tenacity, sympy, sniffio, setuptools, regex, PyYAML, pillow, packaging, numpy, networkx, mypy-extensions, multidict, MarkupSafe, joblib, idna, h11, greenlet, fsspec, frozenlist, filelock, colorama, charset-normalizer, certifi, attrs, async-timeout, yarl, typing-inspect, tqdm, SQLAlchemy, scipy, requests, pydantic, numexpr, marshmallow, Jinja2, click, anyio, aiosignal, uvicorn, typer, torch, starlette, scikit-learn, openapi-schema-pydantic, nltk, langsmith, huggingface-hub, httpcore, dataclasses-json, aiohttp, transformers, torchvision, langchain, httpx, fastapi, sentence-transformers, nemoguardrails
Attempting uninstall: setuptools
Found existing installation: setuptools 65.6.3
Uninstalling setuptools-65.6.3:
Successfully uninstalled setuptools-65.6.3
Successfully installed Jinja2-3.1.2 MarkupSafe-2.1.3 PyYAML-6.0.1 SQLAlchemy-2.0.19 aiohttp-3.8.4 aiosignal-1.3.1 annoy-1.17.3 anyio-3.7.1 async-timeout-4.0.3 attrs-23.1.0 certifi-2023.7.22 charset-normalizer-3.2.0 click-8.1.6 colorama-0.4.6 dataclasses-json-0.5.14 fastapi-0.96.0 filelock-3.12.2 frozenlist-1.4.0 fsspec-2023.6.0 greenlet-2.0.2 h11-0.14.0 httpcore-0.16.3 httpx-0.23.3 huggingface-hub-0.16.4 idna-3.4 joblib-1.3.2 langchain-0.0.251 langsmith-0.0.22 marshmallow-3.20.1 mpmath-1.3.0 multidict-6.0.4 mypy-extensions-1.0.0 nemoguardrails-0.4.0 networkx-3.1 nltk-3.8.1 numexpr-2.8.5 numpy-1.25.2 openapi-schema-pydantic-1.2.4 packaging-23.1 pillow-10.0.0 pydantic-1.10.12 regex-2023.8.8 requests-2.31.0 rfc3986-1.5.0 safetensors-0.3.2 scikit-learn-1.3.0 scipy-1.11.1 sentence-transformers-2.2.2 sentencepiece-0.1.99 setuptools-65.5.1 simpleeval-0.9.13 sniffio-1.3.0 starlette-0.27.0 sympy-1.12 tenacity-8.2.3 threadpoolctl-3.2.0 tokenizers-0.13.3 torch-2.0.1 torchvision-0.15.2 tqdm-4.66.1 transformers-4.31.0 typer-0.7.0 typing-extensions-4.5.0 typing-inspect-0.9.0 urllib3-2.0.4 uvicorn-0.22.0 yarl-1.9.2

from nemo-guardrails.

oscarnz avatar oscarnz commented on August 18, 2024

I have the same error running on bitbucket pipelines, any solution on these?

from nemo-guardrails.

archanadixit avatar archanadixit commented on August 18, 2024

Hi @trebedea

Apologies for late response.
I will close this issue for now.

-Archana

from nemo-guardrails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.