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

Can't import python-rosbag in Google Colab #74

Open
lewleib opened this issue Jul 13, 2019 · 0 comments
Open

Can't import python-rosbag in Google Colab #74

lewleib opened this issue Jul 13, 2019 · 0 comments

Comments

@lewleib
Copy link

lewleib commented Jul 13, 2019

I am attempting to use Google Colab to run https://github.com/ARiSE-Lab/deepTest deep neural network software developed on Ubuntu. I was able to run the install.sh with small modifications.
I was successful, after adding "!", in loading:
! sudo apt-get install python-rosbag ! sudo apt-get install python-genmsg ! sudo apt-get install python-genpy ! sudo apt-get install python-rosgraph-msgs1

This installed many files including:
Setting up python-rosbag (1.13.5+ds1-3) ...
However, when I ran the program generate_hmb3.py whose 2nd line is:
import rosbag
I got an invalid syntax error message. When I changed the line to read:
import python-rosbag
I got the message:
File "<ipython-input-12-37a7e266f3af>", line 7 import python-rosbag ^ SyntaxError: invalid syntax

After reading nottombrown comment to "Unable to Import Module in Google Colab after installing #42"
I did a "reset all runtimes" before trying the import command and got;
`ModuleNotFoundError Traceback (most recent call last)
in ()
----> 1 import rosbag

ModuleNotFoundError: No module named 'rosbag'`

 Any suggestions?

 

Any solutions to this problem?

Lew Leibowitz

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

1 participant