We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I tried the sample code on a Sony a7r3:
import gphoto2cffi as gp my_cam = gp.Camera() imgdata = my_cam.capture()
And get the following error:
Traceback (most recent call last): File "", line 1, in File "/home/installer/.local/lib/python3.6/site-packages/gphoto2cffi/gphoto2.py", line 105, in wrapped rval = meth(self, *args, **kwargs) File "/home/installer/.local/lib/python3.6/site-packages/gphoto2cffi/gphoto2.py", line 716, in capture target = self.config['settings']['capturetarget'] KeyError: 'capturetarget'
In the debugger:
len(my_cam.config['settings']) 0
By the way, the output from gphoto2 --list-config does not show a "/main/settings" section, only "/main/capturesettings/", "/main/actions/", ...
However, I have no problems capturing images using gphoto2 or python-gphoto2.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I tried the sample code on a Sony a7r3:
import gphoto2cffi as gp
my_cam = gp.Camera()
imgdata = my_cam.capture()
And get the following error:
Traceback (most recent call last):
File "", line 1, in
File "/home/installer/.local/lib/python3.6/site-packages/gphoto2cffi/gphoto2.py", line 105, in wrapped
rval = meth(self, *args, **kwargs)
File "/home/installer/.local/lib/python3.6/site-packages/gphoto2cffi/gphoto2.py", line 716, in capture
target = self.config['settings']['capturetarget']
KeyError: 'capturetarget'
In the debugger:
By the way, the output from
gphoto2 --list-config
does not show a "/main/settings" section, only "/main/capturesettings/", "/main/actions/", ...
However, I have no problems capturing images using gphoto2 or python-gphoto2.
The text was updated successfully, but these errors were encountered: