AutoCkt icon indicating copy to clipboard operation
AutoCkt copied to clipboard

Facing error in execution of code

Open abhi-chintalwar opened this issue 1 year ago • 0 comments

We are trying to execute the code by following the Read.me file. Installed all the packages and libraries mentioned, but during the installation of libraries and packages we are facing issues in version. Either there is no version available which has been mentioned or we are unable to find a few packages which are required with the proper version.If we are installing the version which is mentioned and then installing some package then this package is changing the version of the 1st package.

After following all the process mentioned in read.me file and avoiding the package versions. We are here with this error:

TypeError Traceback (most recent call last) ~/anaconda3/lib/python3.9/site-packages/ray/tune/experiment/experiment.py in from_json(cls, name, spec) 306 try: --> 307 exp = cls(name, run_value, **spec) 308 except TypeError as e:

TypeError: init() got an unexpected keyword argument 'checkpoint_freq'

During handling of the above exception, another exception occurred:

TuneError Traceback (most recent call last) ~/AutoCkt/AutoCkt-master/autockt/val_autobag_ray.py in 31 #If checkpoint fails for any reason, training can be restored 32 if not args.checkpoint_dir: ---> 33 trials = tune.run_experiments({ 34 "train_45nm_ngspice": { 35 "checkpoint_freq":1,

~/anaconda3/lib/python3.9/site-packages/ray/tune/tune.py in run_experiments(experiments, scheduler, server_port, verbose, progress_reporter, resume, reuse_actors, trial_executor, raise_on_failed_trial, concurrent, callbacks, _remote) 847 # because it schematize the experiments 848 # and it conducts the implicit registration. --> 849 experiments = _convert_to_experiment_list(experiments) 850 851 if concurrent:

~/anaconda3/lib/python3.9/site-packages/ray/tune/experiment/experiment.py in _convert_to_experiment_list(experiments) 492 exp_list = [experiments] 493 elif type(experiments) is dict: --> 494 exp_list = [ 495 Experiment.from_json(name, spec) for name, spec in experiments.items() 496 ]

~/anaconda3/lib/python3.9/site-packages/ray/tune/experiment/experiment.py in (.0) 493 elif type(experiments) is dict: 494 exp_list = [ --> 495 Experiment.from_json(name, spec) for name, spec in experiments.items() 496 ] 497

~/anaconda3/lib/python3.9/site-packages/ray/tune/experiment/experiment.py in from_json(cls, name, spec) 307 exp = cls(name, run_value, **spec) 308 except TypeError as e: --> 309 raise TuneError( 310 f"Failed to load the following Tune experiment " 311 f"specification:\n\n {pp.pformat(spec)}.\n\n"

TuneError: Failed to load the following Tune experiment specification:

{'checkpoint_freq': 1, 'config': {'env': <class 'autockt.envs.ngspice_vanilla_opamp.TwoStageAmp'>, 'env_config': {'generalize': True, 'run_valid': False}, 'horizon': 30, 'model': {'fcnet_hiddens': [64, 64]}, 'num_gpus': 0, 'num_workers': 6, 'train_batch_size': 1200}, 'stop': {'episode_reward_mean': -0.02}}.

Please check that the arguments are valid. Experiment creation failed with the following error: init() got an unexpected keyword argument 'checkpoint_freq'

Additionally adding the snapshot of error:

IMG-20230304-WA0029

abhi-chintalwar avatar Mar 05 '23 04:03 abhi-chintalwar