GeoscienceAustralia / tcrm

A statistical-parametric model for assessing wind hazard from tropical cyclones
http://geoscienceaustralia.github.io/tcrm
Other
80 stars 52 forks source link

Install failure - solved (don't use TCRM with Python 2.7) #102

Closed SeattleYCWind closed 3 years ago

SeattleYCWind commented 3 years ago

Hello users - I am unable to get the most recent version of TCRM 3.1.3 successfully deployed on a 64 bit Windows 10 machine running Python 2.7. I have MinGW installed, but get many errors when running the compile.cmd script in the root TCRM folder. I think I have all the paths set correctly, but am not very skilled in isolating the source of the problem.

I have installed all the required dependencies as asked for in the documentation.

Any assistance will be greatly appreciated.

Here's a dump from the command line window...

Compiling C code for TCRM

running build_ext building 'Utilities._akima' extension C:\MinGW\bin\gcc.exe -mdll -O -Wall -IC:\Python27\lib\site-packages\numpy\core\include\numpy -IC:\Python27\include -IC:\Python27\PC -c Utilities\akima.c -o build\temp.win-amd64-2.7\Release\utilities\akima.o In file included from C:\Python27\lib\site-packages\numpy\core\include\numpy/ndarraytypes.h:1822, from C:\Python27\lib\site-packages\numpy\core\include\numpy/ndarrayobject.h:12, from C:\Python27\lib\site-packages\numpy\core\include\numpy/arrayobject.h:4, from Utilities\akima.c:64: C:\Python27\lib\site-packages\numpy\core\include\numpy/npy_1_7_deprecated_api.h:14:9: note: #pragma message: C:\Python27\lib\site-packages\numpy\core\include\numpy/npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION 14 | #pragma message(_WARN_LOC__"Using deprecated NumPy API, disable it with " \ | ^~~ writing build\temp.win-amd64-2.7\Release\utilities_akima.def C:\MinGW\bin\gcc.exe -shared -s build\temp.win-amd64-2.7\Release\utilities\akima.o build\temp.win-amd64-2.7\Release\utilities_akima.def -LC:\Python27\libs -LC:\Python27\PCbuild\amd64 -LC:\Python27\PC\VS9.0\amd64 -lpython27 -lmsvcr90 -o build\lib.win-amd64-2.7\Utilities_akima.pyd c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xa): undefined reference to `impPy_NoneStruct' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x2d): undefined reference to _imp__PyType_IsSubtype' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x47): undefined reference to_impPyExc_TypeError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x52): undefined reference to `_impPyErr_Format' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xad): undefined reference to _imp__PyType_IsSubtype' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x12f): undefined reference to_impPyExc_ValueError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x13a): undefined reference to `_impPyErr_Format' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x5d4): undefined reference to _imp__PyArg_ParseTupleAndKeywords' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x606): undefined reference to_impPyExc_ValueError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x611): undefined reference to `_impPyErr_Format' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x659): undefined reference to _imp__PyExc_ValueError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x664): undefined reference to_impPyErr_Format' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x71d): undefined reference to `_impPyMem_Free' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x7df): undefined reference to _imp__PyExc_ValueError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x7ea): undefined reference to_impPyErr_Format' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x810): undefined reference to `_impPyExc_ValueError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x81b): undefined reference to _imp__PyErr_Format' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x92d): undefined reference to_impPyMem_Malloc' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x95d): undefined reference to `_impPyExc_ValueError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x968): undefined reference to _imp__PyErr_Format' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x980): undefined reference to_impPyExc_ValueError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x98b): undefined reference to `_impPyErr_Format' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x9b1): undefined reference to _imp__PyExc_ValueError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x9bc): undefined reference to_impPyErr_Format' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x9e2): undefined reference to `_impPyExc_ValueError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0x9ed): undefined reference to _imp__PyErr_Format' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xa03): undefined reference to_impPyExc_ValueError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xa0e): undefined reference to `_impPyErr_Format' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xc54): undefined reference to _imp__PyMem_Free' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xce8): undefined reference to_imp_Py_NoneStruct' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xd59): undefined reference to `_impPyMem_Malloc' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xd9c): undefined reference to _imp__Py_InitModule4' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xda7): undefined reference to_impPyMem_Free' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xdbc): undefined reference to `_impPyImport_ImportModule' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xdd7): undefined reference to _imp__PyObject_GetAttrString' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xdf8): undefined reference to_impPyCObject_Type' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xe0a): undefined reference to `_impPyCObject_AsVoidPtr' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xe78): undefined reference to _imp__PyString_FromString' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xe83): undefined reference to_impPyModule_GetDict' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xe98): undefined reference to `_impPyDict_SetItemString' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xebe): undefined reference to _imp__PyExc_AttributeError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xec9): undefined reference to_impPyErr_SetString' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xed8): undefined reference to `_impPyExc_RuntimeError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xee3): undefined reference to _imp__PyErr_SetString' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xf04): undefined reference to_impPyExc_RuntimeError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xf0f): undefined reference to `_impPyErr_SetString' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xf31): undefined reference to _imp__PyExc_RuntimeError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xf3c): undefined reference to_impPyErr_Format' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xf7b): undefined reference to `_impPyExc_RuntimeError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xf86): undefined reference to _imp__PyErr_Format' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xf95): undefined reference to_impPyExc_RuntimeError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xfa0): undefined reference to `_impPyErr_Format' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xfaf): undefined reference to _imp__PyExc_RuntimeError' c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: build\temp.win-amd64-2.7\Release\utilities\akima.o:akima.c:(.text+0xfba): undefined reference to_imp__PyErr_Format' collect2.exe: error: ld returned 1 exit status error: command 'C:\MinGW\bin\gcc.exe' failed with exit status 1

Thanks,

Sundar