Open data-bonanza opened 2 years ago
Same here. When I just delete the PropertyEvent type constraint from the function I get:
File "C:\Users\thorsten.rissom\source\repos\edsdk-python\examples\save_image.py", line 63, in
Same here. You can also comment this line out and it works for me.
Same here. When I just delete the PropertyEvent type constraint from the function I get:
File "C:\Users\thorsten.rissom\source\repos\edsdk-python\examples\save_image.py", line 63, in print(edsdk.GetPropertyData(cam, PropID.SaveTo)) TypeError: EdsGetPropertyData() takes exactly 3 arguments (2 given)
The PropertyEvent
is missing in the callback_property
function, however, callback_property
is never even called so it could be removed or an example of it could be added
GetPropertyData
should be defaulting to 0
if its not provided but it seems that, that doesn't work
Looks like the callback_property function is trying to access the PropertyEvent but don't find it because is not imported. So I added the PropertyEvent in the from edsdk import ()
and commented the print(edsdk.GetPropertyData(cam, PropID.SaveTo))
in the main function. It worked.
Added the PropertyEvent in import
Commented the print in main function
yeah- thats what #2 does.
Thank you for your edsdk-python code.
I am trying this "save_image.py"
There are two problem.
(1) 'PropertyEvent' is not defined
NameError: name 'PropertyEvent' is not defined
(2) result is None, None
is it right?
Computer is connected to the EOS Canon camera with USB.