vincentmllr / deep-robot-grasping

Teaching a Franka Emika Panda robot to grasp objects using deep reinforcement learning
21 stars 1 forks source link

Error no module named tensorflow #4

Open dionstew opened 11 months ago

dionstew commented 11 months ago

Hi, thanks for your help before.. Currently I am facing an error while I am trying to train a new model. The error says ModuleNotFoundError: No module named 'tensorflow'. I have followed your instructions to install the module using pip install tensorflow. I run this training under a venv named ~/venv_deep_grasping and I have checked the module using pip show tensorflow. I wonder if the venv setup is the source of error, what do you think?

Below are some output I got from the terminal... The error: [agent_model-18] process has died [pid 4895, exit code 1, cmd /home/dionb/panda_deep_grasping/simulation_ws/devel/lib/panda_deep_grasping/agent_model.py __name:=agent_model __log:=/home/dionb/.ros/log/40a23f7e-6974-11ee-841b-c17dae0baad7/agent_model-18.log]. log file: /home/dionb/.ros/log/40a23f7e-6974-11ee-841b-c17dae0baad7/agent_model-18*.log [agent_model-18] restarting process process[agent_model-18]: started with pid [4918] Traceback (most recent call last): File "/home/dionb/panda_deep_grasping/simulation_ws/devel/lib/panda_deep_grasping/agent_model.py", line 15, in <module> exec(compile(fh.read(), python_script, 'exec'), context) File "/home/dionb/panda_deep_grasping/simulation_ws/src/deep-robot-grasping/scripts/agent_model.py", line 8, in <module> import tensorflow as tf ModuleNotFoundError: No module named 'tensorflow'

Some checks with pip show:

pip show tensorflow

(venv_deep_grasping) dionb@Administrator:~/panda_deep_grasping/simulation_ws$ pip show tensorflow Name: tensorflow Version: 2.13.1 Summary: TensorFlow is an open source machine learning framework for everyone. Home-page: https://www.tensorflow.org/ Author: Google Inc. Author-email: packages@tensorflow.org License: Apache 2.0 Location: /home/dionb/venv_deep_grasping/lib/python3.8/site-packages Requires: google-pasta, wrapt, grpcio, protobuf, opt-einsum, tensorflow-estimator, libclang, tensorboard, flatbuffers, keras, astunparse, gast, h5py, numpy, setuptools, tensorflow-io-gcs-filesystem, typing-extensions, packaging, six, termcolor, absl-py Required-by: tensorflowjs, tensorflow-decision-forests