jim-easterbrook / python-gphoto2

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

ImportError: No module named gphoto2 #64

Closed maxholgasson closed 5 years ago

maxholgasson commented 6 years ago

Hi,

I try to run your example import gphoto2 as gp context = gp.gp_context_new() error, camera = gp.gp_camera_new() error = gp.gp_camera_init(camera, context) error, text = gp.gp_camera_get_summary(camera, context) print('Summary') print('=======') print(text.text) error = gp.gp_camera_exit(camera, context)

but get that error that the module gphoto2 is not found.

In the terminal "gphoto2 -L" or capture a photo works perfect however

jim-easterbrook commented 6 years ago

Have you installed the python-gphoto2 package without any error message?