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

gradio cc dev fails for component with a space in the directory #8783

Open
1 task done
lcsch02 opened this issue Jul 15, 2024 · 0 comments
Open
1 task done

gradio cc dev fails for component with a space in the directory #8783

lcsch02 opened this issue Jul 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working custom-components Related to custom component cli or workflow

Comments

@lcsch02
Copy link

lcsch02 commented Jul 15, 2024

Describe the bug

Following the guide for creating an example custom component with a simple text box found here, I found that after using cc create and trying to go into the development server with cc dev, the opening of the development server fails. My test component is stored in a directory including the folder 'Gradio Test'. The error returned claims an unexpected extra argument, from which it suggests the directory name is being handled unaltered and the space within it not being taken into account.

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

gradio cc create TestComponent --template SimpleTextBox
gradio cc dev

Screenshot

Screenshot 2024-07-15 at 15 03 30

Logs

No response

System Info

Gradio Environment Information:
------------------------------
Operating System: Darwin
gradio version: 4.38.1
gradio_client version: 1.1.0

------------------------------------------------
gradio dependencies in your environment:

aiofiles: 23.2.1
altair: 5.3.0
fastapi: 0.111.0
ffmpy: 0.3.2
gradio-client==1.1.0 is not installed.
httpx: 0.27.0
huggingface-hub: 0.23.4
importlib-resources: 6.4.0
jinja2: 3.1.4
markupsafe: 2.1.5
matplotlib: 3.9.1
numpy: 1.26.4
orjson: 3.10.6
packaging: 24.1
pandas: 2.2.2
pillow: 10.4.0
pydantic: 2.8.2
pydub: 0.25.1
python-multipart: 0.0.9
pyyaml: 6.0.1
ruff: 0.5.1
semantic-version: 2.10.0
tomlkit==0.12.0 is not installed.
typer: 0.12.3
typing-extensions: 4.12.2
urllib3: 2.2.2
uvicorn: 0.30.1
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.


gradio_client dependencies in your environment:

fsspec: 2024.6.1
httpx: 0.27.0
huggingface-hub: 0.23.4
packaging: 24.1
typing-extensions: 4.12.2
websockets: 11.0.3

Severity

I can work around it

@lcsch02 lcsch02 added the bug Something isn't working label Jul 15, 2024
@abidlabs abidlabs added the custom-components Related to custom component cli or workflow label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working custom-components Related to custom component cli or workflow
Projects
None yet
Development

No branches or pull requests

3 participants