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

ImportError: cannot import name 'Logger' environment versions issue? #2

Closed
aspiringguru opened this issue May 31, 2018 · 2 comments
Closed

Comments

@aspiringguru
Copy link

any ideas?

from utils import Logger
ImportError: cannot import name 'Logger'

utils==0.9.0
$ python --version
Python 3.6.4 :: Anaconda, Inc.

@diegoalejogm
Copy link
Owner

hi @aspiringguru

The problem here is that the Logger class we use is found in the utils.py file in this same repository, and you might have installed a different utils package from PIP.

You could either 1) uninstall the utils package from your environment with pip uninstall utils, or 2) rename the utils.py file in this repo to something different (say foo) and importing Logger as required (e.g. from foo import Logger).

Let me know if that works.

@yashsingla984
Copy link

Hey Diego,

I have been facing problem with from utils import Logger.I am using tensorflow 2.0 and I have been facing problem with the code use have made of Vanilla Gan in tensorflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants