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
MSI Inland waters
- fsteinmetz
- Site Admin
- Posts: 306
- Joined: Fri Sep 07, 2018 1:34 pm
- company / institution: Hygeos
- Location: Lille, France
- Contact:
Re: MSI Inland waters
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
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