aravis
aravis copied to clipboard
ValueError: Pointer arguments are restricted to integers, capsules, and None. See: https://bugzilla.gnome.org/show_bug.cgi?id=683599
Describe the bug Creating a preallocated buffer in python throws the above error
To Reproduce import gi, numpy gi.require_version('Aravis','0.8') from gi.repository import Aravis,
fake_array = numpy.arange(1,17, dtype= numpy.uint16).reshape((4,4)) fake_buffer = Aravis.Buffer.new(fake_array.nbytes, fake_array.flatten().tobytes())
Expected behavior I expected to have an Aravis.Buffer reference to be created
Camera description:
- arv-fake-gv-camera-0.8 -i 127.0.0.1
Platform description:
- Aravis version 0.8
- OS: [Ubuntu 22.04]
- Hardware [x86_64]
- Python version: Python 3.10.12 64bit
Additional context Trying in python to create an Aravis Buffer which is already preallocated and populated with fake values like above. The context is to push this buffer into a stream, start acquiring with a fake camera, and see if the values can be correctly read out once the buffer is poped.
Thanks for the report.
Could you please attach a simple python script that shows the issue ?
No update, I'm closing the issue. Don't hesitate to reopen with the requested information.
Thanks.