piggyphoto
piggyphoto copied to clipboard
Seems to be incompatible with python 2.7
It seems to be incompatible with debian squeeze python2.7 - something has changed in ctypes maybe? Error ca be seen whily running python list-config.py :
main.actions.manualfocusdrive =
Traceback (most recent call last):
File "list-config.py", line 5, in <module>
C.list_config()
File "/home/user/devels/dslrPi/piggyphoto/piggyphoto/__init__.py", line 360, in list_config
self._list_config(cfg, cfglist, cfg.name)
File "/home/user/devels/dslrPi/piggyphoto/piggyphoto/__init__.py", line 352, in _list_config
self._list_config(c, cfglist, path + "." + c.name)
File "/home/user/devels/dslrPi/piggyphoto/piggyphoto/__init__.py", line 352, in _list_config
self._list_config(c, cfglist, path + "." + c.name)
File "/home/user/devels/dslrPi/piggyphoto/piggyphoto/__init__.py", line 354, in _list_config
print path, "=", widget.value
File "/home/user/devels/dslrPi/piggyphoto/piggyphoto/__init__.py", line 655, in _get_value
value = ctypes.cast(value.value, ctypes.c_float_p)
AttributeError: 'module' object has no attribute 'c_float_p'
I'm using this lib against a Nikon d90:
gphoto2 --get-config /main/actions/manualfocusdrive
Label: Drive Nikon DSLR Manual focus
Type: RANGE
Current: 0
Bottom: -32767
Top: 32767
Step: 1
Python version: 2.7.3rc2
According to python documentation, there is no such attribute "c_float_p": http://docs.python.org/2/library/ctypes.html#fundamental-data-types
Thanks for your help !
Cheers,
C.