vi3k6i5 / GuidedLDA

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

Error when installing the GuidedLDA package #50

Open bqwu opened 4 years ago

bqwu commented 4 years ago

Hi there, first very thankful for this useful package. But I met a problem of installing. It says, "ERROR: Command errored out with exit status 1". I'm using Python 3.7.6 on macosx-10.15.4. I also tried the alternative manual installation. But still failed with the following information: "error: error in setup.cfg: command 'sdist' has no such option 'pre_hook.sdist_pre_hook'"

I'm not sure what the problem is. Could you please give me a hand? Thanks...

bohyunshin commented 4 years ago

You could try installing this package in python 3.6 virtual environment. Seems that cython library that this package is using does not work well in python 3.7.

bqwu commented 4 years ago

Thanks very much. I'm doing that. But still hopes it will be compatible with newer python...

dex314 commented 3 years ago

@bqwu Did you check this error issue thread out? - https://github.com/vi3k6i5/GuidedLDA/issues/43

cherry-du commented 2 years ago

the same problem. Did you solve it?

bernomone commented 2 years ago

Hi, same problem here. It's not working with python 3.10

cherry-du commented 2 years ago

收到

OrElias-RecoLabs commented 1 year ago

Same problem

cherry-du commented 1 year ago

收到

pierrefay commented 1 year ago

The solution provided by @dex314 works well (thanks guy you saved me a lot of time)

For the other who need helps with python3.10 with guidedlda

here is everything : https://github.com/dex314/GuidedLDA_WorkAround/blob/master/READ_ME_GUIDEDLDA.txt

here is the solution:


1. Pull down the repository.

2. Install the original LDA package. 
    https://pypi.org/project/lda/

3. Drop the *.py files from the GuidedLDA_WorkAround repo in the lda folder under site-packages for your specific enviroment.

Just copy the guided lda files of the workaround in the files of the normal installation folder then use cython and launch the install.

Pierre

cherry-du commented 1 year ago

收到