Skip to content

AttributeError: 'numpy.ndarray' object has no attribute 'tostring' #28

@pitrou

Description

@pitrou

I've installed camset locally using pipx on Ubuntu 24.04, but I now get these exceptions when trying to view the camera feed:

Traceback (most recent call last):
  File "/home/antoine/.local/share/pipx/venvs/camset/lib/python3.12/site-packages/camset/cam_window.py", line 71, in show_frame
    pixbuf = GdkPixbuf.Pixbuf.new_from_data(frame.tostring(),
                                            ^^^^^^^^^^^^^^
AttributeError: 'numpy.ndarray' object has no attribute 'tostring'
/home/antoine/.local/share/pipx/venvs/camset/lib/python3.12/site-packages/camset/cam_window.py:27: Warning: Source ID 4065 was not found when attempting to remove it
  GLib.source_remove(self.run_id)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions