Level1 module import error

Post Reply
jz.ocrs
Posts: 5
Joined: Thu May 09, 2019 8:13 am
company / institution: Sun Yat-sen University
Location: China

Level1 module import error

Post by jz.ocrs »

Hi François,

Just installed Polymer V4.15. Installation seems okay. But got an error when importing Level1 module. The message said

File "./polymer_cli.py", line 11, in <module>
from polymer.main import run_atm_corr,Level1,Level2
ImportError: cannot import name 'Level1' from 'polymer.main'

Any solution? Thanks in advance.

Jun
jz.ocrs
Posts: 5
Joined: Thu May 09, 2019 8:13 am
company / institution: Sun Yat-sen University
Location: China

Re: Level1 module import error

Post by jz.ocrs »

Well, I read the main.py code in V4.15. The following two lines are missing:

from polymer.level1 import Level1
from polymer.level2 import Level2

Now, the error is gone.

Jun
Post Reply