Open ylimenibor opened 4 years ago
It might have issues with os compatibility because it successfully got installed on Ubuntu for python 3.6
Not able to install with python 3.7 on Mac:
pip3 install guidedlda
Collecting guidedlda
Using cached https://files.pythonhosted.org/packages/f8/ee/6d6e2b3525388399e12a4482554c7529a5fcf5e99c50a60abaa02894b8bf/guidedlda-2.0.0.dev22.tar.gz
Collecting numpy
Using cached https://files.pythonhosted.org/packages/f0/14/f71a89e03578084111e352f464d9f3b7f701ebbecbd1a60e89c96983ef77/numpy-1.18.0-cp37-cp37m-macosx_10_9_x86_64.whl
Building wheels for collected packages: guidedlda
Building wheel for guidedlda (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cp/fccr2v8s30d6bqq4w3h7_g0h0000gn/T/pip-install-18qprphn/guidedlda/setup.py'"'"'; __file__='"'"'/private/var/folders/cp/fccr2v8s30d6bqq4w3h7_g0h0000gn/T/pip-install-18qprphn/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 /private/var/folders/cp/fccr2v8s30d6bqq4w3h7_g0h0000gn/T/pip-wheel-zmrii4vx --python-tag cp37
cwd: /private/var/folders/cp/fccr2v8s30d6bqq4w3h7_g0h0000gn/T/pip-install-18qprphn/guidedlda/
Complete output (152 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.7
creating build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/_setup_hooks.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/datasets.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/guidedlda.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/utils.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
creating build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/test_utils.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/test_datasets.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/test_lda.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/test_lda_reuters.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/test_guidedlda_nyt.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/test_lda_transform.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/test_lda_sparse.py -> build/lib.macosx-10.14-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.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/_guidedlda.pyx -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/gamma.c -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/gamma.h -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/tests/nyt.ldac -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/nyt.titles -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/nyt.tokens -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/reuters.ldac -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/reuters.titles -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/reuters.tokens -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
running build_ext
building 'guidedlda._guidedlda' extension
creating build/temp.macosx-10.14-x86_64-3.7
creating build/temp.macosx-10.14-x86_64-3.7/guidedlda
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c guidedlda/_guidedlda.c -o build/temp.macosx-10.14-x86_64-3.7/guidedlda/_guidedlda.o
guidedlda/_guidedlda.c:1944:13: warning: code will never be executed [-Wunreachable-code]
__pyx_r = 0;
^
guidedlda/_guidedlda.c:18745:21: error: no member named 'exc_type' in 'struct _ts'
*type = tstate->exc_type;
~~~~~~ ^
guidedlda/_guidedlda.c:18746: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
guidedlda/_guidedlda.c:18747: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
guidedlda/_guidedlda.c:18754:24: error: no member named 'exc_type' in 'struct _ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
guidedlda/_guidedlda.c:18755: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
guidedlda/_guidedlda.c:18756: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
guidedlda/_guidedlda.c:18757:13: error: no member named 'exc_type' in 'struct _ts'
tstate->exc_type = type;
~~~~~~ ^
guidedlda/_guidedlda.c:18758: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
guidedlda/_guidedlda.c:18759: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
guidedlda/_guidedlda.c:18814:24: error: no member named 'exc_type' in 'struct _ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
guidedlda/_guidedlda.c:18815: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
guidedlda/_guidedlda.c:18816: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
guidedlda/_guidedlda.c:18817:13: error: no member named 'exc_type' in 'struct _ts'
tstate->exc_type = local_type;
~~~~~~ ^
guidedlda/_guidedlda.c:18818: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
guidedlda/_guidedlda.c:18819: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
guidedlda/_guidedlda.c:18841:24: error: no member named 'exc_type' in 'struct _ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
guidedlda/_guidedlda.c:18842: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
guidedlda/_guidedlda.c:18843: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
guidedlda/_guidedlda.c:18844:13: error: no member named 'exc_type' in 'struct _ts'
tstate->exc_type = *type;
~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for guidedlda
Running setup.py clean for guidedlda
Failed to build guidedlda
Installing collected packages: numpy, guidedlda
Running setup.py install for guidedlda ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/python/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cp/fccr2v8s30d6bqq4w3h7_g0h0000gn/T/pip-install-18qprphn/guidedlda/setup.py'"'"'; __file__='"'"'/private/var/folders/cp/fccr2v8s30d6bqq4w3h7_g0h0000gn/T/pip-install-18qprphn/guidedlda/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/cp/fccr2v8s30d6bqq4w3h7_g0h0000gn/T/pip-record-e9db8tiy/install-record.txt --single-version-externally-managed --compile
cwd: /private/var/folders/cp/fccr2v8s30d6bqq4w3h7_g0h0000gn/T/pip-install-18qprphn/guidedlda/
Complete output (154 lines):
running install
[pbr] Generating AUTHORS
[pbr] AUTHORS complete (0.0s)
running build
running build_py
creating build
creating build/lib.macosx-10.14-x86_64-3.7
creating build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/_setup_hooks.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/datasets.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/guidedlda.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/utils.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
creating build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/test_utils.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/test_datasets.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/test_lda.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/__init__.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/test_lda_reuters.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/test_guidedlda_nyt.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/test_lda_transform.py -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/test_lda_sparse.py -> build/lib.macosx-10.14-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.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/_guidedlda.pyx -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/gamma.c -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/gamma.h -> build/lib.macosx-10.14-x86_64-3.7/guidedlda
copying guidedlda/tests/nyt.ldac -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/nyt.titles -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/nyt.tokens -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/reuters.ldac -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/reuters.titles -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
copying guidedlda/tests/reuters.tokens -> build/lib.macosx-10.14-x86_64-3.7/guidedlda/tests
running build_ext
building 'guidedlda._guidedlda' extension
creating build/temp.macosx-10.14-x86_64-3.7
creating build/temp.macosx-10.14-x86_64-3.7/guidedlda
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c guidedlda/_guidedlda.c -o build/temp.macosx-10.14-x86_64-3.7/guidedlda/_guidedlda.o
guidedlda/_guidedlda.c:1944:13: warning: code will never be executed [-Wunreachable-code]
__pyx_r = 0;
^
guidedlda/_guidedlda.c:18745:21: error: no member named 'exc_type' in 'struct _ts'
*type = tstate->exc_type;
~~~~~~ ^
guidedlda/_guidedlda.c:18746: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
guidedlda/_guidedlda.c:18747: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
guidedlda/_guidedlda.c:18754:24: error: no member named 'exc_type' in 'struct _ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
guidedlda/_guidedlda.c:18755: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
guidedlda/_guidedlda.c:18756: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
guidedlda/_guidedlda.c:18757:13: error: no member named 'exc_type' in 'struct _ts'
tstate->exc_type = type;
~~~~~~ ^
guidedlda/_guidedlda.c:18758: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
guidedlda/_guidedlda.c:18759: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
guidedlda/_guidedlda.c:18814:24: error: no member named 'exc_type' in 'struct _ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
guidedlda/_guidedlda.c:18815: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
guidedlda/_guidedlda.c:18816: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
guidedlda/_guidedlda.c:18817:13: error: no member named 'exc_type' in 'struct _ts'
tstate->exc_type = local_type;
~~~~~~ ^
guidedlda/_guidedlda.c:18818: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
guidedlda/_guidedlda.c:18819: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
guidedlda/_guidedlda.c:18841:24: error: no member named 'exc_type' in 'struct _ts'
tmp_type = tstate->exc_type;
~~~~~~ ^
guidedlda/_guidedlda.c:18842: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:240:15: note: 'curexc_value' declared here
PyObject *curexc_value;
^
guidedlda/_guidedlda.c:18843: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.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m/pystate.h:241:15: note: 'curexc_traceback' declared here
PyObject *curexc_traceback;
^
guidedlda/_guidedlda.c:18844:13: error: no member named 'exc_type' in 'struct _ts'
tstate->exc_type = *type;
~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/python/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/cp/fccr2v8s30d6bqq4w3h7_g0h0000gn/T/pip-install-18qprphn/guidedlda/setup.py'"'"'; __file__='"'"'/private/var/folders/cp/fccr2v8s30d6bqq4w3h7_g0h0000gn/T/pip-install-18qprphn/guidedlda/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/cp/fccr2v8s30d6bqq4w3h7_g0h0000gn/T/pip-record-e9db8tiy/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.
have you with python 3.6?
I attempted to do this with Python 3.6 and Ubuntu and I ran into the same error as @rbaral . I cant post the error due to sensitive info but it failed at building the extension with the same "did you mean" items for the values.
@gaganmanku96 I am using Python 3.7, which I assume satisfies the mentioned requirements in https://guidedlda.readthedocs.io/en/latest/#requirements. The problem is neither I can install with pip nor with the build script provided in git repo.
@rbaral @gaganmanku96 I decided to try something. The package that this is built of off is LDA and it installed with no issue. I managed to copy from the GuidedLDA package: the guidedlda.py, utils.py, datasets.py and the few NYT data set items into the original LDA package, post installation. After renaming a few items so that the guided portion only pulls from the guided items, the test sets on the home page here work exactly as expected. I did some other tests that were also successful so maybe a solution is to write them so they inherit from the original LDA package.
Is there a less manual solution? I'm encountering the same error that OP posted and have checked that required Visual Studio components are installed.
@dex314 how did you manage to do so ?
@edyvedy Hopefully this doesnt cause an issue with anyone (especially the original authors), but here is a zip with instructions on how to put all this where it needs to go - https://github.com/dex314/GuidedLDA_WorkAround
@dex314 The solution works great. Thank you very much!!
thanks @dex314 Your solution saved my days ^^
@dex314 you da man!
@dex314 What changes did you make?? Just curious. I also want to say thank you for saving me so much time.
@ajyl No problem! One of the interesting things about Python is you can kind of drop code in place after a package install and since it doesnt really interfere with other internals (like an exe), your environment can "see" the changes. There are only a few mathematical changes between this and the original LDA and I took a chance that all we would need to do is add these changes as a separate "class" and it should pick up all the other attributes with no issue. Obviously, I got lucky and this is just a work around and it could totally fall apart with a bigger update to the LDA package. I should have kept better notes about the original LDA version incase something like that happens. Glad its working out for everyone who stumbles on this though!
Hi,
first off, thank you so much for GuidedLDA. I believe it is great and would really love to use it for my master thesis. However, I am having trouble installing it. I tried both
pip install guidedlda
and the following as mentioned in the documentation:Anaconda command prompt throws the following issue when I try to execute the above:
I really hope you can help, I am analyzing a large body of text and my unsupervised LDA topics are really sucky
Thank you so much in advance! I am running Win10 and Python and Anaconda 3.