Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove "No handlers could be found for logger "gensim.models.word2vec" message during import #910

Closed
tmylk opened this issue Oct 2, 2016 · 5 comments
Labels
bug Issue described a bug difficulty easy Easy issue: required small fix

Comments

@tmylk
Copy link
Contributor

tmylk commented Oct 2, 2016

Instead print the actual message that word2vec is trying to print

@tmylk tmylk added bug Issue described a bug difficulty easy Easy issue: required small fix labels Oct 2, 2016
@markroxor
Copy link
Contributor

markroxor commented Oct 7, 2016

@tmylk Check logging.basicConfig.

Does basic configuration for the logging system by creating a StreamHandler with a default Formatter and adding it to the root logger. The functions debug(), info(), warning(), error() and critical() will call basicConfig() automatically if no handlers are defined for the root logger.

I believe adding logging.basicConfig() to gensim.models.word2vec should do the trick.

Implementing this on my system pops the following WARNING in compliance with the logger warning here
image

Do you want to print this message?

@tmylk
Copy link
Contributor Author

tmylk commented Oct 8, 2016

Yes, that text is very important. Let's print it

@SebastinSanty
Copy link

On OSX, the following message, is printed

Slow version of gensim.models.word2vec is being used
Slow version of gensim.models.doc2vec is being used

So, I guess, it works correctly on OSX.

markroxor added a commit to markroxor/gensim that referenced this issue Oct 8, 2016
@tmylk tmylk closed this as completed in 7f7eb55 Oct 13, 2016
@piskvorky piskvorky reopened this Oct 14, 2016
markroxor added a commit to markroxor/gensim that referenced this issue Oct 14, 2016
@tmylk tmylk closed this as completed in 264440d Oct 16, 2016
@shrutiag95
Copy link

i got Slow version of gensim.models.doc2vec is being used error....pls help

@markroxor
Copy link
Contributor

@shrutiag95 have you tried installing cython and then
python setup.py build_ext --inplace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue described a bug difficulty easy Easy issue: required small fix
Projects
None yet
Development

No branches or pull requests

5 participants