vi3k6i5 / GuidedLDA

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

installation error on Windows computer : pls help #2

Open Sandy4321 opened 6 years ago

Sandy4321 commented 6 years ago

Microsoft Windows [Version 10.0.15063] (c) 2017 Microsoft Corporation. All rights reserved.

E:\NLP\LDA\code LDA\GuidedLDA_master_very_good_Oct18_2017\GuidedLDA-master>python setup.py

Installed e:\nlp\lda\code lda\guidedlda_master_very_good_oct18_2017\guidedlda-master.eggs\pbr-3.1.1-py3.5.egg ERROR:root:Error parsing Traceback (most recent call last): File "e:\nlp\lda\code lda\guidedlda_master_very_good_oct18_2017\guidedlda-master.eggs\pbr-3.1.1-py3.5.egg\pbr\core.py", line 111, in pbr attrs = util.cfg_to_args(path, dist.script_args) File "e:\nlp\lda\code lda\guidedlda_master_very_good_oct18_2017\guidedlda-master.eggs\pbr-3.1.1-py3.5.egg\pbr\util.py", line 249, in cfg_to_args pbr.hooks.setup_hook(config) File "e:\nlp\lda\code lda\guidedlda_master_very_good_oct18_2017\guidedlda-master.eggs\pbr-3.1.1-py3.5.egg\pbr\hooks__init__.py", line 25, in setup_hook metadata_config.run() File "e:\nlp\lda\code lda\guidedlda_master_very_good_oct18_2017\guidedlda-master.eggs\pbr-3.1.1-py3.5.egg\pbr\hooks\base.py", line 27, in run self.hook() File "e:\nlp\lda\code lda\guidedlda_master_very_good_oct18_2017\guidedlda-master.eggs\pbr-3.1.1-py3.5.egg\pbr\hooks\metadata.py", line 26, in hook self.config['name'], self.config.get('version', None)) File "e:\nlp\lda\code lda\guidedlda_master_very_good_oct18_2017\guidedlda-master.eggs\pbr-3.1.1-py3.5.egg\pbr\packaging.py", line 755, in get_version name=package_name)) Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name guidedlda was given, but was not able to be found. error in setup command: Error parsing E:\NLP\LDA\code LDA\GuidedLDA_master_very_good_Oct18_2017\GuidedLDA-master\setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name guidedlda was given, but was not able to be found.

E:\NLP\LDA\code LDA\GuidedLDA_master_very_good_Oct18_2017\GuidedLDA-master>

Sandy4321 commented 6 years ago

another try Microsoft Windows [Version 10.0.15063] (c) 2017 Microsoft Corporation. All rights reserved.

E:\GuidedLDA_master>python setup.py ERROR:root:Error parsing Traceback (most recent call last): File "e:\guidedlda_master.eggs\pbr-3.1.1-py3.5.egg\pbr\core.py", line 111, in pbr attrs = util.cfg_to_args(path, dist.script_args) File "e:\guidedlda_master.eggs\pbr-3.1.1-py3.5.egg\pbr\util.py", line 249, in cfg_to_args pbr.hooks.setup_hook(config) File "e:\guidedlda_master.eggs\pbr-3.1.1-py3.5.egg\pbr\hooks__init__.py", line 25, in setup_hook metadata_config.run() File "e:\guidedlda_master.eggs\pbr-3.1.1-py3.5.egg\pbr\hooks\base.py", line 27, in run self.hook() File "e:\guidedlda_master.eggs\pbr-3.1.1-py3.5.egg\pbr\hooks\metadata.py", line 26, in hook self.config['name'], self.config.get('version', None)) File "e:\guidedlda_master.eggs\pbr-3.1.1-py3.5.egg\pbr\packaging.py", line 755, in get_version name=package_name)) Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name guidedlda was given, but was not able to be found. error in setup command: Error parsing E:\GuidedLDA_master\setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name guidedlda was given, but was not able to be found.

E:\GuidedLDA_master>

Sandy4321 commented 6 years ago

what version of pbr you use?

Sandy4321 commented 6 years ago

another attempt to use pip install guidedlda Microsoft Windows [Version 10.0.15063] (c) 2017 Microsoft Corporation. All rights reserved.

E:\GuidedLDA_master>pip install pbr Collecting pbr Downloading pbr-3.1.1-py2.py3-none-any.whl (99kB) 100% |################################| 102kB 95kB/s Installing collected packages: pbr Successfully installed pbr-3.1.1

E:\GuidedLDA_master>pip install guidedlda Collecting guidedlda Downloading guidedlda-1.9.0.dev9.tar.gz (2.1MB) 100% |################################| 2.1MB 103kB/s Building wheels for collected packages: guidedlda Running setup.py bdist_wheel for guidedlda ... error Complete output from command c:\users\cde3\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\cde3\AppData\Local\Temp\pip-build-ext3w1oy\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 C:\Users\cde3\AppData\Local\Temp\tmpyqsrsop0pip-wheel- --python-tag cp35: running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.5 creating build\lib.win-amd64-3.5\guidedlda creating build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\test_datasets.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\test_guidedlda_nyt.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\test_lda.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\test_lda_reuters.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\test_lda_sparse.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\test_lda_transform.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\test_utils.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests__init.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\datasets.py -> build\lib.win-amd64-3.5\guidedlda copying guidedlda\guidedlda.py -> build\lib.win-amd64-3.5\guidedlda copying guidedlda\utils.py -> build\lib.win-amd64-3.5\guidedlda copying guidedlda_setup_hooks.py -> build\lib.win-amd64-3.5\guidedlda copying guidedlda__init.py -> build\lib.win-amd64-3.5\guidedlda running egg_info writing guidedlda.egg-info\PKG-INFO writing top-level names to guidedlda.egg-info\top_level.txt writing dependency_links to guidedlda.egg-info\dependency_links.txt [pbr] Reusing existing SOURCES.txt copying guidedlda\tests\nyt.ldac -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\nyt.titles -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\nyt.tokens -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\reuters.ldac -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\reuters.titles -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\reuters.tokens -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda_guidedlda.c -> build\lib.win-amd64-3.5\guidedlda copying guidedlda_guidedlda.pyx -> build\lib.win-amd64-3.5\guidedlda copying guidedlda\gamma.c -> build\lib.win-amd64-3.5\guidedlda copying guidedlda\gamma.h -> build\lib.win-amd64-3.5\guidedlda running build_ext Traceback (most recent call last): File "", line 1, in File "C:\Users\cde3\AppData\Local\Temp\pip-build-ext3w1oy\guidedlda\setup.py", line 12, in pbr=True File "c:\users\cde3\anaconda3\lib\distutils\core.py", line 148, in setup dist.run_commands() File "c:\users\cde3\anaconda3\lib\distutils\dist.py", line 955, in run_commands self.run_command(cmd) File "c:\users\cde3\anaconda3\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "c:\users\cde3\anaconda3\lib\site-packages\wheel\bdist_wheel.py", line 179, in run self.run_command('build') File "c:\users\cde3\anaconda3\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\cde3\anaconda3\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "c:\users\cde3\anaconda3\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "c:\users\cde3\anaconda3\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\cde3\anaconda3\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "c:\users\cde3\anaconda3\lib\site-packages\setuptools-27.2.0-py3.5.egg\setuptools\command\build_ext.py", line 77, in run File "c:\users\cde3\anaconda3\lib\site-packages\Cython\Distutils\old_build_ext.py", line 185, in run _build_ext.build_ext.run(self) File "c:\users\cde3\anaconda3\lib\distutils\command\build_ext.py", line 307, in run force=self.force) File "c:\users\cde3\anaconda3\lib\distutils\ccompiler.py", line 1031, in new_compiler return klass(None, dry_run, force) File "c:\users\cde3\anaconda3\lib\distutils\cygwinccompiler.py", line 282, in init CygwinCCompiler.init__ (self, verbose, dry_run, force) File "c:\users\cde3\anaconda3\lib\distutils\cygwinccompiler.py", line 157, in init__ self.dll_libraries = get_msvcr() File "c:\users\cde3\anaconda3\lib\distutils\cygwinccompiler.py", line 86, in get_msvcr raise ValueError("Unknown MS Compiler version %s " % msc_ver) ValueError: Unknown MS Compiler version 1900


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 c:\users\cde3\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\cde3\AppData\Local\Temp\pip-build-ext3w1oy\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 C:\Users\cde3\AppData\Local\Temp\pip-gnquv5qj-record\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.win-amd64-3.5 creating build\lib.win-amd64-3.5\guidedlda creating build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\test_datasets.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\test_guidedlda_nyt.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\test_lda.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\test_lda_reuters.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\test_lda_sparse.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\test_lda_transform.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\test_utils.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests__init.py -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\datasets.py -> build\lib.win-amd64-3.5\guidedlda copying guidedlda\guidedlda.py -> build\lib.win-amd64-3.5\guidedlda copying guidedlda\utils.py -> build\lib.win-amd64-3.5\guidedlda copying guidedlda_setup_hooks.py -> build\lib.win-amd64-3.5\guidedlda copying guidedlda__init.py -> build\lib.win-amd64-3.5\guidedlda running egg_info writing top-level names to guidedlda.egg-info\top_level.txt writing guidedlda.egg-info\PKG-INFO writing dependency_links to guidedlda.egg-info\dependency_links.txt [pbr] Reusing existing SOURCES.txt copying guidedlda\tests\nyt.ldac -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\nyt.titles -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\nyt.tokens -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\reuters.ldac -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\reuters.titles -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda\tests\reuters.tokens -> build\lib.win-amd64-3.5\guidedlda\tests copying guidedlda_guidedlda.c -> build\lib.win-amd64-3.5\guidedlda copying guidedlda_guidedlda.pyx -> build\lib.win-amd64-3.5\guidedlda copying guidedlda\gamma.c -> build\lib.win-amd64-3.5\guidedlda copying guidedlda\gamma.h -> build\lib.win-amd64-3.5\guidedlda running build_ext Traceback (most recent call last): File "", line 1, in File "C:\Users\cde3\AppData\Local\Temp\pip-build-ext3w1oy\guidedlda\setup.py", line 12, in pbr=True File "c:\users\cde3\anaconda3\lib\distutils\core.py", line 148, in setup dist.run_commands() File "c:\users\cde3\anaconda3\lib\distutils\dist.py", line 955, in run_commands self.run_command(cmd) File "c:\users\cde3\anaconda3\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "c:\users\cde3\anaconda3\lib\site-packages\pbr\packaging.py", line 200, in run return du_install.install.run(self) File "c:\users\cde3\anaconda3\lib\distutils\command\install.py", line 539, in run self.run_command('build') File "c:\users\cde3\anaconda3\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\cde3\anaconda3\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "c:\users\cde3\anaconda3\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "c:\users\cde3\anaconda3\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\cde3\anaconda3\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "c:\users\cde3\anaconda3\lib\site-packages\setuptools-27.2.0-py3.5.egg\setuptools\command\build_ext.py", line 77, in run File "c:\users\cde3\anaconda3\lib\site-packages\Cython\Distutils\old_build_ext.py", line 185, in run _build_ext.build_ext.run(self) File "c:\users\cde3\anaconda3\lib\distutils\command\build_ext.py", line 307, in run force=self.force) File "c:\users\cde3\anaconda3\lib\distutils\ccompiler.py", line 1031, in new_compiler return klass(None, dry_run, force) File "c:\users\cde3\anaconda3\lib\distutils\cygwinccompiler.py", line 282, in init CygwinCCompiler.init__ (self, verbose, dry_run, force) File "c:\users\cde3\anaconda3\lib\distutils\cygwinccompiler.py", line 157, in init__ self.dll_libraries = get_msvcr() File "c:\users\cde3\anaconda3\lib\distutils\cygwinccompiler.py", line 86, in get_msvcr raise ValueError("Unknown MS Compiler version %s " % msc_ver) ValueError: Unknown MS Compiler version 1900

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

Command "c:\users\cde3\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\cde3\AppData\Local\Temp\pip-build-ext3w1oy\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 C:\Users\cde3\AppData\Local\Temp\pip-gnquv5qj-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\cde3\AppData\Local\Temp\pip-build-ext3w1oy\guidedlda\

E:\GuidedLDA_master>

Sandy4321 commented 6 years ago

when lda installed correctly Microsoft Windows [Version 10.0.15063] (c) 2017 Microsoft Corporation. All rights reserved.

E:\GuidedLDA_master>pip install lda Collecting lda Downloading lda-1.0.5-cp35-cp35m-win_amd64.whl (316kB) 100% |################################| 317kB 454kB/s Requirement already satisfied: numpy<2.0,>=1.6.1 in c:\users\cde3\anaconda3\lib\site-packages (from lda) Requirement already satisfied: pbr>=0.6 in c:\users\cde3\anaconda3\lib\site-packages (from lda) Installing collected packages: lda Successfully installed lda-1.0.5

E:\GuidedLDA_master>

vi3k6i5 commented 6 years ago

Thanks for sharing all the details. I don't have access to a windows machine right now. I will try my best to get it setup.

I tested it on Ubuntu and mac. Will try to add test for windows machine also.

vi3k6i5 commented 6 years ago

@Sandy4321 Did you try pip install guidedlda ?

I tried it on a windows machine version : 10.0.14393 Build 14393 , Python: 2.7 with anaconda installed and It worked fine.

Sandy4321 commented 6 years ago

how you installed it did you used pip? how you compiled C code? which compiler installed in this computer?

vi3k6i5 commented 6 years ago

I did pip install guidedlda, try that and let me know if that works. Will check the c compiler and let you know. Also Anaconda is installed on that computer https://www.anaconda.com/download/.

Sandy4321 commented 6 years ago

anaconda I understand it is something standard but what C++ compiler?

vi3k6i5 commented 6 years ago

I will check the c compiler and let you know. I don't have access to a windows machine right now. pip install guidedlda failed for you, I will check and update by tomorrow.

Sandy4321 commented 6 years ago

any news?

vi3k6i5 commented 6 years ago

Nope. So far not able to reproduce. I will try on more windows machine when I get time.

Sandy4321 commented 6 years ago

so do you succeed install on windows computer or not? I tried 4 computer and on 2 of them installation was ok may you recommend link to study how to use C++ and python together as you did?

vi3k6i5 commented 6 years ago

Not yet still need to find one windows machine. And replicate the issue. I will try to come up with the C++ with Python once I get there. Will definately try this before the end of the week.

Sandy4321 commented 6 years ago

super thanks, majority of people use Windows computers , you know...

Sandy4321 commented 6 years ago

may I write you to your email?

vi3k6i5 commented 6 years ago

sure. No problem.

necmiyegenc commented 6 years ago

hello, could u pls write the recommended resolution method over here? thanks in advance..

ClemensHa commented 6 years ago

I installed visual studio community which includes the visual c++ compiler and then it worked on my win 7 machine.

vi3k6i5 commented 6 years ago

Thanks, that might help other people as well :)

On Wed 11 Apr, 2018, 19:56 ClemensHa, notifications@github.com wrote:

I installed visual studio community which includes the visual c++ compiler and then it worked on my win 7 machine.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/vi3k6i5/GuidedLDA/issues/2#issuecomment-380471746, or mute the thread https://github.com/notifications/unsubscribe-auth/AC-NwszjatgxNlu8751pB5IyFYIWyYxcks5tnhKZgaJpZM4P-FB0 .

Sandy4321 commented 6 years ago

ClemencsHA may you share how you installed on windows original installation instructions are for linux pip install guidedlda If pip install does not work, then try the next step:

https://github.com/vi3k6i5/GuidedLDA cd GuidedLDA sh build_dist.sh python setup.py sdist pip install -e .

Sandy4321 commented 6 years ago

I tried to install again but again when visual c++ compiler is installed and another packaged needed this compiler are installed correctly but there is error Microsoft Windows [Version 10.0.16299.371] (c) 2017 Microsoft Corporation. All rights reserved.

E:\NLP\LDA\code LDA\GuidedLDA_master_may6_2018\GuidedLDA-master>pip install -e . Obtaining file:///E:/NLP/LDA/code%20LDA/GuidedLDA_master_may6_2018/GuidedLDA-master Complete output from command python setup.py egg_info: c:\users\sndr\anaconda3\lib\site-packages\setuptools\pep425tags.py:89: RuntimeWarning: Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect warn=(impl == 'cp')): c:\users\sndr\anaconda3\lib\site-packages\setuptools\pep425tags.py:93: RuntimeWarning: Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect warn=(impl == 'cp')): ERROR:root:Error parsing Traceback (most recent call last): File "e:\nlp\lda\code lda\guidedlda_master_may6_2018\guidedlda-master.eggs\pbr-4.0.2-py3.6.egg\pbr\core.py", line 96, in pbr attrs = util.cfg_to_args(path, dist.script_args) File "e:\nlp\lda\code lda\guidedlda_master_may6_2018\guidedlda-master.eggs\pbr-4.0.2-py3.6.egg\pbr\util.py", line 258, in cfg_to_args pbr.hooks.setup_hook(config) File "e:\nlp\lda\code lda\guidedlda_master_may6_2018\guidedlda-master.eggs\pbr-4.0.2-py3.6.egg\pbr\hooks__init__.py", line 25, in setup_hook metadata_config.run() File "e:\nlp\lda\code lda\guidedlda_master_may6_2018\guidedlda-master.eggs\pbr-4.0.2-py3.6.egg\pbr\hooks\base.py", line 27, in run self.hook() File "e:\nlp\lda\code lda\guidedlda_master_may6_2018\guidedlda-master.eggs\pbr-4.0.2-py3.6.egg\pbr\hooks\metadata.py", line 26, in hook self.config['name'], self.config.get('version', None)) File "e:\nlp\lda\code lda\guidedlda_master_may6_2018\guidedlda-master.eggs\pbr-4.0.2-py3.6.egg\pbr\packaging.py", line 816, in get_version name=package_name)) Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name guidedlda was given, but was not able to be found. error in setup command: Error parsing E:\NLP\LDA\code LDA\GuidedLDA_master_may6_2018\GuidedLDA-master\setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name guidedlda was given, but was not able to be found.

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

Command "python setup.py egg_info" failed with error code 1 in E:\NLP\LDA\code LDA\GuidedLDA_master_may6_2018\GuidedLDA-master\ You are using pip version 10.0.0, however version 10.0.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

E:\NLP\LDA\code LDA\GuidedLDA_master_may6_2018\GuidedLDA-master>

Sandy4321 commented 6 years ago

ok I uninstalled all compilers for C++ and installed VC compiler now it works pls check if result correct whe there are many warnings? WARNING:guidedlda:all zero column in document-term matrix found

(8447, 3012) 1221626 INFO:guidedlda:n_documents: 8447 INFO:guidedlda:vocab_size: 3012 INFO:guidedlda:n_words: 1221626 INFO:guidedlda:n_topics: 5 INFO:guidedlda:n_iter: 100 WARNING:guidedlda:all zero column in document-term matrix found INFO:guidedlda:<0> log likelihood: -11489265 INFO:guidedlda:<20> log likelihood: -9844667 INFO:guidedlda:<40> log likelihood: -9694223 INFO:guidedlda:<60> log likelihood: -9642506 INFO:guidedlda:<80> log likelihood: -9617962 INFO:guidedlda:<99> log likelihood: -9604031 Topic 0: company percent market business plan pay price increase Topic 1: game play team win player season second start Topic 2: life child write man school woman father family Topic 3: place open small house music turn large play Topic 4: official state government political states issue leader case INFO:guidedlda:n_documents: 8447 INFO:guidedlda:vocab_size: 3012 INFO:guidedlda:n_words: 1221626 INFO:guidedlda:n_topics: 5 INFO:guidedlda:n_iter: 100 WARNING:guidedlda:all zero column in document-term matrix found INFO:guidedlda:<0> log likelihood: -11486372 INFO:guidedlda:<20> log likelihood: -9765300 INFO:guidedlda:<40> log likelihood: -9659651 INFO:guidedlda:<60> log likelihood: -9622617 INFO:guidedlda:<80> log likelihood: -9604295 INFO:guidedlda:<99> log likelihood: -9592268 Topic 0: game play team win season player second point start victory Topic 1: company percent market price business sell pay plan executive buy Topic 2: play life man music place turn book woman write thing Topic 3: official government state political leader states issue member case country Topic 4: school child city family problem student life program group state

vi3k6i5 commented 6 years ago

This warning comes when any column in the document term matrix is empty

WARNING:guidedlda:all zero column in document-term matrix found

Basically for at least one term the overall frequency across all docs is 0.

On Sun 6 May, 2018, 19:55 Sandy4321, notifications@github.com wrote:

ok I uninstalled all compilers for C++ and installed VC compiler now it works pls check if result correct whe there are many warnings? WARNING:guidedlda:all zero column in document-term matrix found

(8447, 3012) 1221626 INFO:guidedlda:n_documents: 8447 INFO:guidedlda:vocab_size: 3012 INFO:guidedlda:n_words: 1221626 INFO:guidedlda:n_topics: 5 INFO:guidedlda:n_iter: 100 WARNING:guidedlda:all zero column in document-term matrix found INFO:guidedlda:<0> log likelihood: -11489265 INFO:guidedlda:<20> log likelihood: -9844667 INFO:guidedlda:<40> log likelihood: -9694223 INFO:guidedlda:<60> log likelihood: -9642506 INFO:guidedlda:<80> log likelihood: -9617962 INFO:guidedlda:<99> log likelihood: -9604031 Topic 0: company percent market business plan pay price increase Topic 1: game play team win player season second start Topic 2: life child write man school woman father family Topic 3: place open small house music turn large play Topic 4: official state government political states issue leader case INFO:guidedlda:n_documents: 8447 INFO:guidedlda:vocab_size: 3012 INFO:guidedlda:n_words: 1221626 INFO:guidedlda:n_topics: 5 INFO:guidedlda:n_iter: 100 WARNING:guidedlda:all zero column in document-term matrix found INFO:guidedlda:<0> log likelihood: -11486372 INFO:guidedlda:<20> log likelihood: -9765300 INFO:guidedlda:<40> log likelihood: -9659651 INFO:guidedlda:<60> log likelihood: -9622617 INFO:guidedlda:<80> log likelihood: -9604295 INFO:guidedlda:<99> log likelihood: -9592268 Topic 0: game play team win season player second point start victory Topic 1: company percent market price business sell pay plan executive buy Topic 2: play life man music place turn book woman write thing Topic 3: official government state political leader states issue member case country Topic 4: school child city family problem student life program group state

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/vi3k6i5/GuidedLDA/issues/2#issuecomment-386883249, or mute the thread https://github.com/notifications/unsubscribe-auth/AC-Nwnjlk3btBcWQbtAleBZvqIDNo91Vks5tvwfkgaJpZM4P-FB0 .

Ashwini-Karthikeyan commented 6 years ago

I tried pip install in conda prompt and I am unable to install the package :-(

PFB the error message I received:

(base) C:\Users\Renuka>pip install guidedlda Collecting guidedlda Downloading https://files.pythonhosted.org/packages/f8/ee/6d6e2b3525388399e12a 4482554c7529a5fcf5e99c50a60abaa02894b8bf/guidedlda-2.0.0.dev22.tar.gz (2.1MB) 100% |¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 2.1MB 2.1MB/s Requirement already satisfied: numpy in c:\users\renuka\anaconda3\lib\site-packa ges (from guidedlda) (1.14.0) Building wheels for collected packages: guidedlda Running setup.py bdist_wheel for guidedlda ... error Complete output from command c:\users\renuka\anaconda3\python.exe -u -c "impor t setuptools, tokenize;file='C:\Users\Renuka\AppData\Local\Temp\pip-in stall-yymfs60u\guidedlda\setup.py';f=getattr(tokenize, 'open', open)(file) ;code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exe c'))" bdist_wheel -d C:\Users\Renuka\AppData\Local\Temp\pip-wheel-7xb3xfdg --pyt hon-tag cp36: running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.6 creating build\lib.win-amd64-3.6\guidedlda creating build\lib.win-amd64-3.6\guidedlda\tests copying guidedlda\tests\test_datasets.py -> build\lib.win-amd64-3.6\guidedlda\ tests copying guidedlda\tests\test_guidedlda_nyt.py -> build\lib.win-amd64-3.6\guide dlda\tests copying guidedlda\tests\test_lda.py -> build\lib.win-amd64-3.6\guidedlda\tests

copying guidedlda\tests\test_lda_reuters.py -> build\lib.win-amd64-3.6\guidedl da\tests copying guidedlda\tests\test_lda_sparse.py -> build\lib.win-amd64-3.6\guidedld a\tests copying guidedlda\tests\test_lda_transform.py -> build\lib.win-amd64-3.6\guide dlda\tests copying guidedlda\tests\test_utils.py -> build\lib.win-amd64-3.6\guidedlda\tes ts copying guidedlda\tests__init__.py -> build\lib.win-amd64-3.6\guidedlda\tests

copying guidedlda\datasets.py -> build\lib.win-amd64-3.6\guidedlda copying guidedlda\guidedlda.py -> build\lib.win-amd64-3.6\guidedlda copying guidedlda\utils.py -> build\lib.win-amd64-3.6\guidedlda copying guidedlda_setup_hooks.py -> build\lib.win-amd64-3.6\guidedlda copying guidedlda__init__.py -> build\lib.win-amd64-3.6\guidedlda 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\tests\nyt.ldac -> build\lib.win-amd64-3.6\guidedlda\tests copying guidedlda\tests\nyt.titles -> build\lib.win-amd64-3.6\guidedlda\tests copying guidedlda\tests\nyt.tokens -> build\lib.win-amd64-3.6\guidedlda\tests copying guidedlda\tests\reuters.ldac -> build\lib.win-amd64-3.6\guidedlda\test s copying guidedlda\tests\reuters.titles -> build\lib.win-amd64-3.6\guidedlda\te sts copying guidedlda\tests\reuters.tokens -> build\lib.win-amd64-3.6\guidedlda\te sts copying guidedlda_guidedlda.c -> build\lib.win-amd64-3.6\guidedlda copying guidedlda_guidedlda.pyx -> build\lib.win-amd64-3.6\guidedlda copying guidedlda\gamma.c -> build\lib.win-amd64-3.6\guidedlda copying guidedlda\gamma.h -> build\lib.win-amd64-3.6\guidedlda running build_ext building 'guidedlda._guidedlda' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C+

gowri305 commented 5 years ago

Hi Vikas, I tried to install 'GuidedLDA' but it seems windows user still have the issue.

Below is the error message: building 'guidedlda._guidedlda' extension

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

Would appreciate if you can help to get this issue resolved.

Thanks!!

yoshida-valuesccg commented 5 years ago

I was having the same issue and i downgraded from python3.7 to python3.5 solved the problem.

gowri305 commented 5 years ago

I was having the same issue and i downgraded from python3.7 to python3.5 solved the problem.

I am not sure how this solved the issue as the error msg says its due to the microsoft visual C++ 14.0. Will try installing python 3.5 and check. Thanks !!

dmolpa commented 5 years ago

Hello.

I have an issue with pip install guidedlda which produces: "building 'guidedlda._guidedlda' extension error: Microsoft Visual C++ 14.0 is required." Is there a precompiled wheel for guidedlda? I'm on Windows 10, have a relatively small eMMC storage and don't want to install huge Visual C++ 14.0. Something like this: https://www.lfd.uci.edu/~gohlke/pythonlibs/

Thank you.

edyvedy commented 4 years ago

Hi there, have the same problem, would be great to have a precompiled wheel

Sandy4321 commented 4 years ago

yes , it would be great to have a precompiled wheel

junxu-ai commented 4 years ago

Python 3.6 works fine, while 3.7 cannot. is there any dependency on 3.6?

Sandy4321 commented 4 years ago

but python 2.7 is obsolete

can it be used for python 3.8?

FritzZuhl commented 3 years ago

Is there a precompiled wheel for this? I work in an environment that prevents me from compiling from source.

nafeeal commented 1 year ago

Did anyone solve this for windows?