-
Notifications
You must be signed in to change notification settings - Fork 12
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
Output error of Example: Agent-Environment Evaluator for SciTech Challenge #18
Comments
@henrybb0826 Thank you for creating this issue. Can you start by telling me what operating system you are using (Windows, Mac, Linux) and what version of python (3.9, 3.12)? |
@henrybb0826 Two other questions
|
I have a suspicion that this is caused by some underlying problem with the julia dependencies used in the LG3 environments. Here are a few debugging steps that may help (or may help me help you)
python scripts/example_private_src_env_runner.py 2>&1 | tee ~/Desktop/output.txt |
We've faced a similar problem where the episode never ends during the evaluation, plus julia dependency doesn't install, and serverless tests cause segfault error. Here are some workarounds that worked for us, hopefully it helps others who are facing such errors.
So the step 1 and 2 made things work. |
@strsix: I don't have a good explanation for why you were getting the sefault and why your workaround fixed it, but my best guess is that it has something to do with the installation order of dependencies. That is to say that additional dependencies for agent development (e.g. poliastro in your case) needed to be install after kspdg's own dependencies (found in pyproject.toml and install_julia_deps.py). Also, it does not seem to be strictly necessary, but I strongly recommend using juliaup to install julia on your machine before installing kspdg's environment. This helps manage different julia version similar to how conda helps manage different python versions on one computer. Therefore, the installation process for developing new agents to solve kspdg's challenge problems might look roughly like # install juliaup on MacOS, for further instructions: https://github.com/JuliaLang/juliaup#installation
curl -fsSL https://install.julialang.org | sh
# create the kspdg conda environment and then clone it to repurpose it for agent development
conda env create -f environment.yml # this creates the kspdg environment
conda create --name kspdg_agents --clone kspdg # this creates a new env called kspdg_agents which starts as a copy of kspdg env
conda remove --name kspdg --all # optionally delete the original kspdg env if you don't plan to use it
# install additional julia dependencies for the "adv_bots" kspdg environments (e.g. LBG1_LG3)
conda activate kspdg_agents
python install_julia_deps.py
# NOW install any additional dependencies you want to use for your kspdg agents within the kspdg_agent conda env
pip install <other-dependencies-you-want> I haven't fully tested this process, but I will update the README install instructions once I have a chance to vet it. |
Hello, I am running Example: Agent-Environment Evaluator for SciTech Challenge.
Currently I have finished running python evaluate.py configs/example_eval_cfg.yaml.
But the screen will be stuck in ~~~Closing KSPDG environment~~~ and the txt file will not be output.
Wondering if there is something wrong with the settings?
The text was updated successfully, but these errors were encountered: