CNES / MAJA

Level-2A processor used for atmospheric correction and cloud-detection. The active repository is the one below, this one is kept to leave access to the older issues.
https://gitlab.orfeo-toolbox.org/maja/maja
Apache License 2.0
137 stars 25 forks source link

Precompiled binaries 4.2.1 - download CAMS - Issue with SSL support #74

Open GuiYome opened 3 years ago

GuiYome commented 3 years ago

Hello,

Appologize if this is not the right place to post on precompiled binaries.

I successfully downloaded and install precompiled binaries on a CentOS 7 linux server.

I could launch almost all process describe in the README.md of this repo (very helpful, thanks!).

Yet I met some issues with the download of CAMS data.

Here is the command I ran: ./camsdownload -d 20201001 -f 20201001 -a /<my data directory>/CNES_MAJA/CAMS -w /<my data directory>/CNES_MAJA/CAMS/Archive -p s2

And here are the outputs:

Number of days = 1
==================================
Downloading files for date 2020-10-01 00:00:00
==================================
Python socket module was not compiled with SSL support. Aborting...

Making some search on the internet, I found that issue could be that the embeded Python is not built with ssl support (see https://www.programmersought.com/article/5708542317/).

I could work around this by taking the code related to CAMS download and put all that in a docker with a python release that worked fine.

Is that issue only happening for me?

Thanks.

petket-5 commented 3 years ago

I could not replicate the issue on my end using the embedded python exe. I will forward it to the developers to check if they can reproduce it.

Should you not want to pass by a dedicated docker img, you can just use a conda environment and call cams_download.py (located in /lib) directly using the new python exe.

Kind regards, Peter

jprankl commented 3 years ago

I had the same issue.

With the embedded python: "Python socket module was not compiled with SSL support. Aborting..."
Then I used python 3 shipped with Ubuntu and it works.

Bests! Johann