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

ModuleNotFoundError: No module named 'misc' #62

Open
jalayrupera opened this issue Feb 1, 2020 · 7 comments
Open

ModuleNotFoundError: No module named 'misc' #62

jalayrupera opened this issue Feb 1, 2020 · 7 comments

Comments

@jalayrupera
Copy link

traceback (most recent call last):
File "misc/preprocess_birds.py", line 10, in
from misc.utils import get_image
ModuleNotFoundError: No module named 'misc'

@mubeen-ikram
Copy link

sys.path.insert(1, '/path/to/StackGAN-master')
You have to set the system path for the StackGAN to access folders

@jdesouza-ai
Copy link

@mubeen-ikram Hey - I am running into a similar issue when running:

sh demo/birds_demo.py

I am getting an error which says "ImportError: No module named misc.config"

I have confirmed that the "config.py" file is there in the folder "misc" - do you know why it is having issues finding this module?

@mubeen-ikram
Copy link

I haven't work on the testing of project for quite a long time give me a day or two so i can work on it
Thanks

@jdesouza-ai
Copy link

@mubeen-ikram - thanks a lot for the reply! And no need, I have found the solution:

The reason was quite a simple one which was covered by the instructions - you're supposed to add the folder path to the linux PYTHONPATH so that it can find the modules.

Really appreciate you being willing to work on it though!

@Shivankit99
Copy link

@mubeen-ikram @jdesouza-ai i am trying to train the model on google colab .
How do i add the folder path ?

@lokesh142
Copy link

@mubeen-ikram @jdesouza-ai i am trying to train the model on google colab .
How do i add the folder path ?

Brother import to gdrive and copy the path

@lokesh142
Copy link

lokesh142 commented Jun 18, 2021

can u please elobarte how to do it?

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

5 participants