Error 2002 on query
System macOS v14.6.1 Python v3.12.5 libgphoto2 v2.5.31
Issue
Trying to run camera-summary.py from the examples.
The camera connects correctly but from the device property summary only the first entry is displayed correctly (White Balance)… all the subsequent properties return error 2002.
> python3 camera-summary.py
Summary
=======
Manufacturer: Sony Corporation
Model: ILCE-7M4
Version: 3.01
Serial Number: 00000000000000003285373006671813
Vendor Extension ID: 0x11 (1.0)
Vendor Extension Description: Sony PTP Extensions
Capture Formats:
Display Formats: Association/Directory, JPEG, ARW, MPEG, Unknown(b982), Unknown(b110)
Device Capabilities:
File Download, No File Deletion, File Upload
No Image Capture, No Open Capture, Sony Capture
Storage Devices Summary:
Device Property Summary:
White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,32785,32784,6,32769,32770,32771,32772,7,32816,32786,32800,32801,32802] value: Automatic (2)
Focus Mode(0x500a): error 2002 on query.
Exposure Metering Mode(0x500b): error 2002 on query.
Flash Mode(0x500c): error 2002 on query.
Exposure Bias Compensation(0x5010): error 2002 on query.
OC Compensation(0xd200): error 2002 on query.
DRangeOptimize(0xd201): error 2002 on query.
Shutter speed(0xd20d): error 2002 on query.
Color temperature(0xd20f): error 2002 on query.
Aspect Ratio(0xd211): error 2002 on query.
Focus status(0xd213): error 2002 on query.
Property 0xd217: error 2002 on query.
Sensor Crop(0xd219): error 2002 on query.
Picture Effect(0xd21b): error 2002 on query.
Property 0xd221: error 2002 on query.
ISO(0xd21e): error 2002 on query.
etc.
This is a bug in libgphoto2 v2.5.31. See https://github.com/gphoto/libgphoto2/issues/937
Thank you!
@ertdfgcvb, did you have to comment out any lines in ptp.c or ptp.h in libgphoto2 to get this to work with your A7M4?
@andrewyguo I don't know how to compile the library as I get some errors when following the instructions and I don’t have much time diving into it, unfortunately.
I'm simply waiting for the next release at this point (hoping that it’s imminent), sorry…