decentralized_bottlenecks error
jiawweiL opened this issue · 0 comments
UnicodeEncodeError: 'ascii' codec can't encode characters in position 2295-2296: ordinal not in range(128)When I run decentralized_bottlenecks environment, the error of Unicode encodeerror: 'ASCII' codec can't encode characters in position 2295-2296: ordinal not in range (128) always appears, and the error file is generated
Failure # 1 (occurred at 2020-12-07_18-57-59)
Traceback (most recent call last):
File "/home/ljw/anaconda3/envs/cdc_bottlenecks/lib/python3.7/site-packages/ray/tune/trial_runner.py", line 426, in _process_trial
result = self.trial_executor.fetch_result(trial)
File "/home/ljw/anaconda3/envs/cdc_bottlenecks/lib/python3.7/site-packages/ray/tune/ray_trial_executor.py", line 378, in fetch_result
result = ray.get(trial_future[0], DEFAULT_GET_TIMEOUT)
File "/home/ljw/anaconda3/envs/cdc_bottlenecks/lib/python3.7/site-packages/ray/worker.py", line 1457, in get
raise value.as_instanceof_cause()
ray.exceptions.RayTaskError(TraCIException): �[36mray::TD3.train()�[39m (pid=19575, ip=10.6.56.98)
File "python/ray/_raylet.pyx", line 636, in ray._raylet.execute_task
File "python/ray/_raylet.pyx", line 619, in ray._raylet.execute_task.function_executor
File "/home/ljw/anaconda3/envs/cdc_bottlenecks/lib/python3.7/site-packages/ray/rllib/agents/trainer.py", line 447, in train
raise e
File "/home/ljw/anaconda3/envs/cdc_bottlenecks/lib/python3.7/site-packages/ray/rllib/agents/trainer.py", line 433, in train
result = Trainable.train(self)
File "/home/ljw/anaconda3/envs/cdc_bottlenecks/lib/python3.7/site-packages/ray/tune/trainable.py", line 176, in train
result = self._train()
File "/home/ljw/anaconda3/envs/cdc_bottlenecks/lib/python3.7/site-packages/ray/rllib/agents/trainer_template.py", line 129, in _train
fetches = self.optimizer.step()
File "/home/ljw/anaconda3/envs/cdc_bottlenecks/lib/python3.7/site-packages/ray/rllib/optimizers/sync_replay_optimizer.py", line 123, in step
batch = self.workers.local_worker().sample()
File "/home/ljw/anaconda3/envs/cdc_bottlenecks/lib/python3.7/site-packages/ray/rllib/evaluation/rollout_worker.py", line 471, in sample
batches = [self.input_reader.next()]
File "/home/ljw/anaconda3/envs/cdc_bottlenecks/lib/python3.7/site-packages/ray/rllib/evaluation/sampler.py", line 56, in next
batches = [self.get_data()]
File "/home/ljw/anaconda3/envs/cdc_bottlenecks/lib/python3.7/site-packages/ray/rllib/evaluation/sampler.py", line 99, in get_data
item = next(self.rollout_provider)
File "/home/ljw/anaconda3/envs/cdc_bottlenecks/lib/python3.7/site-packages/ray/rllib/evaluation/sampler.py", line 340, in _env_runner
base_env.send_actions(actions_to_send)
File "/home/ljw/anaconda3/envs/cdc_bottlenecks/lib/python3.7/site-packages/ray/rllib/env/base_env.py", line 382, in send_actions
obs, rewards, dones, infos = env.step(agent_dict)
File "/home/ljw/文档/decentralized_bottlenecks-new_master/flow/multiagent_envs/multiagent_env.py", line 101, in step
self.additional_command()
File "/home/ljw/文档/decentralized_bottlenecks-new_master/flow/multiagent_envs/multi_bottleneck_env.py", line 804, in additional_command
speed="23.0")
File "/home/ljw/文档/decentralized_bottlenecks-new_master/flow/core/kernel/vehicle/traci.py", line 1023, in add
departSpeed=str(speed))
File "/home/ljw/anaconda3/envs/cdc_bottlenecks/lib/python3.7/site-packages/traci/_vehicle.py", line 1427, in add
self._connection._sendExact()
File "/home/ljw/anaconda3/envs/cdc_bottlenecks/lib/python3.7/site-packages/traci/connection.py", line 106, in _sendExact
raise TraCIException(err, prefix[1], _RESULTS[prefix[2]])
traci.exceptions.TraCIException: The vehicle 'flow_1.113' to add already exists.