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

Missing tiktoken dependency in AutoGen Studio #5007

Open
JohanForngren opened this issue Jan 11, 2025 · 0 comments · May be fixed by #5008
Open

Missing tiktoken dependency in AutoGen Studio #5007

JohanForngren opened this issue Jan 11, 2025 · 0 comments · May be fixed by #5008
Assignees
Labels
proj-studio Related to AutoGen Studio.

Comments

@JohanForngren
Copy link

What happened?

Cloning main in a devcontainer, trying to launch, results in the following error due to missing dependency tiktoken:

$ autogenstudio ui --port 8081
Traceback (most recent call last):
  File "/home/vscode/.local/bin/autogenstudio", line 5, in <module>
    from autogenstudio.cli import run
  File "/workspaces/autogen/python/packages/autogen-studio/autogenstudio/__init__.py", line 1, in <module>
    from .database.db_manager import DatabaseManager
  File "/workspaces/autogen/python/packages/autogen-studio/autogenstudio/database/__init__.py", line 1, in <module>
    from .component_factory import Component, ComponentFactory
  File "/workspaces/autogen/python/packages/autogen-studio/autogenstudio/database/component_factory.py", line 25, in <module>
    from autogen_ext.models.openai import AzureOpenAIChatCompletionClient, OpenAIChatCompletionClient
  File "/home/vscode/.local/lib/python3.12/site-packages/autogen_ext/models/openai/__init__.py", line 1, in <module>
    from ._openai_client import AzureOpenAIChatCompletionClient, BaseOpenAIChatCompletionClient, OpenAIChatCompletionClient
  File "/home/vscode/.local/lib/python3.12/site-packages/autogen_ext/models/openai/_openai_client.py", line 23, in <module>
    import tiktoken
ModuleNotFoundError: No module named 'tiktoken'

What did you expect to happen?

AutoGen studio to launch

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

  1. Clone main in a dev container based on mcr.microsoft.com/devcontainers/python:1-3.12-bullseye
  2. Run
  $ autogenstudio ui --port 8081

AutoGen version

115fefa

Which package was this bug in

AutoGen Studio

Model used

No response

Python version

3.12

Operating system

Debian GNU/Linux 11 (bullseye)

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

PR coming shortly

@JohanForngren JohanForngren changed the title Missing tiktiken dependency in AutoGen Studio Missing tiktoken dependency in AutoGen Studio Jan 11, 2025
@JohanForngren JohanForngren linked a pull request Jan 11, 2025 that will close this issue
3 tasks
@victordibia victordibia self-assigned this Jan 11, 2025
@victordibia victordibia added proj-studio Related to AutoGen Studio. and removed needs-triage labels Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proj-studio Related to AutoGen Studio.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants