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

Errors on "import hypergan" #30

Closed
Quasimondo opened this issue Feb 10, 2017 · 3 comments
Closed

Errors on "import hypergan" #30

Quasimondo opened this issue Feb 10, 2017 · 3 comments

Comments

@Quasimondo
Copy link

It is probably something I did wrong, but I thought I let you know.

I just installed HyperGAN from source using python3 setup.py develop

The first error I got when trying "import hypergan" in a Python console was that the HyperChamber module was missing. After installing that one separated this error went away.

But now I am stuck with this. It seems like the hypergan.regularizers classes do not get installed properly (at least over here):

import hypergan
Traceback (most recent call last):
File "", line 1, in
File "hypergan/init.py", line 2, in
from .gan import GAN
File "hypergan/gan.py", line 13, in
from hypergan.discriminators import *
File "hypergan/discriminators/densenet_discriminator.py", line 5, in
import hypergan.regularizers.minibatch_regularizer as minibatch_regularizer
ImportError: No module named regularizers.minibatch_regularizer

Any ideas?

@Quasimondo
Copy link
Author

Ah - I should mention that since the python3 installation failed entirely for me I tried this with python 2.7 - which is probable the cause for these errors.

@Quasimondo
Copy link
Author

Okay, sorry for the noise, but just to close this up and in case it is helpful for someone:

Looks like my python3 installation is messed up, nevertheless I could eventually successfully install HyperGAN using
sudo python3 setup.py develop

After that I still had to install HyperChamber (same way using 'sudo python3 setup.py develop' in the HyperChamber folder - so not 'python setup.py develop' as the readme says). I also had to pip3 install flask and pip3 install flask_cors. Not sure if all this is handled if I had used the pip installer for HyperGAN, but of course I wanted the latest version.

@martyn
Copy link
Contributor

martyn commented Feb 10, 2017

Thanks, flask_cors is a new dependency. I want to try to remove it in the future - for now I placed it in requirements.txt.

I'll add documentation that we only support python3. Glad you got it working!

@martyn martyn closed this as completed Feb 10, 2017
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

2 participants