-
Notifications
You must be signed in to change notification settings - Fork 111
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
Comments
SolutionTo 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 |
Thanks for the help with the issues! |
I have the same problem with this bro,and my output is can you help me?thank you! |
hi @bensort, Please go to 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 : ############# COMPRESSED IMAGE ###################### |
hi @cardboardcode, |
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. |
importerror produced when i using python3,like this below: |
@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. |
Zizhe Wang ***@***.***>于2021年7月5日 周一22:46写道:
@cardboardcode <https://github.com/cardboardcode> @bensort
<https://github.com/bensort> @mhudnell <https://github.com/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
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALYLH7WTZQR7MUS6RCCPMCLTWHAWFANCNFSM4RPDQRSQ>
.
# !/usr/bin/env python3
# import roslib
#roslib.load_manifest('rosbag')
import rospy
import rosbag
import sys, getopt
import os
from sensor_msgs.msg import CompressedImage
from sensor_msgs.msg import Image
ros_path = '/opt/ros/kinetic/lib/python2.7/dist-packages'
if ros_path in sys.path:
sys.path.remove(ros_path)
import cv2
import numpy as np
import subprocess
sys.path.append('/opt/ros/kinetic/lib/python2.7/dist-packages')
MJPEG_VIDEO = 1
RAWIMAGE_VIDEO = 2
VIDEO_CONVERTER_TO_USE = "ffmpeg" # or use "avconv"
I made the above modification and the error disappeared
… |
Closing. Will make a PR in the future to dockerize and resolve all environment dependency issues. |
Running
$ sudo apt install python3-roslib python3-sensor-msgs python3-opencv
outputs:I'm relatively new to ubuntu, do I need to add to apt source list to install these? How do I do that?
The text was updated successfully, but these errors were encountered: