Issue with starting MAJA on Ubuntu 24.04

Hello, I recently downloaded MAJA to to detect clouds on tiles coming from Copernicus. After sucessfully installing MAJA, starting it led to multiple issues I mostly solved. The last one I’m meeting is a status error 1. I added the error log to my post. The -v (verbose log) option didn’t bring anything.

After some digging, the cause seems to be missing CAMS or DTM files, but being completely new to MAJA, I am not 100% confident on this.

Thanks in advance for any help given!

ErrorLog.txt (1.5 KB)

Hello,

Can you provide us the full log and not just the error message ? We can’t really know what missing here.

I understand that you use startmaja, DTM will be download automatically, CAMS data are not mandatory.

Alexandre

Here is the full log from before I obtain the error message.

Full_Log.txt (1.9 KB)

All seems good for me, can you launch with --verbose and include all the log with the error ?

Here is what I find with the –verbose option.

Verbose_Log.txt (4.5 KB)

Can you give me the launch command ? Try to launch without the -s SITE option.

My first launch command was

/home/username/Bureau/Maja_1.12/build-pkg/install_maja_4.12/bin/startmaja -f folders.txt -t 31UCP -s Lieutest -d 2025-10-13 -e 2025-10-24

I tried following your suggestion, and use the launch command
/home/username/Bureau/Maja_1.12/build-pkg/install_maja_4.12/bin/startmaja -f folders.txt -t 31UCP -d 2025-10-13 -e 2025-10-24

but it still returned the same error log.

The error is link to missing python package lxml, It should be package in the maja python env.

Can you tell me what you put in the folders.txt for exeMaja ? It should be /PATH_MAJA/4.12.0/bin/maja

That is strange. I remember having installed lxml. I tried installing it again, and starting MAJA still gave me a status error 1.

What I put in folder, wasn’t /PATH_MAJA/4.12.0/bin/maja, but a path to my tiles folder. I also put a copy of the MAJA executable where the path points to. So, there shouldn’t be any path issue.

can you give me your folders.txt ? you need to put in exeMaja the maja in 4.12.0/bin/maja.

MAJA use it’s own python package

Here is my folders.txt file.

folders.txt (493 Bytes)

exeMaja=/home/username/Documents/Test_Tuiles/maja

You need to put maja binarie here : /PATH_MAJA/4.12.0/bin/maja

I just tried your fix, and now MAJA doesn’t find numpy. Even using a pip install and retrying to start MAJA doesn’t fix this. Even if MAJA uses it’s own packages, I would be really surprised numpy isn’t among them.

can you give me the new launch command, the new folders txt and the full log that you use ?

NUMPY is included in the python env

You will find my launch command and the log in the joined txt file. The content of my folders.txt file is below.

[Maja_Inputs]
repWork=/home/username/Documents/Test_Tuiles/repWork
repGipp=/home/username/Documents/Test_Tuiles/repGipp
repMNT=/home/username/Documents/Test_Tuiles/repMNT
repL1 =/home/username/Documents/Test_Tuiles/repL1
repL2 =/home/username/Documents/Test_Tuiles/repL2
exeMaja=/home/username/Bureau/Maja_1.12/build-pkg/install_maja_4.12/bin/maja
repCAMS=/home/username/Documents/Test_Tuiles/repCAMS

[DTM_Creation]
repRAW =$MAJA_TEST_OUTPUT_ROOT/TV_START_MAJA/rawdem
repGSW =$MAJA_TEST_OUTPUT_ROOT/TV_START_MAJA/gsw

Launch_and_Log.txt (8.6 KB)

You use conda base environment ? Can you deactivate it and launch startmaja with no env in your terminal ?

I think your base conda env with numpy > 2 interfere with maja python env that use numpy 1.2X

I am indeed using Conda. I installed it in the first place to solve dependency issues caused by MAJA.

I still decided to follow your advice, and deactivated Conda. Here is the new error log I am finding.

New_Log.txt (6.3 KB)

we make progress, if you have ubuntu you have to install libgdal-dev (osgeo cant found the binding for gdal python)

Using pip install does not seem to work for libgdal, libgdal-dev, or osgeo.

you need to do apt install libgdal-dev if you are on ubuntu, it’s a linux package