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

AttributeError: module 'gradio' has no attribute 'Box' #6815

Closed
1 task done
adaaaaaa opened this issue Dec 17, 2023 · 9 comments
Closed
1 task done

AttributeError: module 'gradio' has no attribute 'Box' #6815

adaaaaaa opened this issue Dec 17, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@adaaaaaa
Copy link

adaaaaaa commented Dec 17, 2023

Describe the bug

python server.py ─╯
2023-12-17 12:54:21 INFO:Loading the extension "gallery"...
Traceback (most recent call last):
File "/data/text-generation-webui/server.py", line 249, in
create_interface()
File "/data/text-generation-webui/server.py", line 131, in create_interface
ui_model_menu.create_ui() # Model tab
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/text-generation-webui/modules/ui_model_menu.py", line 77, in create_ui
with gr.Box():
^^^^^^
AttributeError: module 'gradio' has no attribute 'Box'

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr
gr.Box()

Screenshot

No response

Logs

No response

System Info

gradio 4.10.0

Severity

Blocking usage of gradio

@adaaaaaa adaaaaaa added the bug Something isn't working label Dec 17, 2023
@onuralpszr
Copy link

@adaaaaaa with version 4.0.0 they removed it

https://www.gradio.app/changelog#4-0-0

image

@pngwn
Copy link
Member

pngwn commented Dec 18, 2023

Yes, gr.Box no longer exists. You should be able to achieve the same goal with gr.Group.

@pngwn pngwn closed this as completed Dec 18, 2023
@ColomboEnterprise
Copy link

How i can fix the problem? When i us pinokio every 2nd app got this probelm

@koplenov
Copy link

Have these guys even heard anything about backwards compatibility? :/

@pngwn
Copy link
Member

pngwn commented Jan 25, 2024

We follow semver. It was removed in a major version. If there were no breaking changes it would have been a minor.

@koplenov
Copy link

We follow semver

If it worked, this issue wouldn't exist :')

I ran into the fact that you were moving furniture at the moment when I was rolling back to past commits of one project - the authors didn't commit versions and it just broke the application

It's ridiculous

check VerLess https://mol.hyoo.ru/#!section=docs/=19222d_hpubim

@koplenov
Copy link

It was removed in a major version. If there were no breaking changes it would have been a minor.

No, you just created and maintain a class of problems - outdated tutorials, nailing applications to library versions

No need to make life difficult for users :/

@koplenov
Copy link

fix for older projects:

pip install gradio==3.48.0

@Subhan-Zaheer
Copy link

What's the alternate to gr.Variable as it is removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants