-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Bug] Running from Google Colab - Validation error for PlaygroundSettings. #2022
Comments
Hey @PriyankaBiswas! I was able to replicate the issue and resolve it. I am sharing the code with you
let me know if this works for you |
@manthanguptaa Thank you for looking into this issue, but it's not working (see screenshot). I tried your code exactly as you shared. I get a executing command that times out after a long wait. And, I had previously tried setting the ENV to values "dev" "prd" "stg" - the three env values accepted by the PlaygroundSettings original code. It didn't work. 2nd screenshot showing AGNO playground doesn't detect live server. |
Hi @PriyankaBiswas |
I was using Google Colab, so I assume some Google Cloud Server...
…On Wed, Feb 12, 2025 at 12:16 PM Dirk Brand ***@***.***> wrote:
Hi @PriyankaBiswas <https://github.com/PriyankaBiswas>
Where is your server running?
—
Reply to this email directly, view it on GitHub
<#2022 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACX6CUDD6HDYVG6WXPN4IZ32POTZDAVCNFSM6AAAAABWRWAO6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNJUG42TAMJVG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
So it would be running on localhost there, but the playground wouldn't be able to find the application since it isn't running on the same machine where you are accessing the playground. If you run your application locally and access the playground on your browser, then the playground can find the application. |
Is there any way we can bridge the gap? I believe people will try running
their codes on Colab and come across the same problem as me.
Thanks for your help.
Best,
Priyanka
…On Wed, Feb 12, 2025 at 12:48 PM Dirk Brand ***@***.***> wrote:
So it would be running on localhost there, but the playground wouldn't be
able to find the application since it isn't running on the same machine
where you are accessing the playground. If you run your application locally
and access the playground on your browser, then the playground can find the
application.
—
Reply to this email directly, view it on GitHub
<#2022 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACX6CUBN2QJMI4YXFJEONIT2POXSXAVCNFSM6AAAAABWRWAO6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNJUHAYTANZUGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @PriyankaBiswas On your server it looks like the the app is unable to connect to the playground, as you say. Are you sure the outbound network settings allows? Also have you set your Thanks for raising. |
Description
I am running from Colab, and everything works as per instructions, except connecting to the 7777 server.
As soon as I launch
app = Playground(agents=[web_agent, finance_agent]).get_app()
I encounter this validation error:Steps to Reproduce
#Run Playground code
```
from agno.agent import Agent
from agno.models.openai import OpenAIChat
from agno.playground import Playground, serve_playground_app
from agno.storage.agent.sqlite import SqliteAgentStorage
from agno.tools.duckduckgo import DuckDuckGoTools
from agno.tools.yfinance import YFinanceTools
ValidationError Traceback (most recent call last)
in <cell line: 0>()
37 )
38
---> 39 app = Playground(agents=[web_agent, finance_agent]).get_app()
2 frames
/usr/local/lib/python3.11/site-packages/pydantic/main.py in init(self, **data)
212 #
__tracebackhide__
tells pytest and some other tools to omit this function from tracebacks213 tracebackhide = True
--> 214 validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
215 if self is not validated_self:
216 warnings.warn(
ValidationError: 1 validation error for PlaygroundSettings
env
Value error, Invalid Playground Env: /root/.bashrc [type=value_error, input_value='/root/.bashrc', input_type=str]
For further information visit https://errors.pydantic.dev/2.10/v/value_error
Set new env as venv
os.environ["ENV"] = '/content/venv/.env'
The text was updated successfully, but these errors were encountered: