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

No module named 'build.inverse_sensor_model' #1

Open
zhujinwen0924 opened this issue Apr 8, 2021 · 5 comments
Open

No module named 'build.inverse_sensor_model' #1

zhujinwen0924 opened this issue Apr 8, 2021 · 5 comments

Comments

@zhujinwen0924
Copy link

hello,Here is an error occured when i run 'python tf_policy_cnn',the error is
"
Traceback (most recent call last):
File "tf_policy_rnn.py", line 9, in
import robot_simulation as robot
File "DRL_robot_exploration/scripts/robot_simulation.py", line 11, in
from build.inverse_sensor_model import *
ModuleNotFoundError: No module named 'build.inverse_sensor_model'

"

i found a file named "inverse_sensor_model.cpython-35m-x86_64-linux-gnu.so" in folder build,but i don't know how i can deal with it.my tensorflow version is 2.1.0,gpu is supported,and my python version is 3.6.10.

anyone can tell me why?thanks!

@zhujinwen0924
Copy link
Author

i have handled this issue now.

@AgentEXPL
Copy link

i have handled this issue now.

Hi, @zhujinwen0924 , I have encountered the same issue. Would like to share your solution with me? Many thanks!

@AgentEXPL
Copy link

I encounter this problem because a virtual python environment is used. The solution is to make changes in CMakeLists.txt under the DRL_robot_exploration.

@Moresweet
Copy link

Hello, I think the python interperter's location is uncorrect with your CMakeLists.txt. I use Anaconda to manage the environment in my PC. So the location should modify to my virtual envrioment interperter location.

if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    # Force to use Python 2.7/3.5
    # set(PYTHON_EXECUTABLE /usr/local/bin/python)
    set(PYTHON_EXECUTABLE /usr/local/bin/python3)
else ()
    # Here is your interperter location
    set(PYTHON_EXECUTABLE /home/moresweet/.conda/envs/ariadne/bin/python)
endif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")

@JM-Wu7
Copy link

JM-Wu7 commented Mar 31, 2024

hello,Here is an error occured when i run 'python tf_policy_cnn',the error is " Traceback (most recent call last): File "tf_policy_rnn.py", line 9, in import robot_simulation as robot File "DRL_robot_exploration/scripts/robot_simulation.py", line 11, in from build.inverse_sensor_model import * ModuleNotFoundError: No module named 'build.inverse_sensor_model'

"

i found a file named "inverse_sensor_model.cpython-35m-x86_64-linux-gnu.so" in folder build,but i don't know how i can deal with it.my tensorflow version is 2.1.0,gpu is supported,and my python version is 3.6.10.

anyone can tell me why?thanks!

你好,请问一下你这个tensorflow和python版本是可以跑通的吗

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

4 participants