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

Bee-Py example doesn't work with Python 3.13 #78

Open
psschwei opened this issue Dec 19, 2024 · 1 comment
Open

Bee-Py example doesn't work with Python 3.13 #78

psschwei opened this issue Dec 19, 2024 · 1 comment
Labels
framework Building, deploying, scaling agents

Comments

@psschwei
Copy link
Collaborator

When using Python 3.13, running the basic example causes this error:

$ python -m examples.bee_agent.basic
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/paulschw/i-am-bee/bee-hive/examples/bee_agent/basic.py", line 1, in <module>
    from bee_agent import BeeAgent, LLM
  File "/home/paulschw/i-am-bee/bee-hive/venv/lib64/python3.13/site-packages/bee_agent/__init__.py", line 1, in <module>
    from .agents import BaseAgent, BeeAgent
  File "/home/paulschw/i-am-bee/bee-hive/venv/lib64/python3.13/site-packages/bee_agent/agents/__init__.py", line 1, in <module>
    from .agent import BaseAgent, BeeAgent
  File "/home/paulschw/i-am-bee/bee-hive/venv/lib64/python3.13/site-packages/bee_agent/agents/agent.py", line 10, in <module>
    from bee_agent.llms import (
    ...<5 lines>...
    )
  File "/home/paulschw/i-am-bee/bee-hive/venv/lib64/python3.13/site-packages/bee_agent/llms/__init__.py", line 2, in <module>
    from .llm import BaseLLM, LLM, AgentInput
  File "/home/paulschw/i-am-bee/bee-hive/venv/lib64/python3.13/site-packages/bee_agent/llms/llm.py", line 6, in <module>
    from litellm import completion
  File "/home/paulschw/i-am-bee/bee-hive/venv/lib64/python3.13/site-packages/litellm/__init__.py", line 952, in <module>
    from litellm.litellm_core_utils.litellm_logging import Logging, modify_integration
  File "/home/paulschw/i-am-bee/bee-hive/venv/lib64/python3.13/site-packages/litellm/litellm_core_utils/litellm_logging.py", line 70, in <module>
    from ..integrations.azure_storage.azure_storage import AzureBlobStorageLogger
  File "/home/paulschw/i-am-bee/bee-hive/venv/lib64/python3.13/site-packages/litellm/integrations/azure_storage/azure_storage.py", line 6, in <module>
    from re import S, T
ImportError: cannot import name 'T' from 're' (/usr/lib64/python3.13/re/__init__.py)
@vabarbosa
Copy link
Collaborator

vabarbosa commented Dec 19, 2024

additional context: https://docs.python.org/3.14/whatsnew/3.13.html#id5

Remove the undocumented, deprecated, and broken re.template() function and re.TEMPLATE / re.T flag,.

@psschwei psschwei added the framework Building, deploying, scaling agents label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework Building, deploying, scaling agents
Projects
None yet
Development

No branches or pull requests

2 participants