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

dependencies not found #17

Closed
mhudnell opened this issue Sep 16, 2020 · 11 comments
Closed

dependencies not found #17

mhudnell opened this issue Sep 16, 2020 · 11 comments

Comments

@mhudnell
Copy link

Running $ sudo apt install python3-roslib python3-sensor-msgs python3-opencv outputs:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package python3-roslib
E: Unable to locate package python3-sensor-msgs

I'm relatively new to ubuntu, do I need to add to apt source list to install these? How do I do that?

@cardboardcode
Copy link
Collaborator

cardboardcode commented Apr 27, 2021

@mhudnell

Solution

To resolve this issue, run the following installation commands:

sudo apt-get update
sudo apt-get install python3-roslib python3-sensor-msgs

If it is still unable to locate the packages, please state what Ubuntu OS version you are currently using. You can find that out by running the command below:

lsb_release -a

@mlaiacker
Copy link
Owner

Thanks for the help with the issues!

@bensort
Copy link

bensort commented May 27, 2021

I have the same problem with this bro,and my output is
lsb_release -a:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial

can you help me?thank you!

@cardboardcode
Copy link
Collaborator

hi @bensort,

Please go to Software & Updates in your Ubuntu Operating System and ensure the following configurations have been set, like so:
Screenshot from 2021-05-27 17-03-32

Once done, open a terminal and run the following commands:

sudo apt-get update
sudo apt-get install python3-roslib python3-sensor-msgs

If this still does not work, it could be because these packages are no longer available specifically to Ubuntu 16.04. Our script has only been verified to be able to run on Ubuntu 20.04.

@bensort
Copy link

bensort commented May 27, 2021

hi @bensort,

Please go to Software & Updates in your Ubuntu Operating System and ensure the following configurations have been set, like so:
Screenshot from 2021-05-27 17-03-32

Once done, open a terminal and run the following commands:

sudo apt-get update
sudo apt-get install python3-roslib python3-sensor-msgs

If this still does not work, it could be because these packages are no longer available specifically to Ubuntu 16.04. Our script has only been verified to be able to run on Ubuntu 20.04.

hi @cardboardcode
I tried it again,and does not installed these dependece,the script can run normally,but it does not seems like to support JPEG encode. Terminal output like this:

############# COMPRESSED IMAGE ######################
('video/axis_unit1_cam2', ' with datatype:', 'sensor_msgs/CompressedImage')
()
('unsupported jpeg format:', 'jpeg', '.', 'video/axis_unit1_cam3')
('unsupported jpeg format:', 'jpeg', '.', 'video/axis_unit1_cam1')
('unsupported jpeg format:', 'jpeg', '.', 'video/axis_unit1_cam1')
('unsupported jpeg format:', 'jpeg', '.', 'video/axis_unit1_cam1')
finished

@bensort
Copy link

bensort commented May 27, 2021

hi @bensort,

Please go to Software & Updates in your Ubuntu Operating System and ensure the following configurations have been set, like so:
Screenshot from 2021-05-27 17-03-32

Once done, open a terminal and run the following commands:

sudo apt-get update
sudo apt-get install python3-roslib python3-sensor-msgs

If this still does not work, it could be because these packages are no longer available specifically to Ubuntu 16.04. Our script has only been verified to be able to run on Ubuntu 20.04.

hi @cardboardcode,
When I use python2 to run this script, no error is reported, but when I use python3, an error will be reported,does it Necessary to use python3? Thank you for your kind reply!

@cardboardcode
Copy link
Collaborator

cardboardcode commented May 27, 2021

Hi @bensort

Hmm... That's weird. The script specifies python3, as shown by the shebang defined in the header of the script. Not sure why it is able to use python2...

Is the error produced when using python3 the one below?

############# COMPRESSED IMAGE ######################
('video/axis_unit1_cam2', ' with datatype:', 'sensor_msgs/CompressedImage')
()
('unsupported jpeg format:', 'jpeg', '.', 'video/axis_unit1_cam3')
('unsupported jpeg format:', 'jpeg', '.', 'video/axis_unit1_cam1')
('unsupported jpeg format:', 'jpeg', '.', 'video/axis_unit1_cam1')
('unsupported jpeg format:', 'jpeg', '.', 'video/axis_unit1_cam1')

For now, as long as it works properly in python2, you can just continue using python2.

@bensort
Copy link

bensort commented May 27, 2021

importerror produced when i using python3,like this below:
Traceback (most recent call last): File "/home/qin/download/rosbag2video-master/rosbag2video.py", line 13, in <module> import roslib ImportError: No module named 'roslib'

@wangzizhe
Copy link

@cardboardcode @bensort @mhudnell

Hi, everyone, I have the same problem. The solution above doesn't work. Is there any update to this issue? Did you find the a solution?

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic

@bensort
Copy link

bensort commented Jul 28, 2021 via email

@cardboardcode
Copy link
Collaborator

Closing. Will make a PR in the future to dockerize and resolve all environment dependency issues.

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

5 participants