Skip to content

python -m teleimager.image_server --rs ERROR #6

@Mooo-o

Description

@Mooo-o

(unitree_deploy) unitree@ubuntu:~/teleimager$ python -m teleimager.image_server --rs
INFO:main:
====================== Image Server Startup Guide ======================
Please first read this repo's README.md to learn how to configure and use the teleimager.
To discover connected cameras, run the following command:

teleimager-server --cf

The '--cf' flag means 'camera find'.
This will list all detected cameras and their details (video paths, serial numbers and physical path etc.).
Use that information to fill in your 'cam_config_server.yaml' file.
Once configured, you can start the image server with:

teleimager-server

Note:

  • If you have RealSense cameras, add the '--rs' flag to enable RealSense support.
  • Make sure you have proper permissions to access the camera devices (e.g., run with sudo or set udev rules).
    ==========================================================================
    modprobe: FATAL: Module uvcvideo is in use.
    ERROR:main:Failed to reload driver: Command 'sudo modprobe -r uvcvideo' returned non-zero exit status 1.
    INFO:teleimager.image_client:[Responser] Camera Config Responser initialized at 0.0.0.0:60000
    ERROR:main:[Image Server] Initialization failed: [RealSenseCamera] Failed to initialize RealSense camera 243322074012: xioctl(VIDIOC_S_FMT) failed Last Error: Device or resource busy
    INFO:main:[Image Server] Clean up completed. Server stopped.
    Traceback (most recent call last):
    File "/home/unitree/teleimager/src/teleimager/image_server.py", line 913, in init
    profile = self.pipeline.start(config)
    RuntimeError: xioctl(VIDIOC_S_FMT) failed Last Error: Device or resource busy

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/unitree/miniconda3/envs/unitree_deploy/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/unitree/miniconda3/envs/unitree_deploy/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/unitree/teleimager/src/teleimager/image_server.py", line 1428, in
main()
File "/home/unitree/teleimager/src/teleimager/image_server.py", line 1413, in main
server = ImageServer(cam_config, realsense_enable=args.rs, camera_finder_verbose=False)
File "/home/unitree/teleimager/src/teleimager/image_server.py", line 1182, in init
self._cameras[cam_topic] = RealSenseCamera(cam_topic, serial_number, img_shape, fps,
File "/home/unitree/teleimager/src/teleimager/image_server.py", line 930, in init
raise RuntimeError(f"[RealSenseCamera] Failed to initialize RealSense camera {self._serial_number}: {e}")
RuntimeError: [RealSenseCamera] Failed to initialize RealSense camera 243322074012: xioctl(VIDIOC_S_FMT) failed Last Error: Device or resource busy

how to resolve it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions