AutoGPT: Could not build wheels for grpcio, grpcio-tools, mmh3, ujson, which is required to install pyproject.toml-based projects

Duplicates

  • I have searched the existing issues

Steps to reproduce 🕹

error: subprocess-exited-with-error

× Building wheel for ujson (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [7 lines of output] C:\Users\beley\AppData\Local\Temp\pip-build-env-qi7_y794\overlay\Lib\site-packages\setuptools\config\setupcfg.py:516: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead. warnings.warn(msg, warning_class) running bdist_wheel running build running build_ext building ‘ujson’ 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/ [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for ujson Failed to build grpcio grpcio-tools mmh3 ujson ERROR: Could not build wheels for grpcio, grpcio-tools, mmh3, ujson, which is required to install pyproject.toml-based projects

Current behavior 😯

The program doesn’t start after the recent upgrades. ‘Couldn’t build wheels’. Latest Microsoft Visual C++ is installed.

Expected behavior 🤔

No response

Your prompt 📝

# Paste your prompt here

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 3
  • Comments: 18 (4 by maintainers)

Most upvoted comments

No promises but I was getting a related error and it ended up going away once I downgraded to Python 3.9.13.

The version of PyMilvus is out of date and trying to use a legacy version of grpcio. I solved this by adjusting the package requirements. So far, I haven’t had an issue with it, but I also don’t use Milvus.

Here’s what worked for me:

edit requirements.txt

beautifulsoup4
colorama==0.4.6
openai==0.27.2
playsound==1.2.2
python-dotenv==1.0.0
pyyaml==6.0
readability-lxml==0.8.1
requests
tiktoken==0.3.3
gTTS==2.3.1
docker
duckduckgo-search
google-api-python-client
pinecone-client==2.2.1
pymilvus
redis
orjson
Pillow
selenium
webdriver-manager
coverage
flake8
sentence_transformers
numpy
pre-commit
black
sourcery
isort
gitpython==3.1.31
grpcio==1.53.0

execute: pip install -r requirements.txt

This fixes the dependency, but there are still errors in the current codebase that will cause it to crash out with stack trace.

you can probably resolve those issues by updating pymilvus to 2.2.6