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

Once started AutoGen studio console should print message with url to visit #5097

Open
jackgerrits opened this issue Jan 17, 2025 · 1 comment
Labels
proj-studio Related to AutoGen Studio.

Comments

@jackgerrits
Copy link
Member

It would be handy to have a message in the output with the url to access studio. Simply as a nudge/helper in the right direction.

Current output:

/Users/jackgerrits/w/autogen-studio-app-dir/.venv/lib/python3.13/site-packages/pydantic/_internal/_config.py:295: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
  warnings.warn(DEPRECATION_MESSAGE, DeprecationWarning)
/Users/jackgerrits/w/autogen-studio-app-dir/.venv/lib/python3.13/site-packages/pydantic/_internal/_generate_schema.py:297: PydanticDeprecatedSince20: `json_encoders` is deprecated. See https://docs.pydantic.dev/2.10/concepts/serialization/#custom-serializers for alternatives. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
  warnings.warn(
/Users/jackgerrits/w/autogen-studio-app-dir/.venv/lib/python3.13/site-packages/websockets/legacy/__init__.py:6: DeprecationWarning: websockets.legacy is deprecated; see https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions
  warnings.warn(  # deprecated in 14.0 - 2024-11-09
/Users/jackgerrits/w/autogen-studio-app-dir/.venv/lib/python3.13/site-packages/uvicorn/protocols/websockets/websockets_impl.py:17: DeprecationWarning: websockets.server.WebSocketServerProtocol is deprecated
  from websockets.server import WebSocketServerProtocol
2025-01-17 08:12:20.968 | INFO     | autogenstudio.web.initialization:__init__:40 - Initialized application data folder: app
INFO:     Started server process [15983]
INFO:     Waiting for application startup.
2025-01-17 08:12:20.983 | INFO     | autogenstudio.web.app:lifespan:35 - Initializing application...
2025-01-17 08:12:21.000 | INFO     | autogenstudio.database.db_manager:initialize_database:53 - Creating database tables...
2025-01-17 08:12:21.022 | INFO     | autogenstudio.database.schema_manager:initialize_migrations:48 - Force reinitialization of migrations...
2025-01-17 08:12:21.022 | INFO     | autogenstudio.database.schema_manager:_cleanup_existing_alembic:91 - Cleaning up existing Alembic configuration...
2025-01-17 08:12:21.022 | INFO     | autogenstudio.database.schema_manager:_initialize_alembic:133 - Initializing alembic directory structure...
  Creating directory '/Users/jackgerrits/w/autogen-studio-app-dir/app/alembic' ...  done
  Creating directory '/Users/jackgerrits/w/autogen-studio-app-dir/app/alembic/versions' ...  done
  Generating /Users/jackgerrits/w/autogen-studio-app-dir/app/alembic/script.py.mako ...  done
  Generating /Users/jackgerrits/w/autogen-studio-app-dir/app/alembic/env.py ...  done
  Generating /Users/jackgerrits/w/autogen-studio-app-dir/app/alembic/README ...  done
  File '/Users/jackgerrits/w/autogen-studio-app-dir/app/alembic.ini' already exists, skipping
  Please edit configuration/connection/logging settings in '/Users/jackgerrits/w/autogen-studio-app-dir/app/alembic.ini' before proceeding.
2025-01-17 08:12:21.038 | INFO     | autogenstudio.database.schema_manager:update_script_template:268 - Updated script template
2025-01-17 08:12:21.039 | INFO     | autogenstudio.database.schema_manager:_update_env_py:324 - Updated env.py with SQLModel metadata
2025-01-17 08:12:21.039 | INFO     | autogenstudio.database.schema_manager:_initialize_alembic:150 - Alembic initialization complete
2025-01-17 08:12:21.039 | INFO     | autogenstudio.database.schema_manager:initialize_migrations:63 - Creating initial migration...
INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
  Generating /Users/jackgerrits/w/autogen-studio-app-dir/app/alembic/versions/5e836c99cc6f_initial_schema.py ...  done
2025-01-17 08:12:21.082 | INFO     | autogenstudio.web.app:lifespan:39 - Managers initialized successfully
2025-01-17 08:12:21.082 | INFO     | autogenstudio.web.app:lifespan:42 - Application startup complete

Possible output:

/Users/jackgerrits/w/autogen-studio-app-dir/.venv/lib/python3.13/site-packages/pydantic/_internal/_config.py:295: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
  warnings.warn(DEPRECATION_MESSAGE, DeprecationWarning)
/Users/jackgerrits/w/autogen-studio-app-dir/.venv/lib/python3.13/site-packages/pydantic/_internal/_generate_schema.py:297: PydanticDeprecatedSince20: `json_encoders` is deprecated. See https://docs.pydantic.dev/2.10/concepts/serialization/#custom-serializers for alternatives. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.10/migration/
  warnings.warn(
/Users/jackgerrits/w/autogen-studio-app-dir/.venv/lib/python3.13/site-packages/websockets/legacy/__init__.py:6: DeprecationWarning: websockets.legacy is deprecated; see https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions
  warnings.warn(  # deprecated in 14.0 - 2024-11-09
/Users/jackgerrits/w/autogen-studio-app-dir/.venv/lib/python3.13/site-packages/uvicorn/protocols/websockets/websockets_impl.py:17: DeprecationWarning: websockets.server.WebSocketServerProtocol is deprecated
  from websockets.server import WebSocketServerProtocol
2025-01-17 08:12:20.968 | INFO     | autogenstudio.web.initialization:__init__:40 - Initialized application data folder: app
INFO:     Started server process [15983]
INFO:     Waiting for application startup.
2025-01-17 08:12:20.983 | INFO     | autogenstudio.web.app:lifespan:35 - Initializing application...
2025-01-17 08:12:21.000 | INFO     | autogenstudio.database.db_manager:initialize_database:53 - Creating database tables...
2025-01-17 08:12:21.022 | INFO     | autogenstudio.database.schema_manager:initialize_migrations:48 - Force reinitialization of migrations...
2025-01-17 08:12:21.022 | INFO     | autogenstudio.database.schema_manager:_cleanup_existing_alembic:91 - Cleaning up existing Alembic configuration...
2025-01-17 08:12:21.022 | INFO     | autogenstudio.database.schema_manager:_initialize_alembic:133 - Initializing alembic directory structure...
  Creating directory '/Users/jackgerrits/w/autogen-studio-app-dir/app/alembic' ...  done
  Creating directory '/Users/jackgerrits/w/autogen-studio-app-dir/app/alembic/versions' ...  done
  Generating /Users/jackgerrits/w/autogen-studio-app-dir/app/alembic/script.py.mako ...  done
  Generating /Users/jackgerrits/w/autogen-studio-app-dir/app/alembic/env.py ...  done
  Generating /Users/jackgerrits/w/autogen-studio-app-dir/app/alembic/README ...  done
  File '/Users/jackgerrits/w/autogen-studio-app-dir/app/alembic.ini' already exists, skipping
  Please edit configuration/connection/logging settings in '/Users/jackgerrits/w/autogen-studio-app-dir/app/alembic.ini' before proceeding.
2025-01-17 08:12:21.038 | INFO     | autogenstudio.database.schema_manager:update_script_template:268 - Updated script template
2025-01-17 08:12:21.039 | INFO     | autogenstudio.database.schema_manager:_update_env_py:324 - Updated env.py with SQLModel metadata
2025-01-17 08:12:21.039 | INFO     | autogenstudio.database.schema_manager:_initialize_alembic:150 - Alembic initialization complete
2025-01-17 08:12:21.039 | INFO     | autogenstudio.database.schema_manager:initialize_migrations:63 - Creating initial migration...
INFO  [alembic.runtime.migration] Context impl SQLiteImpl.
INFO  [alembic.runtime.migration] Will assume non-transactional DDL.
  Generating /Users/jackgerrits/w/autogen-studio-app-dir/app/alembic/versions/5e836c99cc6f_initial_schema.py ...  done
2025-01-17 08:12:21.082 | INFO     | autogenstudio.web.app:lifespan:39 - Managers initialized successfully
2025-01-17 08:12:21.082 | INFO     | autogenstudio.web.app:lifespan:42 - Application startup complete
2025-01-17 08:12:21.082 | INFO     | autogenstudio - Navigate here: http://localhost:8080

(See last line)

@jackgerrits jackgerrits added the proj-studio Related to AutoGen Studio. label Jan 17, 2025
@victordibia
Copy link
Collaborator

victordibia commented Jan 17, 2025

Interestingly, uvicorn is meant to post a final message with this exact info ..

Image

Edit

In a fresh envrionment (tested in a GH codespace), the first run does not show the URL, but the second run does.
Early investigations so far suggest that some of the initial run tasks (setting up db etc) and some of the warnings (pydantic, some websockets mismatch) probably interrupt uvicorn startup and the url is not printed.

Fix will be to ...

  • Double check that db setup on first run is done gracefully (probably with less verbose messages)
  • Investigate pydantic warnings - likely due to this ... Some of this file will be rewritten once declarative specs are integrated Make AgentChat Components Support Declarative Specifications.  #4439
  • investigate uvicorn/wesbcokets warnings (this might be fixed by adding a websockets version minimum)

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

No branches or pull requests

2 participants