Problem when installing polymer github distribution

Post Reply
elkilani
Posts: 2
Joined: Mon Feb 05, 2024 12:39 pm
company / institution: university of toulon
Location: toulon

Problem when installing polymer github distribution

Post 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);
User avatar
fsteinmetz
Site Admin
Posts: 306
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: Problem when installing polymer github distribution

Post by fsteinmetz »

Hello,
I don't see an error message here, maybe an error in copy-pasting ?
elkilani
Posts: 2
Joined: Mon Feb 05, 2024 12:39 pm
company / institution: university of toulon
Location: toulon

Re: Problem when installing polymer github distribution

Post 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)
Post Reply