DragGAN icon indicating copy to clipboard operation
DragGAN copied to clipboard

Could you give out the version of requirements?

Open sunshine2sunflower opened this issue 1 year ago • 4 comments

Could you give out the version of requirements?

sunshine2sunflower avatar May 22 '23 09:05 sunshine2sunflower

The requirements are very loose.

pip install -r requirements.txt 

should simply work.

As for reference, here is what I use.

gradio==3.30.0
tqdm==4.62.3
torch==1.11.0
torchvision==0.12.0
numpy==1.21.2
fire==0.5.0
imageio==2.13.5
imageio-ffmpeg==0.4.7

Zeqiang-Lai avatar May 22 '23 09:05 Zeqiang-Lai

I used these command :

conda create -n draggan
conda activate draggan
pip install -r requirements.txt 
python gradio_app.py

It shows :

Traceback (most recent call last):
  File "gradio_app.py", line 2, in <module>
    import gradio as gr
  File "/home/***/.local/lib/python3.8/site-packages/gradio/__init__.py", line 3, in <module>
    import gradio.components as components
  File "/home/***/.local/lib/python3.8/site-packages/gradio/components.py", line 34, in <module>
    from gradio_client import media_data
  File "/home/***/.local/lib/python3.8/site-packages/gradio_client/__init__.py", line 1, in <module>
    from gradio_client.client import Client
  File "/home/***.local/lib/python3.8/site-packages/gradio_client/client.py", line 30, in <module>
    from gradio_client import serializing, utils
  File "/home/***/.local/lib/python3.8/site-packages/gradio_client/serializing.py", line 9, in <module>
    from gradio_client import media_data, utils
  File "/home/***/.local/lib/python3.8/site-packages/gradio_client/utils.py", line 19, in <module>
    import fsspec.asyn
ModuleNotFoundError: No module named 'fsspec.asyn'

Ubuntu 20.04, conda 22.9.0

and fsspec has already installed, when I tried pip install fsspec, it shows:

Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: fsspec in /usr/lib/python3/dist-packages (0.6.1)

Python 3.8.10 (default, Mar 13 2023, 10:26:41) [GCC 9.4.0] on linux

BorisVandermeer avatar May 22 '23 12:05 BorisVandermeer

a little wired. you could try

pip install --upgrade fsspec

Zeqiang-Lai avatar May 22 '23 12:05 Zeqiang-Lai

That works, thanks :+1:

BorisVandermeer avatar May 23 '23 05:05 BorisVandermeer