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
运行Dynamic_train.py时报错Exception in thread Thread-2:parl.remote.exceptions.RemoteError: [PARL remote error when calling function __init__]: #15
Comments
我在PaddlePaddle / PARL下找到了两个类似的问题:
但是这个方法并不有效。 第二个(2020.8.7) 这个方法也无效。 法2:
这个方法执行不了
您好,请问你们当时是怎么跑通的,咋到我这就会出现问题了呢?能不能给点解决的建议,谢谢。@xueeinstein @TomorrowIsAnOtherDay |
|
没有改造,Dynamic_train.py的这行代码:
调用了./model/Dynamic_parallel_model.py的ES_ParallelModel类,Dynamic_parallel_model.py里面有并行代码,就下面这行:
|
抱歉,今天会议比较多,我们尽快看下这个问题。 |
不着急,您先忙。 |
作者您好,我运行QuadrupedalRobots/ETGRL/train.py训练是没有问题的,但是运行Dynamic_train.py时出现了下面3个问题,查看Dynamic_train.py同级目录里是有./model/Dynamic_parallel_model.py文件的,请问是什么原因造成的呢?
Exception in thread Thread-2:
parl.remote.exceptions.RemoteError: [PARL remote error when calling function
__init__
]:[Errno 2] No such file or directory: './model/Dynamic_parallel_model.py'
FileNotFoundError: [Errno 2] No such file or directory: './model/Dynamic_parallel_model.py'
parl.remote.exceptions.FutureFunctionError: There is an error raised when calling the future function
__init__
.完整报错信息
[04-26 20:29:14 MainThread @Dynamic_train.py:71] args:Namespace(K=20, alg='ga', eval=0, gamma=1, load='', outdir='Dynamic', sigma=0.1, steps=10000, suffix='exp0', thread=2, xparl='192.168.30.145:8037')
Exception in thread Thread-5:
Traceback (most recent call last):
File "/home/senweihuang/anaconda3/envs/parl/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/home/senweihuang/anaconda3/envs/parl/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/senweihuang/anaconda3/envs/parl/lib/python3.8/site-packages/parl/remote/future_mode/proxy_wrapper_nowait.py", line 92, in _run_object_in_backend
raise e
File "/home/senweihuang/anaconda3/envs/parl/lib/python3.8/site-packages/parl/remote/future_mode/proxy_wrapper_nowait.py", line 82, in _run_object_in_backend
self._xparl_remote_wrapper_obj = remote_wrapper(
File "/home/senweihuang/anaconda3/envs/parl/lib/python3.8/site-packages/parl/remote/remote_wrapper.py", line 107, in init
raise RemoteError('init', traceback_str)
parl.remote.exceptions.RemoteError: [PARL remote error when calling function
__init__
]:[Errno 2] No such file or directory: './model/Dynamic_parallel_model.py'
traceback:
Traceback (most recent call last):
File "/home/senweihuang/anaconda3/envs/parl/lib/python3.8/site-packages/parl/remote/job.py", line 297, in wait_for_connection
cls = load_remote_class(message[1])
File "/home/senweihuang/anaconda3/envs/parl/lib/python3.8/site-packages/parl/remote/remote_class_serialization.py", line 207, in load_remote_class
with open(file_name + '.py') as t_file:
FileNotFoundError: [Errno 2] No such file or directory: './model/Dynamic_parallel_model.py'
Exception in thread Thread-4:
Traceback (most recent call last):
File "/home/senweihuang/anaconda3/envs/parl/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/home/senweihuang/anaconda3/envs/parl/lib/python3.8/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/senweihuang/anaconda3/envs/parl/lib/python3.8/site-packages/parl/remote/future_mode/proxy_wrapper_nowait.py", line 92, in _run_object_in_backend
raise e
File "/home/senweihuang/anaconda3/envs/parl/lib/python3.8/site-packages/parl/remote/future_mode/proxy_wrapper_nowait.py", line 82, in _run_object_in_backend
self._xparl_remote_wrapper_obj = remote_wrapper(
File "/home/senweihuang/anaconda3/envs/parl/lib/python3.8/site-packages/parl/remote/remote_wrapper.py", line 107, in init
raise RemoteError('init', traceback_str)
parl.remote.exceptions.RemoteError: [PARL remote error when calling function
__init__
]:[Errno 2] No such file or directory: './model/Dynamic_parallel_model.py'
traceback:
Traceback (most recent call last):
File "/home/senweihuang/anaconda3/envs/parl/lib/python3.8/site-packages/parl/remote/job.py", line 297, in wait_for_connection
cls = load_remote_class(message[1])
File "/home/senweihuang/anaconda3/envs/parl/lib/python3.8/site-packages/parl/remote/remote_class_serialization.py", line 207, in load_remote_class
with open(file_name + '.py') as t_file:
FileNotFoundError: [Errno 2] No such file or directory: './model/Dynamic_parallel_model.py'
Traceback (most recent call last):
File "/mnt/hgfs/虚拟机/PaddleRobotics-main/QuadrupedalRobots/ETGRL/Dynamic_train.py", line 74, in
main()
File "/mnt/hgfs/虚拟机/PaddleRobotics-main/QuadrupedalRobots/ETGRL/Dynamic_train.py", line 72, in main
model.train(args.steps)
File "/mnt/hgfs/虚拟机/PaddleRobotics-main/QuadrupedalRobots/ETGRL/model/Dynamic_parallel_model.py", line 159, in train
mean_re = self.update(epoch)
File "/mnt/hgfs/虚拟机/PaddleRobotics-main/QuadrupedalRobots/ETGRL/model/Dynamic_parallel_model.py", line 128, in update
future_objects.append(self.agent_list[i].batch_sample_episodes(param=solutions[i*self.K:(i+1)*self.K,:],K = self.K))
File "/home/senweihuang/anaconda3/envs/parl/lib/python3.8/site-packages/parl/remote/future_mode/proxy_wrapper_nowait.py", line 144, in getattr
raise self._xparl_remote_object_exception
parl.remote.exceptions.FutureFunctionError: There is an error raised when calling the future function
__init__
.You can see the detailed error message above, which is printed by another thread.
Process finished with exit code 1
环境
Ubuntu 18.04
python 3.8
parl = 1.4.0
torch = 1.7.0
rlschool = 1.0.2
@xueeinstein
The text was updated successfully, but these errors were encountered: