Closed suqianxin closed 5 years ago
I add the "from evaluation.eval_mil_reach import EvalMilReach" to the main_mil.py and the question is slove,i don't know if this is the right thing to do.But now a new error occur:
WARNING:tensorflow:From /home/suqianxin/gym/TecNets/consumers/margin_loss.py:14: calling reduce_sum (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version. Instructions for updating: keep_dims is deprecated, use keepdims instead 2019-09-04 11:14:11.321735: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA 2019-09-04 11:14:11.421994: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:895] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2019-09-04 11:14:11.422356: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1105] Found device 0 with properties: name: GeForce GTX 1060 6GB major: 6 minor: 1 memoryClockRate(GHz): 1.7085 pciBusID: 0000:01:00.0 totalMemory: 5.93GiB freeMemory: 4.95GiB 2019-09-04 11:14:11.422371: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1195] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce GTX 1060 6GB, pci bus id: 0000:01:00.0, compute capability: 6.1) Traceback (most recent call last): File "/home/suqianxin/gym/gym/envs/registration.py", line 132, in spec return self.env_specs[id] KeyError: 'ReacherMILTest-v1'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main_il.py", line 175, in
How to handle this error?Look forward to someone's help.Thank you.
I have made a mistake that i didn't switch to the mil.When i switch to the mil ,the error above is sloved.But now i meet a new question,like this:
Traceback (most recent call last):
File "/home/suqianxin/gym/gym/envs/mujoco/mujoco_env.py", line 12, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main_il.py", line 178, in
I have been searching for a long time and have not found a solution.How can I solve the problem? Thanks!
When i use gym's branch mil ,the version of gym is 0.9.3 and the mujoco version 131,mujoco_py version is 0.5.7.The problem is sloved.
Hey @suqianxin -- I'm trying to get this to work ; I have got the right mujoco and mujoco_py, but it still doesn't work. I don't understand why you need to install gym to a specific version, don't we just need to use tianheyu's gym @ mil branch (and @stepjam says this doesn't need to be installed, it can just be on the pythonpath). Please advise exactly what you did if you have a moment, it will help a lot.
For reference, I am getting this error:
Traceback (most recent call last):
File "main_il.py", line 89, in <module>
from evaluation.eval_mil_push import EvalMilPush
File "/home/user/TecNets/evaluation/eval_mil_push.py", line 4, in <module>
from gym.envs.mujoco.pusher import PusherEnv
File "/home/user/tianheyu-gym/gym/gym/envs/mujoco/__init__.py", line 1, in <module>
from gym.envs.mujoco.mujoco_env import MujocoEnv
File "/home/user/tianheyu-gym/gym/gym/envs/mujoco/mujoco_env.py", line 11, in <module>
import mujoco_py
File "/home/user/env/lib/python3.7/site-packages/mujoco_py/__init__.py", line 4, in <module>
from .mjviewer import MjViewer
File "/home/user/env/lib/python3.7/site-packages/mujoco_py/mjviewer.py", line 7, in <module>
from . import mjcore, mjconstants, glfw
File "/home/user/env/lib/python3.7/site-packages/mujoco_py/mjcore.py", line 6, in <module>
from .mjlib import mjlib
File "/home/user/env/lib/python3.7/site-packages/mujoco_py/mjlib.py", line 23, in <module>
mjlib.mj_loadXML.argtypes = [String, String, c_char_p, c_int]
TypeError: item 1 in _argtypes_ passes a union by value, which is unsupported.
Further investigation leads to deep changes made within Python itself on how it handles some C stuff: In order to correct this bug: https://bugs.python.org/issue16575 They made this change: https://github.com/python/cpython/commit/79d4ed102a5069c6cebaed2627cb1645637f0429#diff-998bfefaefe2ab83d5f523e18f158fa4 That has broken a lot stuff in Python 3.7.6 -- 3.8.1. Apparently it will be fixed in 3.8.2, but I don't know. Examples of stuff it has broken: https://github.com/davidjamesca/ctypesgen/issues/77 https://github.com/pyglet/pyglet/issues/112
When i run "./tecnets_corl_results.sh sim_reach",some problem appeared:
WARNING:tensorflow:From /home/suqianxin/gym/TecNets/consumers/margin_loss.py:14: calling reduce_sum (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version. Instructions for updating: keep_dims is deprecated, use keepdims instead Traceback (most recent call last): File "main_il.py", line 165, in
eval = EvalMilReach(sess=p.get_session(),
NameError: name 'EvalMilReach' is not defined
I don't know how to deal with this error ,could you please help me?Thank you.