SLM-Lab icon indicating copy to clipboard operation
SLM-Lab copied to clipboard

Book branch problem, need your help

Open JuliusMa opened this issue 2 years ago • 2 comments

Describe the bug In the SLM_Lab-book branch,I run the reinfoce-cartpolp with search mode.There is a exception coming out . It happened on the search.py when worked on the line of 129 which is"for ray_trial in ray_trials"

To Reproduce

  1. windows os
  2. on the book branch

Error logs

<class 'ray.tune.analysis.experiment_analysis.ExperimentAnalysis'> Traceback (most recent call last): File "D:/PythonProject/SLM-Lab-book/run_lab.py", line 99, in main() File "D:/PythonProject/SLM-Lab-book/run_lab.py", line 91, in main get_spec_and_run(*args) File "D:/PythonProject/SLM-Lab-book/run_lab.py", line 75, in get_spec_and_run run_spec(spec, lab_mode) File "D:/PythonProject/SLM-Lab-book/run_lab.py", line 55, in run_spec Experiment(spec).run() File "D:\PythonProject\SLM-Lab-book\slm_lab\experiment\control.py", line 204, in run trial_data_dict = search.run_ray_search(self.spec) File "D:\PythonProject\SLM-Lab-book\slm_lab\experiment\search.py", line 130, in run_ray_search for ray_trial in ray_trials: TypeError: 'ExperimentAnalysis' object is not iterable

problem

JuliusMa avatar Nov 03 '21 02:11 JuliusMa

Hi sorry we don't officially support windows. But there's a guide made by a user for windows could you please try with that and see? https://slm-lab.gitbook.io/slm-lab/setup/installation

kengz avatar Nov 13 '21 17:11 kengz

On second look, looks like you're running in a bash shell. I suspect this is due to the version of ray. Could you share the output of:

conda activate lab
conda list

kengz avatar Dec 05 '21 00:12 kengz