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

Bug report #31

Open
yongduosui opened this issue Dec 4, 2024 · 1 comment
Open

Bug report #31

yongduosui opened this issue Dec 4, 2024 · 1 comment

Comments

@yongduosui
Copy link

For runing Spider-Agent on Spider 2.0 dataset, I follow your instructions and run the following commands:

cd ../../methods/spider-agent
export OPENAI_API_KEY=your_openai_api_key
python run.py --model gpt-4o -s test1

I meet the following issues:

Warning: ../../spider2/examples/postgres_chinook001 is neither a file nor a directory.
Traceback (most recent call last):
  File "run.py", line 248, in <module>
    test(args)
  File "run.py", line 207, in test
    env = Spider_Agent_Env(
  File "/data/home/yongduosui/data/02-Spider2/03-Spider2/Spider2/methods/spider-agent/spider_agent/envs/spider_agent.py", line 82, in __init__
    self.setup_controller.setup(self.config)
  File "/data/home/yongduosui/data/02-Spider2/03-Spider2/Spider2/methods/spider-agent/spider_agent/controllers/setup.py", line 55, in setup
    config_function(self, **parameters)
  File "/data/home/yongduosui/data/02-Spider2/03-Spider2/Spider2/methods/spider-agent/spider_agent/configs/general.py", line 119, in copy_all_subfiles_postgres_setup
    sh_file_path = sh_files[0]
IndexError: list index out of range
@lfy79001
Copy link
Collaborator

lfy79001 commented Dec 4, 2024

Hi,

You can use python run.py --model gpt-4o -s test1 --bq_only --sf_only --local_only to exclude postgres examples, I will fix the bug asap.

And you might need to finish the setup process. Have you finished python setup.py ?

The step4 and step5 in the setup

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants