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

Seems to be incompatible with python 2.7 #4

Open
cjeanneret opened this issue Nov 27, 2012 · 0 comments
Open

Seems to be incompatible with python 2.7 #4

cjeanneret opened this issue Nov 27, 2012 · 0 comments

Comments

@cjeanneret
Copy link

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.

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

1 participant