Skip to content

Xml encoding in xml_tools.py #89

@alceballosa

Description

@alceballosa

Hi,

I was recently testing MAJA in a Docker image (in Windows, via WSL2) prepared as per the tutorial here (using the installer): #80

My miniconda Python environment consists of the following libraries: https://pastebin.com/LkY2XLDX

Most steps went smoothly, but during the xml_tools.py "can be opened?" validation, the lxml library could not open the XML files in the .SAFE folders so MAJA couldn't detect any assets, so I kept getting the "No input L1 product available" exception.

I fixed this by adding encoding='utf-8' to all instances of the open function in xml_tools.py; however, I am not sure if this would introduce bugs on non-WSL+Docker environments (maybe Windows is introducing some unwanted line endings?)

Should I make a pull request nonetheless?

Kind regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions