jim-easterbrook / python-gphoto2

Python interface to libgphoto2
GNU Lesser General Public License v3.0
360 stars 59 forks source link

Are the examples out of date? #101

Closed jamoore5 closed 4 years ago

jamoore5 commented 4 years ago

I pip installed the package and confirmed that I have version 2.2.1. However some of the examples do not work.

For example,

$ python3 choose-camera.py
Traceback (most recent call last):
  File "choose-camera.py", line 79, in <module>
    sys.exit(main())
  File "choose-camera.py", line 35, in main
    camera_list = list(gp.Camera.autodetect())
AttributeError: type object 'gphoto2.camera.Camera' has no attribute 'autodetect'
jim-easterbrook commented 4 years ago

gp.Camera.autodetect has been added since version 2.2.1. Are you using the examples installed by pip or are you downloading the newer one from GitHub?