Giter Club home page Giter Club logo

Comments (4)

WillNye avatar WillNye commented on June 26, 2024 1

I finally figured it out after banging my head against a wall. I had set it manually to the memory card, HOWEVER, it was getting reset to write to RAM after the first photo was taken. The reason turns out to be my camera was plugged into a USB port which was not integrated. After plugging into a USB port that was directly on the MOBO it works fine now. A very odd bug and no clue what causes this. I tried it on 5 different external ports and got the same issue. Plugged it into 3 MOBO USB ports works like a charm.

The warnings read like it causes a problem with the PTP for some reason. I'd ask the OP if he is using a HUB or is plugged directly into the pi. If he isn't, try that and see if it works because I had the same error messages. Also, this is not a python-gphoto2 issue. I got the same problem when calling gphoto2 from terminal.

from python-gphoto2.

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

Do you get the same messages if you run the gphoto2 command with --debug-loglevel error --debug options?
Libgphoto2 doesn't discriminate well enough between errors, warnings and debug info in my opinion. You either get nothing or a lot of stuff that isn't really a problem. You could try fine-tuning the logging as described in the python-gphoto2 readme.

from python-gphoto2.

WillNye avatar WillNye commented on June 26, 2024

I'm seeing the same issue it also seems to have an impact on interval photos, it seems to be overwriting images on the camera as opposed to appending them. As a result this will take 15 photos but only 1 will be on the camera (the last photo taken)

    for x in range(15):
        file_path = gp.check_result(gp.gp_camera_capture(
            camera, gp.GP_CAPTURE_IMAGE, context))
    gp.check_result(gp.gp_camera_exit(camera, context))

from python-gphoto2.

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

Have you set the capture target to "memory card" or "internal ram"? (Those are the options on my camera, yours may be different.)
Do you get a different file_path value on each capture?

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.