Error while using Octolapse with DSLR and gphoto2

Hi,

I am using a Ender 3 Pro with OctoPi and I want to use my DSLR Camera for timelapses with Octolapse.

I followed this tutorial from FormerLurker: https://github.com/FormerLurker/Octolapse/wiki/Configuring-an-External-Camera

I followed the tutorial step by step and it worked fine until step 7.
I added the External Camera to Octolapse and entered it in the field "/home/pi/scripts/take-snapshot.sh".

After this I pressed "Test Script" and I got an Error.
OctoPi said "Errors were detected - The 'Canon 1300D - Snapshot Camera Script' process returned errors. See plugin_octolapse.log for details"
The log says:
2021-10-11 18:02:18,594 - octolapse.script - ERROR - Error output (stderr) for 'Canon 1300D - Snapshot Camera Script':
sudo: no tty present and no askpass program specified
sudo: no tty present and no askpass program specified
The snapshot was not found in the expected directory: '/tmp/tmp4medcjoc/1c5aad02-5580-4683-819b-283dc72b9568/b4800391-4564-49aa-99d7-98285eb94dd1/test_snapshot000000.jpg'.

Does anyone have an idea to solve this problem?
Thanks!

hello, dear did u solve this problem?????????