Page 1 of 1

Problem when installing polymer github distribution

Posted: Tue Feb 06, 2024 3:24 pm
by elkilani
hello
at the compilation (make) step I got this error
python setup.py build_ext --inplace -j 4
Compiling polymer/clut.pyx because it depends on /home/schambergerlea/anaconda3/envs/polymer/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd.
Compiling polymer/neldermead.pyx because it depends on /home/schambergerlea/anaconda3/envs/polymer/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd.
Compiling polymer/polymer_main.pyx because it depends on /home/schambergerlea/anaconda3/envs/polymer/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd.
Compiling polymer/water.pyx because it depends on /home/schambergerlea/anaconda3/envs/polymer/lib/python3.12/site-packages/numpy/__init__.cython-30.pxd.
[1/4] Cythonizing polymer/clut.pyx
[2/4] Cythonizing polymer/neldermead.pyx
[3/4] Cythonizing polymer/polymer_main.pyx
[4/4] Cythonizing polymer/water.pyx
In file included from build/polymer/water.c:1222:0:
build/polymer/fresnel.c: In function ‘windex’:
build/polymer/fresnel.c:34:11: warning: ‘index’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return(index);

Re: Problem when installing polymer github distribution

Posted: Thu Feb 08, 2024 9:29 am
by fsteinmetz
Hello,
I don't see an error message here, maybe an error in copy-pasting ?

Re: Problem when installing polymer github distribution

Posted: Thu Feb 08, 2024 10:09 am
by elkilani
hello
it is a worming:
warning: ‘index’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return(index);
the errors is :
from polymer.main import run_atm_corr, Level1, Level2
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[1], line 1
----> 1 from polymer.main import run_atm_corr, Level1, Level2

ImportError: cannot import name 'Level1' from 'polymer.main' (/home/schambergerlea/Documents/polymer-master/polymer/main.py)