chaos-monkey-engine icon indicating copy to clipboard operation
chaos-monkey-engine copied to clipboard

Uploaded to PyPi module has errors

Open alexkas1977 opened this issue 6 years ago • 3 comments

Module has lack of VERSION and CHANGELOG.rst When trying to install it got pip error After adding them into archive wa able to install it with pip

alexkas1977 avatar Apr 06 '18 08:04 alexkas1977

Can you please post the pip install error. It installed fine here using pip from python3. This could be a python2 issue. We do not plan to support python2, but we'll accept PRs to add the support for it if it does not break the python3 build.

gdiazlo avatar Apr 25 '18 07:04 gdiazlo

I tried pip install for chaosmonkey and it errored out, any recommendations @gdiazlo ?

copying src/gevent/libev/corecext.ppyx -> build/lib.macosx-10.12-x86_64-3.7/gevent/libev copying src/gevent/libev/corecext.pyx -> build/lib.macosx-10.12-x86_64-3.7/gevent/libev copying src/gevent/libev/gevent.corecext.c -> build/lib.macosx-10.12-x86_64-3.7/gevent/libev copying src/gevent/libev/libev.h -> build/lib.macosx-10.12-x86_64-3.7/gevent/libev copying src/gevent/libev/libev.pxd -> build/lib.macosx-10.12-x86_64-3.7/gevent/libev copying src/gevent/libev/libev_vfd.h -> build/lib.macosx-10.12-x86_64-3.7/gevent/libev copying src/gevent/libev/stathelper.c -> build/lib.macosx-10.12-x86_64-3.7/gevent/libev running build_ext generating cffi module 'build/temp.macosx-10.12-x86_64-3.7/gevent.libev.corecffi.c' creating build/temp.macosx-10.12-x86_64-3.7 Running '(cd "/private/var/folders/69/xx255_1d2d5g9fkzcr01ybm400bbz8/T/pip-install-5ell4zy6/gevent/deps/libev" && sh ./configure && cp config.h "$OLDPWD" ) > configure-output.txt' in /private/var/folders/69/xx255_1d2d5g9fkzcr01ybm400bbz8/T/pip-install-5ell4zy6/gevent/build/temp.macosx-10.12-x86_64-3.7/libev building 'gevent.libev.corecext' extension creating build/temp.macosx-10.12-x86_64-3.7/src creating build/temp.macosx-10.12-x86_64-3.7/src/gevent creating build/temp.macosx-10.12-x86_64-3.7/src/gevent/libev clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -U__llvm_ -DLIBEV_EMBED=1 -DEV_COMMON= -DEV_CLEANUP_ENABLE=0 -DEV_EMBED_ENABLE=0 -DEV_PERIODIC_ENABLE=0 -Ibuild/temp.macosx-10.12-x86_64-3.7/libev -I/private/var/folders/69/xx255_1d2d5g9fkzcr01ybm400bbz8/T/pip-install-5ell4zy6/gevent/deps/libev -I/usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c src/gevent/libev/gevent.corecext.c -o build/temp.macosx-10.12-x86_64-3.7/src/gevent/libev/gevent.corecext.o In file included from src/gevent/libev/gevent.corecext.c:434: In file included from src/gevent/libev/libev.h:2: /private/var/folders/69/xx255_1d2d5g9fkzcr01ybm400bbz8/T/pip-install-5ell4zy6/gevent/deps/libev/ev.c:483:48: warning: '/' within block comment [-Wcomment] /#define MIN_INTERVAL 0.00000095367431640625 /* 1/2**20, good till 2200 / ^ /private/var/folders/69/xx255_1d2d5g9fkzcr01ybm400bbz8/T/pip-install-5ell4zy6/gevent/deps/libev/ev.c:1269:13: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare] if (e < (14 - 24)) / might not be sharp, but is good enough */ ~ ^ ~~~~~~~ /private/var/folders/69/xx255_1d2d5g9fkzcr01ybm400bbz8/T/pip-install-5ell4zy6/gevent/deps/libev/ev.c:1831:31: warning: 'extern' variable has an initializer [-Wextern-initializer] EV_API_DECL struct ev_loop ev_default_loop_ptr = 0; / needs to be initialised to make it a definition despite extern / ^ /private/var/folders/69/xx255_1d2d5g9fkzcr01ybm400bbz8/T/pip-install-5ell4zy6/gevent/deps/libev/ev.c:1940:19: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] if (elem * ncur > MALLOC_ROUND - sizeof (void ) * 4) ~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /private/var/folders/69/xx255_1d2d5g9fkzcr01ybm400bbz8/T/pip-install-5ell4zy6/gevent/deps/libev/ev.c:3878:34: warning: '&' within '|' [-Wbitwise-op-parentheses] fd_change (EV_A_ fd, w->events & EV__IOFDSET | EV_ANFD_REIFY); ~~~~~~~~~~^~~~~~~~~~~~~ ~ /private/var/folders/69/xx255_1d2d5g9fkzcr01ybm400bbz8/T/pip-install-5ell4zy6/gevent/deps/libev/ev.c:3878:34: note: place parentheses around the '&' expression to silence this warning fd_change (EV_A_ fd, w->events & EV__IOFDSET | EV_ANFD_REIFY); ^ ( ) src/gevent/libev/gevent.corecext.c:3304:104: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare] __pyx_t_1 = __pyx_f_6gevent_5libev_8corecext__flags_to_int(__pyx_v_flags, 0); if (unlikely(__pyx_t_1 == -1 && PyErr_Occurred())) __PYX_ERR(0, 168, __pyx_L1_error) ~~~~~~~~~ ^ ~~ src/gevent/libev/gevent.corecext.c:614:43: note: expanded from macro 'unlikely' #define unlikely(x) __builtin_expect(!!(x), 0) ^ src/gevent/libev/gevent.corecext.c:4082:106: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare] __pyx_t_2 = __pyx_f_6gevent_5libev_8corecext__flags_to_int(__pyx_v_flags, 0); if (unlikely(__pyx_t_2 == -1 && PyErr_Occurred())) __PYX_ERR(0, 267, __pyx_L1_error) ~~~~~~~~~ ^ ~~ src/gevent/libev/gevent.corecext.c:614:43: note: expanded from macro 'unlikely' #define unlikely(x) __builtin_expect(!!(x), 0) ^ src/gevent/libev/gevent.corecext.c:29970:65: error: too many arguments to function call, expected 3, have 4 return (((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ /Library/Developer/CommandLineTools/usr/lib/clang/9.0.0/include/stddef.h:105:16: note: expanded from macro 'NULL' # define NULL ((void)0) ^~~~~~~~~~ src/gevent/libev/gevent.corecext.c:30182:21: error: no member named 'exc_type' in 'struct _ts' *type = tstate->exc_type; ~~~~~~ ^ src/gevent/libev/gevent.corecext.c:30183:22: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'? *value = tstate->exc_value; ^~~~~~~~~ curexc_value /usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here PyObject *curexc_value; ^ src/gevent/libev/gevent.corecext.c:30184:19: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'? *tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback /usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here PyObject *curexc_traceback; ^ src/gevent/libev/gevent.corecext.c:30191:24: error: no member named 'exc_type' in 'struct _ts' tmp_type = tstate->exc_type; ~~~~~~ ^ src/gevent/libev/gevent.corecext.c:30192:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'? tmp_value = tstate->exc_value; ^~~~~~~~~ curexc_value /usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here PyObject *curexc_value; ^ src/gevent/libev/gevent.corecext.c:30193:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'? tmp_tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback /usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here PyObject *curexc_traceback; ^ src/gevent/libev/gevent.corecext.c:30194:13: error: no member named 'exc_type' in 'struct _ts' tstate->exc_type = type; ~~~~~~ ^ src/gevent/libev/gevent.corecext.c:30195:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'? tstate->exc_value = value; ^~~~~~~~~ curexc_value /usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here PyObject *curexc_value; ^ src/gevent/libev/gevent.corecext.c:30196:13: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'? tstate->exc_traceback = tb; ^~~~~~~~~~~~~ curexc_traceback /usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here PyObject *curexc_traceback; ^ src/gevent/libev/gevent.corecext.c:30251:24: error: no member named 'exc_type' in 'struct _ts' tmp_type = tstate->exc_type; ~~~~~~ ^ src/gevent/libev/gevent.corecext.c:30252:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'? tmp_value = tstate->exc_value; ^~~~~~~~~ curexc_value /usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here PyObject *curexc_value; ^ src/gevent/libev/gevent.corecext.c:30253:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'? tmp_tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback /usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here PyObject *curexc_traceback; ^ src/gevent/libev/gevent.corecext.c:30254:13: error: no member named 'exc_type' in 'struct _ts' tstate->exc_type = local_type; ~~~~~~ ^ src/gevent/libev/gevent.corecext.c:30255:13: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'? tstate->exc_value = local_value; ^~~~~~~~~ curexc_value /usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here PyObject *curexc_value; ^ src/gevent/libev/gevent.corecext.c:30256:13: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'? tstate->exc_traceback = local_tb; ^~~~~~~~~~~~~ curexc_traceback /usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here PyObject *curexc_traceback; ^ src/gevent/libev/gevent.corecext.c:30805:24: error: no member named 'exc_type' in 'struct _ts' tmp_type = tstate->exc_type; ~~~~~~ ^ src/gevent/libev/gevent.corecext.c:30806:25: error: no member named 'exc_value' in 'struct _ts'; did you mean 'curexc_value'? tmp_value = tstate->exc_value; ^~~~~~~~~ curexc_value /usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here PyObject *curexc_value; ^ src/gevent/libev/gevent.corecext.c:30807:22: error: no member named 'exc_traceback' in 'struct _ts'; did you mean 'curexc_traceback'? tmp_tb = tstate->exc_traceback; ^~~~~~~~~~~~~ curexc_traceback /usr/local/Cellar/python/3.7.2_2/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here PyObject *curexc_traceback; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 7 warnings and 20 errors generated. error: command 'clang' failed with exit status 1

----------------------------------------

Command "/Users/rpanjwani/Desktop/bin/python3.7 -u -c "import setuptools, tokenize;file='/private/var/folders/69/xx255_1d2d5g9fkzcr01ybm400bbz8/T/pip-install-5ell4zy6/gevent/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /private/var/folders/69/xx255_1d2d5g9fkzcr01ybm400bbz8/T/pip-record-_mueus9y/install-record.txt --single-version-externally-managed --compile --install-headers /Users/rpanjwani/Desktop/bin/../include/site/python3.7/gevent" failed with error code 1 in /private/var/folders/69/xx255_1d2d5g9fkzcr01ybm400bbz8/T/pip-install-5ell4zy6/gevent/ (Desktop) rpanjwani-a02:~ rpanjwani$

ritpanjw avatar Feb 15 '19 20:02 ritpanjw

pip repository does not have the latest github code. It has the old paramiko based code. Seems it is failing to build that in your environment. I'll try to dig more into this in the coming weeks, meanwhile, you can try the docker image.

gdiazlo avatar Feb 20 '19 11:02 gdiazlo