Comments (4)
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.
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.
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.
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)
- Missing pre-req's(?) after building libgphoto2 from source on Raspberry Pi HOT 3
- Can not set datetime on Canon EOS 1200D HOT 4
- equivalent of gphoto2 --reset HOT 1
- delete a file HOT 2
- gp_camera_get_single_config HOT 2
- Socket error after gp_camera_exit in windows/msys2 HOT 15
- Faster way to copy files from camera HOT 7
- Sony FX3 overshoot HOT 1
- `delete_file()` does not delete file HOT 9
- Segmentation Fault segfault on gp.Camera.autodetect() on Github Actions Runner HOT 21
- LGPL vs. GPL license? HOT 8
- Test Virtual Camera HOT 4
- Missing bindings for gp_port_new, gp_port_open, and gp_port_reset? HOT 2
- capture_preview() broken in v2.5.0 HOT 4
- having trouble getting gphoto2 on rpi HOT 3
- use python-gphoto2 in Windows system HOT 1
- Always connected capture anytime HOT 1
- Github Actions Python 3.12 environment. HOT 1
- Is live data acquisition available in the library? HOT 1
- Error When Installing with "Local" libgphoto2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-gphoto2.