fetchai / agentverse

Public repository for Agentverse
Apache License 2.0
8 stars 9 forks source link

BeautifulSoup import from bs4 is not working even though it is an allowed import #64

Open josefco-02 opened 1 month ago

josefco-02 commented 1 month ago

Prerequisites

Category

Bug in Agentverse

Expected Behavior

The hosted agent should just write in the log. image

Observed Behavior

When I import BeautifulSoup which is an allowed import, the agent freezes. Sometimes it doesn´t even print the ¨Starting agent¨ text. image It just stays that way no matter how long it keep running.

To Reproduce

Here is the hosted agent code, just remove/add the # at the beginning of the import to test it:

from uagents import Agent, Context
import requests
#from bs4 import BeautifulSoup

agent = Agent()

@agent.on_event("startup")
async def say_hello(ctx: Context):
    """Logs hello message on startup"""
    ctx.logger.info(f"Hello, I'm an agent.")

if __name__ == "__main__":
    agent.run()

Environment Details (Optional)

No response

Failure Logs (Optional)

No response

Additional Information (Optional)

No response

jrriehl commented 1 month ago

Hello, thanks for the issue! Sorry, but some of these packages are not yet available, but will soon be available, hopefully within the next couple of weeks. These are the currently available imports: