vi3k6i5 / GuidedLDA

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

Installation error on Google Cloud Platform #27

Open perambulate opened 5 years ago

perambulate commented 5 years ago

I'm having a trouble on installing GuidedLDA on VM instance in Goggle Cloud Platform. I'm using Python 3.7 installed with Anaconda 2019.03. My VM instance has Ubuntu 16.04 installed.

Below is my error code:

Collecting guidedlda
  Using cached https://files.pythonhosted.org/packages/f8/ee/6d6e2b3525388399e12a4482554c7529a5fcf5e99c50a60abaa02894b8bf/guidedlda-2.0.0.dev22.tar.gz
Requirement already satisfied: numpy in /home/tata_desthalia/anaconda3/lib/python3.7/site-packages (from guidedlda) (1.15.4)
Building wheels for collected packages: guidedlda
  Building wheel for guidedlda (setup.py) ... error
  Complete output from command /home/tata_desthalia/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-6_5jkiyp/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-o7ouw8y5 --python-tag cp37:
  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/guidedlda.py -> build/lib.linux-x86_64-3.7/guidedlda
  copying guidedlda/_setup_hooks.py -> build/lib.linux-x86_64-3.7/guidedlda
  creating 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_utils.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/__init__.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_transform.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.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 /home/tata_desthalia/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/tata_desthalia/anaconda3/include/python3.7m -c guidedlda/_guidedlda.c -o build/temp.linux-x86_64-3.7/guidedlda/_guidedlda.o
  guidedlda/_guidedlda.c: In function ‘__Pyx__ExceptionSave’:
  guidedlda/_guidedlda.c:18745:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
       *type = tstate->exc_type;
                     ^
  guidedlda/_guidedlda.c:18746:20: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
       *value = tstate->exc_value;
                      ^
  guidedlda/_guidedlda.c:18747:17: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
       *tb = tstate->exc_traceback;
                   ^
  guidedlda/_guidedlda.c: In function ‘__Pyx__ExceptionReset’:
  guidedlda/_guidedlda.c:18754:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
       tmp_type = tstate->exc_type;
                        ^
  guidedlda/_guidedlda.c:18755:23: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
       tmp_value = tstate->exc_value;
                         ^
  guidedlda/_guidedlda.c:18756:20: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
       tmp_tb = tstate->exc_traceback;
                      ^
  guidedlda/_guidedlda.c:18757:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
       tstate->exc_type = type;
             ^
  guidedlda/_guidedlda.c:18758:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
       tstate->exc_value = value;
             ^
  guidedlda/_guidedlda.c:18759:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
       tstate->exc_traceback = tb;
             ^
  guidedlda/_guidedlda.c: In function ‘__Pyx__GetException’:
  guidedlda/_guidedlda.c:18814:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
       tmp_type = tstate->exc_type;
                        ^
  guidedlda/_guidedlda.c:18815:23: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
       tmp_value = tstate->exc_value;
                         ^
  guidedlda/_guidedlda.c:18816:20: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
       tmp_tb = tstate->exc_traceback;
                      ^
  guidedlda/_guidedlda.c:18817:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
       tstate->exc_type = local_type;
             ^
  guidedlda/_guidedlda.c:18818:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
       tstate->exc_value = local_value;
             ^
  guidedlda/_guidedlda.c:18819:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
       tstate->exc_traceback = local_tb;
             ^
  guidedlda/_guidedlda.c: In function ‘__Pyx__ExceptionSwap’:
  guidedlda/_guidedlda.c:18841:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
       tmp_type = tstate->exc_type;
                        ^
  guidedlda/_guidedlda.c:18842:23: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
       tmp_value = tstate->exc_value;
                         ^
  guidedlda/_guidedlda.c:18843:20: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
       tmp_tb = tstate->exc_traceback;
                      ^
  guidedlda/_guidedlda.c:18844:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
       tstate->exc_type = *type;
             ^
  guidedlda/_guidedlda.c:18845:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
       tstate->exc_value = *value;
             ^
  guidedlda/_guidedlda.c:18846:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
       tstate->exc_traceback = *tb;
             ^
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
Failed building wheel for guidedlda
  Running setup.py clean for guidedlda
Failed to build guidedlda
Installing collected packages: guidedlda
  Running setup.py install for guidedlda ... error
    Complete output from command /home/tata_desthalia/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-6_5jkiyp/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 /tmp/pip-record-oocrdgty/install-record.txt --single-version-externally-managed --compile:
    running install
    [pbr] Generating AUTHORS
    [pbr] AUTHORS complete (0.0s)
    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/guidedlda.py -> build/lib.linux-x86_64-3.7/guidedlda
    copying guidedlda/_setup_hooks.py -> build/lib.linux-x86_64-3.7/guidedlda
    creating 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_utils.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/__init__.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_transform.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.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 /home/tata_desthalia/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/tata_desthalia/anaconda3/include/python3.7m -c guidedlda/_guidedlda.c -o build/temp.linux-x86_64-3.7/guidedlda/_guidedlda.o
    guidedlda/_guidedlda.c: In function ‘__Pyx__ExceptionSave’:
    guidedlda/_guidedlda.c:18745:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
         *type = tstate->exc_type;
                       ^
    guidedlda/_guidedlda.c:18746:20: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
         *value = tstate->exc_value;
                        ^
    guidedlda/_guidedlda.c:18747:17: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
         *tb = tstate->exc_traceback;
                     ^
    guidedlda/_guidedlda.c: In function ‘__Pyx__ExceptionReset’:
    guidedlda/_guidedlda.c:18754:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
         tmp_type = tstate->exc_type;
                          ^
    guidedlda/_guidedlda.c:18755:23: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
         tmp_value = tstate->exc_value;
                           ^
    guidedlda/_guidedlda.c:18756:20: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
         tmp_tb = tstate->exc_traceback;
                        ^
    guidedlda/_guidedlda.c:18757:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
         tstate->exc_type = type;
               ^
    guidedlda/_guidedlda.c:18758:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
         tstate->exc_value = value;
               ^
    guidedlda/_guidedlda.c:18759:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
         tstate->exc_traceback = tb;
^
    guidedlda/_guidedlda.c: In function ‘__Pyx__GetException’:
    guidedlda/_guidedlda.c:18814:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
         tmp_type = tstate->exc_type;
                          ^
    guidedlda/_guidedlda.c:18815:23: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
         tmp_value = tstate->exc_value;
                           ^
    guidedlda/_guidedlda.c:18816:20: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
         tmp_tb = tstate->exc_traceback;
                        ^
    guidedlda/_guidedlda.c:18817:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
         tstate->exc_type = local_type;
               ^
    guidedlda/_guidedlda.c:18818:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
         tstate->exc_value = local_value;
               ^
    guidedlda/_guidedlda.c:18819:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
         tstate->exc_traceback = local_tb;
               ^
    guidedlda/_guidedlda.c: In function ‘__Pyx__ExceptionSwap’:
    guidedlda/_guidedlda.c:18841:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
         tmp_type = tstate->exc_type;
                          ^
    guidedlda/_guidedlda.c:18842:23: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
         tmp_value = tstate->exc_value;
                           ^
    guidedlda/_guidedlda.c:18843:20: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
         tmp_tb = tstate->exc_traceback;
                        ^
    guidedlda/_guidedlda.c:18844:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’
         tstate->exc_type = *type;
               ^
    guidedlda/_guidedlda.c:18845:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’
         tstate->exc_value = *value;
               ^
    guidedlda/_guidedlda.c:18846:11: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’
         tstate->exc_traceback = *tb;
               ^
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/home/tata_desthalia/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-6_5jkiyp/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 /tmp/pip-record-oocrdgty/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-6_5jkiyp/guidedlda/

`