Closed lk1983823 closed 1 year ago
Thank you for this gym wrapper for simulink. However, when I python setup.py install it, and runs the cartpole example, it shows:
--------------------------------------------------------------------------- ImportError Traceback (most recent call last) Cell In[1], line 1 ----> 1 from cartpole_simulink import CartPoleSimulink File /media/lk/disk1/MATLAB/matlab_py/simulink_gym/examples/envs/cartpole_simulink/cartpole_simulink.py:1 ----> 1 from simulink_gym import SimulinkEnv, Observation, Observations 2 from gym.spaces import Discrete 3 from pathlib import Path File /media/lk/disk1/MATLAB/matlab_py/simulink_gym/simulink_gym/__init__.py:7 5 from gym import logger 6 from gym import spaces ----> 7 from .environment import SimulinkEnv 8 from .observations import Observation, Observations 9 from .utils import BlockParam File /media/lk/disk1/MATLAB/matlab_py/simulink_gym/simulink_gym/environment.py:4 2 import matlab.engine 3 import gym ----> 4 from simulink_gym import logger, SIMULINK_BLOCK_LIB_PATH 5 import threading 6 import numpy as np ImportError: cannot import name 'SIMULINK_BLOCK_LIB_PATH' from partially initialized module 'simulink_gym' (most likely due to a circular import) (/media/lk/disk1/MATLAB/matlab_py/simulink_gym/simulink_gym/__init__.py)
Thank you for your feedback! I'm looking into it asap!
Should be fixed now! Reopen this issue, if you still run into this problem.
Thank you for this gym wrapper for simulink. However, when I python setup.py install it, and runs the cartpole example, it shows: