Skip to content
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

An error in psro_leduc_poker.py #40

Closed
Waiting-TT opened this issue Mar 30, 2022 · 1 comment
Closed

An error in psro_leduc_poker.py #40

Waiting-TT opened this issue Mar 30, 2022 · 1 comment

Comments

@Waiting-TT
Copy link

when I run psro_leduc_poker.py, an error about ray occurs as follows:

/home/mm/anaconda3/envs/malib_330/bin/python /data/XXX/malib/examples/psro_leduc_poker.py
WARNING:root:Cannot import alpharank utils, if you wanna run meta game experiments, please install open_spiel before that.
[2022-03-30 21:53:36,067][INFO] registered request handler=optimization
[2022-03-30 21:53:36,067][INFO] registered request handler=simulation
[2022-03-30 21:53:36,068][INFO] registered request handler=evaluate
[2022-03-30 21:53:36,068][INFO] registered request handler=update_payofftable
[2022-03-30 21:53:36,068][INFO] registered request handler=rollout
2022-03-30 21:53:36,587 INFO services.py:1166 -- View the Ray dashboard at http://127.0.0.1:8265
[2022-03-30 21:53:37,672][INFO] Ray lauched: {'node_ip_address': '192.168.43.185', 'raylet_ip_address': '192.168.43.185', 'redis_address': '192.168.43.185:6379', 'object_store_address': '/tmp/ray/session_2022-03-30_21-53-36_069448_64379/sockets/plasma_store', 'raylet_socket_name': '/tmp/ray/session_2022-03-30_21-53-36_069448_64379/sockets/raylet', 'webui_url': '127.0.0.1:8265', 'session_dir': '/tmp/ray/session_2022-03-30_21-53-36_069448_64379', 'metrics_export_port': 50956}
[2022-03-30 21:53:37,674][INFO] Ray cluster resources info: {XXXXXXX}
Logger server up!
(pid=64609) [2022-03-30 21:53:38,698][INFO] dataset server initialized with (table_capacity=200000 table_learning_start=64)
(pid=64635) WARNING:root:Cannot import alpharank utils, if you wanna run meta game experiments, please install open_spiel before that.
(pid=64635) /data/XXX/malib/malib/evaluator/utils/payoff_table.py:20: DeprecationWarning: np.bool is a deprecated alias for the builtin bool. To silence this warning, use bool by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool_ here.
(pid=64635) Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
(pid=64635) self.simulation_flag = np.zeros([0] * len(self.agents), dtype=np.bool)
(pid=64621) [2022-03-30 21:53:39,902][INFO] ray.get_gpu_ids(): []
(pid=64621) [2022-03-30 21:53:39,902][INFO] CUDA_VISIBLE_DEVICES:
(pid=64634) [2022-03-30 21:53:39,868][INFO] ray.get_gpu_ids(): []
(pid=64634) [2022-03-30 21:53:39,868][INFO] CUDA_VISIBLE_DEVICES:
(pid=64634) WARNING:root:Cannot import alpharank utils, if you wanna run meta game experiments, please install open_spiel before that.
(pid=64635) [2022-03-30 21:53:40,260][INFO] training manager launched, 2 learner(s) created
(pid=64635) [2022-03-30 21:53:40,261][INFO] set worker num as 2
(pid=64621) WARNING:root:Cannot import alpharank utils, if you wanna run meta game experiments, please install open_spiel before that.
(pid=64635) [2022-03-30 21:53:40,282][INFO] RolloutWorker manager launched, 2 rollout worker(s) alives.
(pid=64635) [2022-03-30 21:53:40,423][INFO] Coordinator server started
(pid=64633) WARNING:root:Cannot import alpharank utils, if you wanna run meta game experiments, please install open_spiel before that.
(pid=64585) WARNING:root:Cannot import alpharank utils, if you wanna run meta game experiments, please install open_spiel before that.
2022-03-30 21:53:45,409 ERROR worker.py:1018 -- Possible unhandled error from worker: ray::CoordinatorServer.request() (pid=64635, ip=192.168.43.185)
File "python/ray/_raylet.pyx", line 484, in ray._raylet.execute_task
File "python/ray/_raylet.pyx", line 438, in ray._raylet.execute_task.function_executor
File "/data/XXX/malib/malib/backend/coordinator/server.py", line 166, in request
f"Missing handler for task type {task_request.task_type.value}"
AttributeError: Missing handler for task type simulation
2022-03-30 21:53:46,410 ERROR worker.py:1018 -- Possible unhandled error from worker: ray::CoordinatorServer.request() (pid=64635, ip=192.168.43.185)
File "python/ray/_raylet.pyx", line 484, in ray._raylet.execute_task
File "python/ray/_raylet.pyx", line 438, in ray._raylet.execute_task.function_executor
File "/data/XXX/malib/malib/backend/coordinator/server.py", line 166, in request
f"Missing handler for task type {task_request.task_type.value}"
AttributeError: Missing handler for task type simulation

I would be appreciate if you could give me some suggestions about how to solve it.

Additionally, I use the version of ray=1.0.0 and cloudpickle=1.6.0, because ray=1.8.0 is incompatible with cloudpickle=1.6.0(the same incompatible problem can see https://blog.csdn.net/weixin_42769131/article/details/121526206 ).

@zhuerfei
Copy link

have you solved this problem bro?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants