Coder Social home page Coder Social logo

Comments (10)

jim-easterbrook avatar jim-easterbrook commented on July 3, 2024

Any error messages or other console output at all?

from python-gphoto2.

chrisimars avatar chrisimars commented on July 3, 2024

Jim, no the python program just quits. I have tried debugging via IDLE3 but it will not step into the call.
Chris

from python-gphoto2.

jim-easterbrook avatar jim-easterbrook commented on July 3, 2024

That's odd. I suspect you are getting a segfault or similar, although they're not usually silent. I assume you've called gp.use_python_logging() at the start of your program (and set up logging.basicConfig()) as in the python-gphoto2 example programs.

from python-gphoto2.

chrisimars avatar chrisimars commented on July 3, 2024

I have tried the example programs but I am not familiar with the logging, where do the messages go?

from python-gphoto2.

jim-easterbrook avatar jim-easterbrook commented on July 3, 2024

You should get messages on the terminal where you run the program. It's best to use the command line for this sort of thing, rather than running in any sort of IDE.

from python-gphoto2.

chrisimars avatar chrisimars commented on July 3, 2024

Jim, ok let me try that and see if I get any messages that help.
Thanks,
Chris

from python-gphoto2.

chrisimars avatar chrisimars commented on July 3, 2024

Jim, whenever I try to run a program with the error logging I get the following message:
WARNING: gphoto2: (gp_port_set_error [gphoto2-port.c:1186]) The supplied vendor or product id (0x0,0x0) is not valid.
Not sure if that is related, I get this for functions that work in other programs without the logging.
Chris

from python-gphoto2.

jim-easterbrook avatar jim-easterbrook commented on July 3, 2024

libgphoto2 seems to produce a lot of messages that aren't really a problem. It's not easy to tell which ones matter and which don't. I take it you're still not getting anything useful from your program that exits abruptly.
Can you try it on a different model of computer? (E.g. desktop Linux box instead of Raspberry Pi.)

from python-gphoto2.

chrisimars avatar chrisimars commented on July 3, 2024

Jim, not easily. I am now focusing on just getting a file from the camera. When you try to get the image the camera led for the storage card is on until you power cycle the camera. Maybe the lower level code is not handling the data transfer properly.

On the capture side, I found out that the Nikon camera I am using only allows you to get the image from a still capture if the image is stored in SDRAM. It sends events in that case with the imagebuffer as a parameter. How does python-gphoto2 handle events? Is that just in the libgphoto2 stuff?

Sorry to bother you with this but I am new to the gphoto2 stuff and want to get a camera working. I may try a Canon camera also.
Thanks,
Chris

from python-gphoto2.

jim-easterbrook avatar jim-easterbrook commented on July 3, 2024

As far as I know the only libgphoto2 event handling (at the user program level) is gp_camera_wait_for_event(), which python-gphoto2 should handle OK.

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.