Coder Social home page Coder Social logo

Comments (4)

Zeqiang-Lai avatar Zeqiang-Lai commented on July 23, 2024 1

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

from draggan.

BorisVandermeer avatar BorisVandermeer commented on July 23, 2024

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

from draggan.

Zeqiang-Lai avatar Zeqiang-Lai commented on July 23, 2024

a little wired. you could try

pip install --upgrade fsspec

from draggan.

BorisVandermeer avatar BorisVandermeer commented on July 23, 2024

That works, thanks 👍

from draggan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.