leekwoon / hrl-nav

[ICRA 2023] Adaptive and Explainable Deployment of Navigation Skills via Hierarchical Deep Reinforcement Learning
MIT License
96 stars 8 forks source link

ImportError: dynamic module does not define module export function (PyInit__tf2) #7

Open darlingbenke opened 3 days ago

darlingbenke commented 3 days ago

Can you help me? There were some issues when I executed the train_low_level.py file as follows. 2024-10-21 15-57-37屏幕截图

leekwoon commented 2 days ago

Hi, @darlingbenke

Did you follow the instructions in our nav-gym repository?

We recommend installing and compiling for Python 3 as follows:

To install with ROS-supported


virtualenv ~/venv/hrlnav --python=python3.6
source ~/venv/hrlnav/bin/activate

cd ~/YOUR_CATKIN_WORKSPACE/src
git clone https://github.com/leekwoon/nav-gym.git

# install nav_gym_env
cd nav-gym/nav_gym
pip install -e .

cd ~/YOUR_CATKIN_WORKSPACE
catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3
source devel/setup.bash # or you can write it on ~/.bashrc
darlingbenke commented 2 days ago

I am going crazy! I followed this step, but there are still the above-mentioned problems. Do you want to set a zoom meeting maybe and solve the problem together? if that's the case, i would be very grateful to you.