Comments (10)
Any error messages or other console output at all?
from python-gphoto2.
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.
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.
I have tried the example programs but I am not familiar with the logging, where do the messages go?
from python-gphoto2.
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.
Jim, ok let me try that and see if I get any messages that help.
Thanks,
Chris
from python-gphoto2.
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.
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.
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.
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)
- 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.