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

Iprogress not found #340

Open
fredzannarbor opened this issue Aug 18, 2020 · 1 comment
Open

Iprogress not found #340

fredzannarbor opened this issue Aug 18, 2020 · 1 comment

Comments

@fredzannarbor
Copy link

newClient.summarization_query("Please summarize original text")
|- Preprocessing data...

Traceback (most recent call last):

  File "<ipython-input-16-fc357368ba3d>", line 1, in <module>
    newClient.summarization_query("Please summarize original text")

  File "/usr/local/lib/python3.8/site-packages/libra/queries.py", line 961, in summarization_query
    self.models["summarization"] = summarization_query(

  File "/usr/local/lib/python3.8/site-packages/libra/query/nlp_queries.py", line 327, in summarization_query
    tokenizer = T5Tokenizer.from_pretrained("t5-small")

  File "/usr/local/lib/python3.8/site-packages/transformers/tokenization_utils.py", line 911, in from_pretrained
    return cls._from_pretrained(*inputs, **kwargs)

  File "/usr/local/lib/python3.8/site-packages/transformers/tokenization_utils.py", line 981, in _from_pretrained
    resolved_vocab_files[file_id] = cached_path(

  File "/usr/local/lib/python3.8/site-packages/transformers/file_utils.py", line 253, in cached_path
    output_path = get_from_cache(

  File "/usr/local/lib/python3.8/site-packages/transformers/file_utils.py", line 439, in get_from_cache
    http_get(url, temp_file, proxies=proxies, resume_size=resume_size, user_agent=user_agent)

  File "/usr/local/lib/python3.8/site-packages/transformers/file_utils.py", line 324, in http_get
    progress = tqdm(

  File "/usr/local/lib/python3.8/site-packages/tqdm/notebook.py", line 218, in __init__
    self.container = self.status_printer(

  File "/usr/local/lib/python3.8/site-packages/tqdm/notebook.py", line 96, in status_printer
    raise ImportError(

ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
@anas-awadalla
Copy link
Collaborator

anas-awadalla commented Aug 18, 2020

I see. Could you try to run the command below and retrying?

from ipywidgets import IntProgress

If ipywidgets is not found do:

pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension

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

2 participants