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

Error: ModuleNotFoundError: No module named 'imgui' #51

Closed
enriquemorenotent opened this issue Jun 26, 2023 · 7 comments
Closed

Error: ModuleNotFoundError: No module named 'imgui' #51

enriquemorenotent opened this issue Jun 26, 2023 · 7 comments

Comments

@enriquemorenotent
Copy link

I created a new coda env with Python 3.11 and installed the models, but when I execute the GUI, I encounter this error:

➜ conda create --name dragcan python=3.11

➜ pip install -r requirements.txt                          

➜ sh scripts/gui.sh  
Traceback (most recent call last):
  File "/home/dbugger/projects/ai/DragGAN/visualizer_drag.py", line 15, in <module>
    import imgui
ModuleNotFoundError: No module named 'imgui'
                
@quanjunjie531
Copy link

pip install imgui
you should see the enviroment.txt first.
check your all module version is OK.

@enriquemorenotent
Copy link
Author

enriquemorenotent commented Jun 26, 2023

This is my requirements.txt

➜ cat requirements.txt 
torch
torchvision
Ninja
gradio
huggingface_hub
hf_transfer%      

imgui is missing. Installing it manually solves the issue, but it should probably be included in this file, as well as other libraries that I also had to install manually

@quanjunjie531
Copy link

not only requirements.txt, you can see the enviroment.txt .

@enriquemorenotent
Copy link
Author

There is no enviroment.txt. Just an environment.yml. Is it the same?

I am a python newbie, so I am not sure what these files are for. I assumed that requirements.txt is a kind of package.json. I have no idea what environment.yml is for...

@quanjunjie531
Copy link

yap,sorry , my falt,
look the environment.yml .

@enriquemorenotent
Copy link
Author

Ok, I see. I didnt know that environment.yml was meant to configure a conda env for me. Thanks for the lesson! :)

@Lling00
Copy link

Lling00 commented Aug 11, 2023

image
It's just as good as reinstalling 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

3 participants