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: No module named adversarial #4

Open
Solomon1588 opened this issue Jun 15, 2016 · 5 comments
Open

ImportError: No module named adversarial #4

Solomon1588 opened this issue Jun 15, 2016 · 5 comments

Comments

@Solomon1588
Copy link

Solomon1588 commented Jun 15, 2016

Hello,I attempt to reproduce your adversarial net , but there is something wrong as the tittle mentioned.
I noticed that I should set the "adversarial" directory in my PYTHONPATH environment variable.
I am puzzled,however ,what does the "adversarial" directory meani? I tried to set directory of the
project into the PYTHONPATH but failed with the "ImportError: No module named adversarial".
I wish you could Solve my doubts.Thanks a lot.

@sbanerj1
Copy link

sbanerj1 commented Jul 8, 2016

Hi Soloman1588, I am having the issue. Did you figure out what the problem was?

@zjost
Copy link

zjost commented Dec 13, 2016

You should set your PYTHONPATH environment variable to be equal to the directory that contains your cloned version of this repo. For instance, if you cloned this repo into a folder called "git", then in your .bashrc file: export PYTHONPATH=$HOME/git.

The PYTHONPATH variable tells python where to look for modules (aside from the default locations). By setting it to the parent directory of this repo, it will find the "adversarial" folder and look within it for the module files.

@shilaimu
Copy link

@Solomon1588 did you solve the problem?I'm having the issue too.
@zjost It's comes "No module named adversarial" after I add the PYTHONPATH in .bashrc.what should i do ?

@zjost
Copy link

zjost commented Mar 24, 2018

This question is better for Stack Overflow, as it isn't specific to this code, it is a general Python question. To make sure your changes took effect, you can echo $PYTHONPATH and verify it is as expected. If it's still not there, perhaps you forgot to actually run your .bashrc. You can either log off and on again or simply source ~/.bashrc.

@shilaimu
Copy link

@zjost thank you very much,I imported the adversarial in python ,but there's output "warnings.warn(warn)"
how should I config the path of the mnist or other datasets?

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

4 participants