Siril Scripts not working - cd command leads to wrong directory.

I have been using Siril manually with success. I wanted to try the pre-processing with drizzle, but something is odd. I am on Ubuntu 18.04, running Siril 0.99.7. My working directory is: /media/NetDoc/UbuntuHD/Astrophotography/photos/foo/bar. In that directory I have the proper folders as directed. The script command cd /biases seems to want to open /biases/media/UbuntuHD/Astrophotography/photos/foo/bar which fails. Somehow it is appending the /biases to the beginning of the WD, rather than to the end…

Here is the log:

09:57:53: Running command: requires
09:57:53: # Convert Bias Frames to .fit files
09:57:53: Running command: cd
09:57:53: Setting CWD (Current Working Directory) to ā€˜biases/media/NetDoc/UbuntuHD/Astrophotography/Photos/foo/bar’
09:57:53: Running command: convert
09:57:53: Convert: error opening working directory biases/media/NetDoc/UbuntuHD/Astrophotography/Photos/foo/bar.
09:57:53: Error in line 26: ā€˜convert’.
09:57:53: Exiting batch processing.
09:57:53: Setting CWD (Current Working Directory) to ā€˜/media/NetDoc/UbuntuHD/Astrophotography/Photos/foo/bar’
09:57:53: Script execution failed.

Please show us some screenshot of your trees and front screen of siril.
Looks like your cwd is not good.

What do you mean ā€œtrees?ā€ My directory structure? This is a second HD mounted in my media directory. It works fine with everything including Siril.

Yes but I want to see how you did organized you files. And what is your cwd in siril.

OK, this is the ā€œHomeā€ screen where I set the CWD. And here is my computer ā€œtree.ā€ Thanks for helping…Screenshot from 2020-12-28 14-41-31

OK, but your cwd is currently set to a wrong place …/Astrophotography/Photos/Dec 26 2020/Lights

Sorry, I am confused. Where are you getting that from? This isn’t what the pictures I sent show. Is this from some internal log that is communicated to you? Here is the complete log from a session where my CWD is set to …/Astrophotography/Test/SirilTest which contains the requisite 4 folders. What is going wrong?

As you see, I have set my CWD here to the right place:
12:43:05: Setting CWD (Current Working Directory) to ā€˜/media/pbleic/UbuntuHD/Astrophotography/Test/SirilTest’

but the first step in the program tries to set it to:
12:43:09: Setting CWD (Current Working Directory) to ā€˜biases/media/pbleic/UbuntuHD/Astrophotography/Test/SirilTest’

It is putting ā€œbiases/ā€ in FRONT of my CWD rather than appending /biases to the end of it.

12:43:04: Welcome to siril v0.99.7
12:43:04: Supported file types: BMP images, PIC images (IRIS), PGM and PPM binary images, RAW images, FITS-CFA images, Films, SER sequences, TIFF images, JPG images, PNG images, HEIF images.
12:43:04: Loading init file: ā€˜/home/pbleic/.config/siril/siril.config’
12:43:04: Parallel processing enabled: Using 4 logical processors.
12:43:05: Setting CWD (Current Working Directory) to ā€˜/media/pbleic/UbuntuHD/Astrophotography/Test/SirilTest’
12:43:05: Searching scripts in: ā€œ/usr/share/siril/scriptsā€ā€¦
12:43:05: Loading script: Mono_Preprocessing
12:43:05: Loading script: OSC_Extract_Ha
12:43:05: Loading script: OSC_Extract_HaOIII
12:43:05: Loading script: OSC_Preprocessing
12:43:05: Loading script: OSC_Preprocessing_WithDrizzle
12:43:05: Loading registration method: One Star Registration (deep-sky)
12:43:05: Loading registration method: Global Star Alignment (deep-sky)
12:43:05: Loading registration method: Image Pattern Alignment (planetary - full disk)
12:43:05: Loading registration method: Enhanced Correlation Coefficient (planetary - surfaces)
12:43:05: Loading registration method: Comet/Asteroid Registration
12:43:05: Default FITS extension is set to .fit
12:43:09: Starting script /usr/share/siril/scripts/OSC_Preprocessing_WithDrizzle.ssf
12:43:09: ############################################
12:43:09: #
12:43:09: # Script for Siril 1.0
12:43:09: # July 2020
12:43:09: # (C) Cyril Richard
12:43:09: # OSC_Preprocessing_WithDrizzle v1.0
12:43:09: #
12:43:09: ########### PREPROCESSING SCRIPT ###########
12:43:09: #
12:43:09: # Script for color camera preprocessing
12:43:09: # aligning using Drizzle 2x
12:43:09: #
12:43:09: # Needs 4 sets of RAW images in the working
12:43:09: # directory, within 4 directories:
12:43:09: # biases/
12:43:09: # flats/
12:43:09: # darks/
12:43:09: # lights/
12:43:09: #
12:43:09: ############################################
12:43:09: Running command: requires
12:43:09: # Convert Bias Frames to .fit files
12:43:09: Running command: cd
12:43:09: Setting CWD (Current Working Directory) to ā€˜biases/media/pbleic/UbuntuHD/Astrophotography/Test/SirilTest’
12:43:09: Running command: convert
12:43:09: Convert: error opening working directory biases/media/pbleic/UbuntuHD/Astrophotography/Test/SirilTest.
12:43:09: Error in line 26: ā€˜convert’.
12:43:09: Exiting batch processing.
12:43:09: Setting CWD (Current Working Directory) to ā€˜/media/pbleic/UbuntuHD/Astrophotography/Test/SirilTest’
12:43:09: Script execution failed.

Yes, I see now. That is just because I opened it to take the photo. But each time this has failed, I have set it to the correct CWD. Here is the screenshot showing that AND the fail. I am set to the correct CWD. There is something wrong with the script.

OK. I see the issue.

Very strange because I absolutely cannot reproduce it.

Not with the script btw. Something strange with your version that try to put the ā€œbiasesā€ in front of the path…

Please @pbleic: could you tell me your glib version please.

Assuming you mean glibc; can check with version of ldd:
$ ldd --version
ldd (Ubuntu GLIBC 2.27-3ubuntu1.4) 2.27

PS - moved the Test directory to my home directory, in case the mounted HD was the issue. Same result.

Yes I was speaking about glib, not glibc. You must have a version prior to 2.58.

I think I found the bug. Please wait for the update of the PPA in some minutes.

BTW, I have glib (using a grep): 2.56.4-0ubuntu0.18.04.6

My guess was right. So in some minutes you will have an update.

Thanks for being so responsive. And thanks for making a great program.

2 Likes

And thank you for this awful bug catch ;).

1 Like

Packages in ā€œSirilā€ : Siril : lock042 : check the update status.

1 Like

Thanks much. It has been published for 38 minutes, but the PPA in my Synaptic Package Manager still shows 0.99.7+8. How long does it take to be upgradable/installable?

Or, do I need to do it manually?