OpenJPEG installation

When receiving the below error in the Sen2Cor Execution Output:

RuntimeError: You must have at least version 1.5.0 of OpenJPEG installed before you can read JPEG2000 images with glymur. Your version is 0.0.0

  1. Open the Anaconda prompt

  2. Get the latest version of glymur using commands:
    2.1) pip uninstall glymur
    2.2) pip install glymur
    see OpenJPEG installation

  3. Install OpenJPEG using command:
    conda install -c conda-forge openjpeg=2.1.2
    See OpenJPEG installation

After this, I was receiving the below error:

AttributeError: ‘bool’ object has no attribute ‘text’

This was because an L2A folder existed from the previous failed attempts

  1. Delete any previous L2A folders
    see Sen2cor process : L2A_Config.py AttributeError: 'bool' object has no attribute 'Size'

I then received the below error:

TypeError: ‘float’ object cannot be interpreted as an index

  1. Open the Anaconda prompt
  2. Downgrade the numpy version using:
    pip install numpy==1.11.3
    see Sen2cor 2.3.1 processing error
1 Like