Skip to content
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

Error 2002 on query #175

Open
ertdfgcvb opened this issue Aug 29, 2024 · 4 comments
Open

Error 2002 on query #175

ertdfgcvb opened this issue Aug 29, 2024 · 4 comments

Comments

@ertdfgcvb
Copy link

ertdfgcvb commented Aug 29, 2024

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.
@jim-easterbrook
Copy link
Owner

This is a bug in libgphoto2 v2.5.31. See gphoto/libgphoto2#937

@ertdfgcvb
Copy link
Author

Thank you!

@andrewyguo
Copy link

@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?

@ertdfgcvb
Copy link
Author

@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… 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants