question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]: IProgress not found. Please update jupyter & ipywidgets

See original GitHub issue

#359 Summary of the bug I am running the tutorials found here - Mapping vehicles & Tiling tutorial

And the code is breaking whenever the tqdm module is called (to show the status bar)!

Steps to reproduce the bug

I am running the mapping cars tutorial & the Tiling tutorial. (Links given above) For the car mapping tutorial the code breaks here -

The error occurs on the following line: trainer = sol.nets.train.Trainer(config)

For the Tiling tutorial the code breaks here -

raster_bounds_crs = raster_tiler.tile('/path/to/raster/file/3band/PS-RGB_mosaic_013022223133.tif')

Buggy behavior and/or error message

The error log had the following: Exception ignored in: <function tqdm.__del__ at 0x7fe617c33290> Traceback (most recent call last): File "/opt/conda/envs/solaris/lib/python3.7/site-packages/tqdm/std.py", line 1087, in __del__ self.close() File "/opt/conda/envs/solaris/lib/python3.7/site-packages/tqdm/notebook.py", line 247, in close self.sp(bar_style='success') AttributeError: 'tqdm_notebook' object has no attribute 'sp'

followed by -

ImportError: IProgress not found. Please update jupyter and ipywidgets.......

Expected behavior

Model should be downloaded, without any issues.

Environment information

  • OS: GNU-Linux, GCP Deep Learning Platform with TF2.1 pre-installed
  • solaris version: 0.3.0
  • python version: 3.7.6
  • tqdm: 4.48.0 I am using Jupyterlab on a GCP VM

Additional context

Hardware: N1 4vCPUs, 15GB RAM (GCP) NVidia Tesla T4

I get the above error while running the following notebook https://github.com/jshermeyer/solaris_cowc/blob/master/map_vehicles_cowc.ipynb

I first got the error while downloading the VGG16 pre-trained weights. So I downloaded the model and then copied it to the required directory. And then again ran the training code. However then I got the error while it was downloading the SpaceNet model weights.

While downloading the weights the error occurs for the status bar. from the get_model >> download_model module.

The same error re-occurred when I was running the Tiling tutorial

Again while running the tqdm module.

I have tried the steps as given in the following SF answer

  • re-installing ipywidgets
  • and enabling widget extensions

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

31reactions
PingHGaocommented, Jan 13, 2021

i meet same the error on my juptyer notebook (using docker). i resolve it by changing the notebook dir. if you run jupyter notebook using root dir, using the --notebook-dir to change the dir may help you.

Sir, my dir is the Desktop. But I meet the same error.

I solved this by chaging

from tqdm.notebook import tqdm as tqdm

to

from tqdm import tqdm

solved this

8reactions
DavidJohn197749commented, Oct 23, 2020

i meet same the error on my juptyer notebook (using docker). i resolve it by changing the notebook dir. if you run jupyter notebook using root dir, using the --notebook-dir to change the dir may help you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IProgress not found. Please update jupyter and ipywidgets ...
I tried everything you mentioned in a new environment using conda and I had another issue related to the version of ipywidgets (a...
Read more >
IProgress not found. Please update jupyter and ipywidgets ...
I am using tqdm() module in my code and am getting the following error: for mu, s in tqdm( ... has no attribute...
Read more >
IProgress not found. Please update jupyter and ipywidgets ...
Answer a question I am using jupyter notebook and installed ipywidgets==7.4.2 widgetsnbextension pandas-profiling=='.0.0 and also I ran: ...
Read more >
tqdm call causes ImportError - Q&A | Deepnote Community
I am running a project where the library calls tqdm to display download progress. ... `ImportError: IProgress not found. Please update jupyter and...
Read more >
IProgress not found. Please update jupyter and ... - 博客园
IProgress not found. Please update jupyter and ipywidgets.解决办法最近使用Jupyter的时候出现了如下的报错信息ImportError:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found