creare-com / pydem

Python library for Global Hydrology Analysis. Used to calculate upstream contributing area, aspect, slope, and topographic wetness index.
Apache License 2.0
114 stars 35 forks source link

cl.exe failed with exit status 2 #20

Closed mwsmws22 closed 3 years ago

mwsmws22 commented 4 years ago

I am attempting to install pyDEM via pip.

I have Python 2.7.9. I have also installed the necessary numpy, scipy, and GDAL packages.

When I try to install it, I get the following error. Anyone have know how to make this work?



traits/ctraits.c(956) : warning C4244: '=' : conversion from 'Py_ssize_t' to 'int', possible loss of data

traits/ctraits.c(2221) : warning C4244: '=' : conversion from 'Py_ssize_t' to 'int', possible loss of data

traits/ctraits.c(2254) : warning C4244: '=' : conversion from 'Py_ssize_t' to 'int', possible loss of data

traits/ctraits.c(3167) : warning C4244: 'initializing' : conversion from 'Py_ssize_t' to 'int', possible loss of data

traits/ctraits.c(3189) : warning C4244: 'initializing' : conversion from 'Py_ssize_t' to 'int', possible loss of data

traits/ctraits.c(3513) : warning C4244: '=' : conversion from 'Py_ssize_t' to 'int', possible loss of data

traits/ctraits.c(3597) : warning C4244: '=' : conversion from 'Py_ssize_t' to 'int', possible loss of data

traits/ctraits.c(3808) : warning C4244: 'initializing' : conversion from 'Py_ssize_t' to 'int', possible loss of data

traits/ctraits.c(3814) : warning C4244: '=' : conversion from 'Py_ssize_t' to 'int', possible loss of data

traits/ctraits.c(3824) : warning C4244: '=' : conversion from 'Py_ssize_t' to 'int', possible loss of data

traits/ctraits.c(3927) : warning C4244: '=' : conversion from 'Py_ssize_t' to 'int', possible loss of data

traits/ctraits.c(4131) : warning C4244: '=' : conversion from 'Py_ssize_t' to 'int', possible loss of data

traits/ctraits.c(5477) : error C2079: 'ctraitsmodule' uses undefined struct 'PyModuleDef'

traits/ctraits.c(5478) : error C2065: 'PyModuleDef_HEAD_INIT' : undeclared identifier

traits/ctraits.c(5478) : error C2099: initializer is not a constant

traits/ctraits.c(5478) : warning C4047: 'initializing' : 'int' differs in levels of indirection from 'char [8]'

traits/ctraits.c(5478) : error C2078: too many initializers

traits/ctraits.c(5488) : warning C4013: 'PyModule_Create' undefined; assuming extern returning int

traits/ctraits.c(5488) : warning C4047: '=' : 'PyObject *' differs in levels of indirection from 'int'

traits/ctraits.c(5490) : warning C4098: 'PyInit_ctraits' : 'void' function returning a value

traits/ctraits.c(5497) : warning C4098: 'PyInit_ctraits' : 'void' function returning a value

traits/ctraits.c(5503) : warning C4098: 'PyInit_ctraits' : 'void' function returning a value

traits/ctraits.c(5511) : warning C4098: 'PyInit_ctraits' : 'void' function returning a value

traits/ctraits.c(5516) : warning C4098: 'PyInit_ctraits' : 'void' function returning a value

traits/ctraits.c(5537) : warning C4098: 'PyInit_ctraits' : 'void' function returning a value

traits/ctraits.c(5542) : warning C4098: 'PyInit_ctraits' : 'void' function returning a value

traits/ctraits.c(5547) : warning C4098: 'PyInit_ctraits' : 'void' function returning a value

traits/ctraits.c(5554) : warning C4098: 'PyInit_ctraits' : 'void' function returning a value

traits/ctraits.c(5559) : warning C4098: 'PyInit_ctraits' : 'void' function returning a value

traits/ctraits.c(5564) : warning C4098: 'PyInit_ctraits' : 'void' function returning a value

traits/ctraits.c(5568) : warning C4098: 'PyInit_ctraits' : 'void' function returning a value

error: command 'C:\\Users\\User\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2
mpu-creare commented 4 years ago

It looks like it's having trouble installing traits . It also looks like you're trying to install via windows. I would recommend installing traits via conda before trying to install PyDEM.

mpu-creare commented 3 years ago

Closing because this is stale.