vi3k6i5 / GuidedLDA

semi supervised guided topic model with custom guidedLDA
Mozilla Public License 2.0
497 stars 108 forks source link

Throws Error when try to install using a docker image #37

Open thakur-nandan opened 5 years ago

thakur-nandan commented 5 years ago

Building wheel for guidedlda (setup.py): started Building` wheel for guidedlda (setup.py): finished with status 'error' ERROR: Complete output from command /srv/conda/envs/notebook/bin/python -u -c 'import setuptools, tokenize;file='"'"'/tmp/pip-install-grkp4h/guidedlda/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ilikr2nt --python-tag cp37: Running setup.py clean for guidedlda ERROR: running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/guidedlda copying guidedlda/init.py -> build/lib.linux-x86_64-3.7/guidedlda copying guidedlda/utils.py -> build/lib.linux-x86_64-3.7/guidedlda copying guidedlda/datasets.py -> build/lib.linux-x86_64-3.7/guidedlda copying guidedlda/_setup_hooks.py -> build/lib.linux-x86_64-3.7/guidedlda copying guidedlda/guidedlda.py -> build/lib.linux-x86_64-3.7/guidedlda creating build/lib.linux-x86_64-3.7/guidedlda/tests copying guidedlda/tests/test_lda.py -> build/lib.linux-x86_64-3.7/guidedlda/tests copying guidedlda/tests/test_utils.py -> build/lib.linux-x86_64-3.7/guidedlda/tests copying guidedlda/tests/init.py -> build/lib.linux-x86_64-3.7/guidedlda/tests copying guidedlda/tests/test_guidedlda_nyt.py -> build/lib.linux-x86_64-3.7/guidedlda/tests copying guidedlda/tests/test_lda_reuters.py -> build/lib.linux-x86_64-3.7/guidedlda/tests copying guidedlda/tests/test_lda_sparse.py -> build/lib.linux-x86_64-3.7/guidedlda/tests copying guidedlda/tests/test_datasets.py -> build/lib.linux-x86_64-3.7/guidedlda/tests copying guidedlda/tests/test_lda_transform.py -> build/lib.linux-x86_64-3.7/guidedlda/tests running egg_info writing guidedlda.egg-info/PKG-INFO writing dependency_links to guidedlda.egg-info/dependency_links.txt writing requirements to guidedlda.egg-info/requires.txt writing top-level names to guidedlda.egg-info/top_level.txt [pbr] Reusing existing SOURCES.txt copying guidedlda/_guidedlda.c -> build/lib.linux-x86_64-3.7/guidedlda copying guidedlda/_guidedlda.pyx -> build/lib.linux-x86_64-3.7/guidedlda copying guidedlda/gamma.c -> build/lib.linux-x86_64-3.7/guidedlda copying guidedlda/gamma.h -> build/lib.linux-x86_64-3.7/guidedlda copying guidedlda/tests/nyt.ldac -> build/lib.linux-x86_64-3.7/guidedlda/tests copying guidedlda/tests/nyt.titles -> build/lib.linux-x86_64-3.7/guidedlda/tests copying guidedlda/tests/nyt.tokens -> build/lib.linux-x86_64-3.7/guidedlda/tests copying guidedlda/tests/reuters.ldac -> build/lib.linux-x86_64-3.7/guidedlda/tests copying guidedlda/tests/reuters.titles -> build/lib.linux-x86_64-3.7/guidedlda/tests copying guidedlda/tests/reuters.tokens -> build/lib.linux-x86_64-3.7/guidedlda/tests running build_ext building 'guidedlda._guidedlda' extension creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/guidedlda gcc -pthread -B /srv/conda/envs/notebook/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/srv/conda/envs/notebook/include/python3.7m-c guidedlda/_guidedlda.c -o build/temp.linux-x86_64-3.7/guidedlda/_guidedlda.o guidedlda/_guidedlda.c: In function ‘PyxExceptionSave’: guidedlda/_guidedlda.c:18745:21: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? type = tstate->exc_type; ^~~~ curexc_type guidedlda/_guidedlda.c:18746:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? value = tstate->exc_value; ^~~~~ curexc_value guidedlda/_guidedlda.c:18747:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tb = tstate->exc_traceback; ^~~~~ curexc_traceback guidedlda/_guidedlda.c: In function ‘PyxExceptionReset’: guidedlda/_guidedlda.c:18754:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~ curexc_type guidedlda/_guidedlda.c:18755:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~ curexc_value guidedlda/_guidedlda.c:18756:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~ curexc_traceback guidedlda/_guidedlda.c:18757:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = type; ^~~~ curexc_type guidedlda/_guidedlda.c:18758:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = value; ^~~~~ curexc_value guidedlda/_guidedlda.c:18759:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = tb; ^~~~~ curexc_traceback guidedlda/_guidedlda.c: In function ‘PyxGetException’: guidedlda/_guidedlda.c:18814:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~ curexc_type guidedlda/_guidedlda.c:18815:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~ curexc_value guidedlda/_guidedlda.c:18816:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~ curexc_traceback guidedlda/_guidedlda.c:18817:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = local_type; ^~~~ curexc_type guidedlda/_guidedlda.c:18818:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = local_value; ^~~~~ curexc_value guidedlda/_guidedlda.c:18819:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = local_tb; ^~~~~ curexc_traceback guidedlda/_guidedlda.c: In function ‘PyxExceptionSwap’: guidedlda/_guidedlda.c:18841:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tmp_type = tstate->exc_type; ^~~~ curexc_type guidedlda/_guidedlda.c:18842:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tmp_value = tstate->exc_value; ^~~~~ curexc_value guidedlda/_guidedlda.c:18843:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tmp_tb = tstate->exc_traceback; ^~~~~ curexc_traceback guidedlda/_guidedlda.c:18844:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’? tstate->exc_type = type; ^~~~ curexc_type guidedlda/_guidedlda.c:18845:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’? tstate->exc_value = value; ^~~~~ curexc_value guidedlda/_guidedlda.c:18846:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’? tstate->exc_traceback = tb; ^~~~~ curexc_traceback error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for guidedlda

JAEarly commented 5 years ago

I'm having this same issue with Python 3.7 on a Ubuntu

jonathankingfc commented 4 years ago

I am having the same issue as well.

ClemensHa commented 3 years ago

I have the same problem. Is there already a solution available?