Giter Club home page Giter Club logo

Comments (3)

greiginsydney avatar greiginsydney commented on June 29, 2024 1

Bingo! Thanks Jim. Omitting that entire line in the build script has done the trick.

I can now build to current releases of both libgphoto and python-gphoto.

pi@BenchPi3BPlus:~/examples $ python3 gphoto2_version.py
python: 3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110]
libgphoto2: ['2.5.30.1', 'standard camlib set SKIPPING SOME (ax203 canon digigr8 dimagev directory jl2005a jl2005c kodak_dc240 mars pentax ptp2 ricoh_g3 sierra sonix sq905 st2205 topfield tp6801 SKIPPING docupen lumix)', 'gcc (C compiler used)', 'no ltdl (for portable loading of camlibs)', 'EXIF (for special handling of EXIF files)']
libgphoto2_port: ['0.12.1', 'iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi', 'gcc (C compiler used)', 'no ltdl (for portable loading of iolibs)', 'EXIF (for vusb)', 'USB (libusb1, for USB cameras)', 'serial (for serial cameras)', 'no resmgr (serial port access and locking)', 'no ttylock (serial port locking)', 'no lockdev (serial port locking)']
python-gphoto2: 2.3.4
pi@BenchPi3BPlus:~/examples $

I appreciate the help as always.

- G.

from python-gphoto2.

jim-easterbrook avatar jim-easterbrook commented on June 29, 2024

Why are you using apt to install libgphoto2 after you've installed your local build of it? This might be giving you two installations in different places which could confuse the Python build. The import error might be because at runtime Python is linking to a different version of libgphoto2 than the one whose header files python-gphoto2 was built with.

from python-gphoto2.

greiginsydney avatar greiginsydney commented on June 29, 2024

That would be purely a misunderstanding as to what all the various components do.

I'd do a rebuild without adding libgphoto2-6 & libgphoto2-port12 and see what happens.

Thanks.

from python-gphoto2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.