Closed bitShakeMX closed 4 years ago
I can't see any obvious errors in that, although your use of logging is unconventional. One usually creates a logger (e.g. logger = logging.getLogger(__name__)
at the top of the program and then calls its methods such as logger.info
.)
What version of python-gphoto2 are you using and how did you install it?
Are you saying the leak only occurs when running under systemd
?
This short Python script can be used to check the versions of libgphoto2 and python-gphoto2.
import sys
import gphoto2 as gp
print('python:', sys.version)
print('libgphoto2:', gp.gp_library_version(gp.GP_VERSION_VERBOSE))
print('python-gphoto2:', gp.__version__)
This page is for reporting problems with the Python interface to libgphoto2. If your question is about using libgphoto2 you should ask on the gphoto2 mailing list.
Your system What version of Python are you using? Pyrhon3
What version of libgphoto2 have you installed? 2.5.22
How have you installed (or attempted to install) python-gphoto2? Installed
I'm using python-gphoto2 to take photos every x time, the camera is configured to turn off every 30 seconds, I wake it up with a pulse to the shutter. My code:
Issue: I mounted a systemd service to handle the execution of the code, but the RAM usage raises every cycle once takes the photo to the point code crashes.