Page 1 of 1

MSI Inland waters

Posted: Fri Aug 27, 2021 7:51 am
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

Re: MSI Inland waters

Posted: Mon Sep 13, 2021 8:45 am
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