Closed scottsuk0306 closed 11 months ago
I found the reason for this issue. Because of the ImportError, src/tasks/__init__.py
did not run successfully. If install the necessary files, one can solve this issue!
Swallowing exceptions is not elegant, it's a sign of bad frameworks. Regarding AgentBench, I think it is difficult to configure each environment (unlike Google's big-bench which is self-contained, which can be executed immediately after cloing), lacks documentation, and the framework is too complicated. For example, the use of multiple processes makes the process of troubleshooting more painful.
Swallowing exceptions is not elegant, it's a sign of bad frameworks. Regarding AgentBench, I think it is difficult to configure each environment (unlike Google's big-bench which is self-contained, which can be executed immediately after cloing), lacks documentation, and the framework is too complicated. For example, the use of multiple processes makes the process of troubleshooting more painful.
Really thanks for your suggestions.
There is a huge trouble, that is, various environments cannot be integrated into the code of the same framework in a particularly unified way. In other words, many environments need to be created through fork or spawn.
We are planning to refactor the code in the next few weeks. We think that tasks should also be separated into server and client like what we have done on agents. For example, the structure of FastChat may be a great way for the task server.
With the below add, I was able to bypass the above problem.
Now I'm stuck with : raise FileNotFoundError(f"No (supported) data files or dataset script found{path}")
Mind2Web Class: Make sure that task.py has a class named Mind2Web.
Import in mind2web/init.py: In the init.py file inside the mind2web directory, you should have the import statement:
Code: from .task import Mind2Web
Import in tasks/init.py: Ensure that the main tasks package also knows about the Mind2Web task. In the tasks/init.py (this file is one level up from the mind2web directory), you should have:
CODE: from .mind2web import Mind2Web
sys.path.append: Ensure that you have modified the eval.py as mentioned previously:
Code: import sys import os sys.path.append(os.path.dirname(os.path.abspath(file))) Create Assignment: The create_assignment.py should be correctly interpreting the
With the below add, I was able to bypass the above problem.
Now I'm stuck with : raise FileNotFoundError(f"No (supported) data files or dataset script found{path}")
Mind2Web Class: Make sure that task.py has a class named Mind2Web.
Import in mind2web/init.py: In the init.py file inside the mind2web directory, you should have the import statement:
Code: from .task import Mind2Web
Import in tasks/init.py: Ensure that the main tasks package also knows about the Mind2Web task. In the tasks/init.py (this file is one level up from the mind2web directory), you should have:
CODE: from .mind2web import Mind2Web
sys.path.append: Ensure that you have modified the eval.py as mentioned previously:
Code: import sys import os sys.path.append(os.path.dirname(os.path.abspath(file))) Create Assignment: The create_assignment.py should be correctly interpreting the
I meet the same problem...May I ask where this code ("sys.path.append(os.path.dirname(os.path.abspath(file)))") should be add in eval.py?
The primary reason for the error was the suppression of the error with just a warning message. In version 0.2, we have addressed this issue, and it no longer occurs. Feel free to give it a try!
Feel free to reopen this issue if it persists!
After installing the requirements, I tried to run the following inside
~/AgentBench
.