MSI Inland waters

Post Reply
ruochen11
Posts: 8
Joined: Sun May 23, 2021 1:59 am
company / institution: Hong Kong Polytechnic University
Location: Hong Kang

MSI Inland waters

Post by ruochen11 »

Hi:
When I input "make" on the terminal to compile, it says "python setup.py build_ext --inplace ; Running build_ext ".Then, when I use it in Python to process MSI data, Python pops up an error, as follows:
Traceback (most recent call last):
File "/home/liyong/PycharmProjects/ly/polymer.py", line 1, in <module>
from polymer.main import run_atm_corr, Level1, Level2
File "/home/liyong/PycharmProjects/ly/polymer.py", line 1, in <module>
from polymer.main import run_atm_corr, Level1, Level2
ModuleNotFoundError: No module named 'polymer.main'; 'polymer' is not a package
Can you guide me how to solve this problem? Thanks.
Jared
User avatar
fsteinmetz
Site Admin
Posts: 306
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: MSI Inland waters

Post by fsteinmetz »

Hello,

I think this is because you have called your script file "polymer.py", which causes a conflict with the module "polymer". Can you try to rename your script to something else ?
Cheers,
François
Post Reply