POLYMER 4.16.1 make error
Posted: Wed Jul 26, 2023 11:05 am
Dear sir,
When i try install POLYMER4.16.1 on linux centos7 with anaconda, the 'make' step is error, detail is below. thank you
Best
Binbin
polymer) [sc73004@ln32%bscc-a2 polymer-v4.16.1]$ make
python setup.py build_ext --inplace
Compiling polymer/clut.pyx because it changed.
Compiling polymer/neldermead.pyx because it changed.
Compiling polymer/polymer_main.pyx because it changed.
Compiling polymer/water.pyx because it changed.
[1/4] Cythonizing polymer/clut.pyx
/public3/home/sc73004/.conda/envs/polymer/lib/python3.11/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /public3/home/sc73004/software-sc73004/polymer-v4.16.1.tar/polymer-v4.16.1/polymer-v4.16.1/polymer/clut.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
Error compiling Cython file:
------------------------------------------------------------
...
cdef CLUT A = CLUT(np.array([[1, 2, 3], [4, 5, 6]]), axes=[[1, 2], [10, 11, 12]])
assert A.lookup(0, 1.5) == 0
assert A.lookup(1, 11.5) == 0
print A.interp()
^
------------------------------------------------------------
polymer/clut.pyx:293:10: Syntax error in simple statement list
Traceback (most recent call last):
File "/public3/home/sc73004/software-sc73004/polymer-v4.16.1.tar/polymer-v4.16.1/polymer-v4.16.1/setup.py", line 26, in <module>
EXTENSIONS = cythonize([SRC_DIR + '/*.pyx'],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/public3/home/sc73004/.conda/envs/polymer/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
cythonize_one(*args)
File "/public3/home/sc73004/.conda/envs/polymer/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: polymer/clut.pyx
make: *** [main] Error 1
When i try install POLYMER4.16.1 on linux centos7 with anaconda, the 'make' step is error, detail is below. thank you
Best
Binbin
polymer) [sc73004@ln32%bscc-a2 polymer-v4.16.1]$ make
python setup.py build_ext --inplace
Compiling polymer/clut.pyx because it changed.
Compiling polymer/neldermead.pyx because it changed.
Compiling polymer/polymer_main.pyx because it changed.
Compiling polymer/water.pyx because it changed.
[1/4] Cythonizing polymer/clut.pyx
/public3/home/sc73004/.conda/envs/polymer/lib/python3.11/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /public3/home/sc73004/software-sc73004/polymer-v4.16.1.tar/polymer-v4.16.1/polymer-v4.16.1/polymer/clut.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
Error compiling Cython file:
------------------------------------------------------------
...
cdef CLUT A = CLUT(np.array([[1, 2, 3], [4, 5, 6]]), axes=[[1, 2], [10, 11, 12]])
assert A.lookup(0, 1.5) == 0
assert A.lookup(1, 11.5) == 0
print A.interp()
^
------------------------------------------------------------
polymer/clut.pyx:293:10: Syntax error in simple statement list
Traceback (most recent call last):
File "/public3/home/sc73004/software-sc73004/polymer-v4.16.1.tar/polymer-v4.16.1/polymer-v4.16.1/setup.py", line 26, in <module>
EXTENSIONS = cythonize([SRC_DIR + '/*.pyx'],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/public3/home/sc73004/.conda/envs/polymer/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
cythonize_one(*args)
File "/public3/home/sc73004/.conda/envs/polymer/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: polymer/clut.pyx
make: *** [main] Error 1