microsoft / autogen

A programming framework for agentic AI 🤖
https://microsoft.github.io/autogen/
Creative Commons Attribution 4.0 International
34.65k stars 5.01k forks source link

Python Version Compatibility #4278

Open arthaszyb opened 2 days ago

arthaszyb commented 2 days ago

What happened?

There is a fault while pip installs autoGen with the Python versions higher than 3.12. But the current reminder only point to the versions below 3.10.

File "/private/var/folders/0d/ftmmyfbs25g4t_4p7lhn3j3c0000gq/T/pip-build-env-q3_t8ewn/overlay/lib/python3.13/site-packages/setuptools/_distutils/unixccompiler.py", line 202, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command '/usr/bin/clang++' failed with exit code 1

  [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for grpcio
Failed to build grpcio
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (grpcio)

What did you expect to happen?

Python version compatibility issue.

How can we reproduce it (as minimally and precisely as possible)?

  1. Remark the compatible Python version range in the README doc.
  2. Ensure compatibility with future major versions of Python.

AutoGen version

0.4

Which package was this bug in

AgentChat

Model used

No response

Python version

3.13 and above

Operating system

MacOS

Any additional info you think would be helpful for fixing this bug

No response

jackgerrits commented 1 day ago

This is due to the grpcio dependency not having wheels built for 3.13 and the source build subsequently failing. To fix this we'll need to upgrade grpcio to at least 1.66. This is important but will need to be taken on as a task to ensure xlang is still working.