-
-
Notifications
You must be signed in to change notification settings - Fork 380
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
Importing gensim prints stuff and configures logging #475
Labels
Comments
Same issue with 3.8.2. Works perfect after downgrading to 3.8.1 😕 |
Downgrading to 3.8.1 did not work for me. |
@kounelisagis @ebadi You need to downgrade smart_open to version 1.10.0 to get rid of the excess logging. |
This was referenced Apr 16, 2020
pip install smart-open==1.10.0 worked for me |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem description
Not sure if this is a ticket for
smart_open
orgensim
, but importing gensim prints out some (unwanted) stuff:unable to import 'smart_open.gcs', disabling that module
.I checked the
smart_open
source code and this is actually printed from a logger:This is a big no-no – libraries have no business configuring the logging subsystem. That's up to the application. If an app tried to
import gensim
and then calllogging.basicConfig
then the latter will be ignored, because logging will already have been set up. Not good: https://docs.python.org/3/howto/logging.html#configuring-logging-for-a-libraryOriginally found via piskvorky/gensim#2794 .
Steps/code to reproduce the problem
Versions
Please provide the output of:
Checklist
Before you create the issue, please make sure you have:
The text was updated successfully, but these errors were encountered: