diegoalejogm / gans

Generative Adversarial Networks implemented in PyTorch and Tensorflow
MIT License
832 stars 353 forks source link

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

Closed aspiringguru closed 5 years ago

aspiringguru commented 6 years ago

any ideas?

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

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

diegoalejogm commented 6 years ago

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 commented 4 years ago

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.