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

TBS machine learning software setup error. Do we really use the tensor flow virtual env or not? #55

Open
stevensu1838 opened this issue Feb 20, 2021 · 2 comments

Comments

@stevensu1838
Copy link

Hi team,

I followed your instructions on your e manual to install tensorflow and keras on my ROS kinetic PC. However
e manual
TurtleBot3 49 Machine Learning tutorial 1

However, when I run import tensorflow as tf I get the following errors. I am setting up this course for my students. Could you please update your e manual and make it reliable? Thanks a lot.

`mario@mario:~/Downloads$ python
Python 2.7.15 |Anaconda, Inc.| (default, May 1 2018, 23:32:55)
[GCC 7.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import tensorflow
Traceback (most recent call last):
File "", line 1, in
File "/home/mario/anaconda2/lib/python2.7/site-packages/tensorflow/init.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/home/mario/anaconda2/lib/python2.7/site-packages/tensorflow/python/init.py", line 47, in
import numpy as np
File "/home/mario/anaconda2/lib/python2.7/site-packages/numpy/init.py", line 142, in
from . import core
File "/home/mario/anaconda2/lib/python2.7/site-packages/numpy/core/init.py", line 91, in
raise ImportError(msg.format(path))
ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['/home/mario/anaconda2/lib/python2.7/site-packages/numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.
import tensorflow as tf
Traceback (most recent call last):
File "", line 1, in
File "/home/mario/anaconda2/lib/python2.7/site-packages/tensorflow/init.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/home/mario/anaconda2/lib/python2.7/site-packages/tensorflow/python/init.py", line 47, in
import numpy as np
File "/home/mario/anaconda2/lib/python2.7/site-packages/numpy/init.py", line 140, in
from . import _distributor_init
ImportError: cannot import name _distributor_init

`

The last question is :
Why is it that u created a virtual environment called tensorflow but never activated it? Does it mean that ur tensorflow is installed in the root/base environment? In this case whats the use of creating a virtual env?

This question is asked on your youtube tutorial as well not answered yet. Cheers

@stevensu1838
Copy link
Author

Hi team,
I spend the whole to to try run your instructions on your e manual to install tensorflow and keras on my ROS kinetic PC. It didn't work. Would you please consider update your instruction to make it work? Thanks a lot. Cheers.

@ROBOTIS-Will
Copy link

Hi @stevensu1838
I'm sorry about the delayed response.
The TurtleBot3 machine learning package is being reviewed and will be updated soon for the latest software support.
Thank you.

@ROBOTIS-Will ROBOTIS-Will transferred this issue from ROBOTIS-GIT/turtlebot3 Mar 10, 2021
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

2 participants