# Error in loading in jupyter lab

**URL:** <https://discuss.ai.google.dev/t/error-in-loading-in-jupyter-lab/31264>\
**Category:** TensorFlow\
**Tags:** help\_request\
**Created:** [August 14, 2023, 6:47am UTC](https://discuss.ai.google.dev/t/error-in-loading-in-jupyter-lab/31264 "2023-08-14T06:47:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atharv\_1](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/atharv_1/32/10501_2.png) [@Atharv\_1](https://discuss.ai.google.dev/u/Atharv_1)\
**Post date:** [August 14, 2023, 6:47am UTC](https://discuss.ai.google.dev/t/error-in-loading-in-jupyter-lab/31264/1 "2023-08-14T06:47:48Z")

</div>

wav=tfio.audio.resample(wav,rate\_in=sample\_rate,rate\_out=16000)

NotImplementedError Traceback (most recent call last)  
Cell In[61], line 1  
----\> 1 wav=tfio.audio.resample(wav,rate\_in=sample\_rate,rate\_out=16000)

File D:\Atharv\New\Lib\site-packages\tensorflow\_io\python\ops\audio\_ops.py:462, in resample(input, rate\_in, rate\_out, name)  
457 def f(i):  
458 return core\_ops.io\_audio\_resample(  
459 i, rate\_in=rate\_in, rate\_out=rate\_out, name=name  
460 )  
 → 462 value = tf.vectorized\_map(f, input)  
464 def g1():  
465 return tf.squeeze(value, [0, -1])

File D:\Atharv\New\Lib\site-packages\tensorflow\python\ops\parallel\_for\control\_flow\_ops.py:577, in vectorized\_map(fn, elems, fallback\_to\_while\_loop, warn)  
574 else:  
575 batch\_size = max(static\_first\_dims)  
 → 577 return pfor(  
578 loop\_fn,  
579 batch\_size,  
580 fallback\_to\_while\_loop=fallback\_to\_while\_loop,  
581 warn=warn)

File D:\Atharv\New\Lib\site-packages\tensorflow\python\ops\parallel\_for\control\_flow\_ops.py:227, in pfor(loop\_fn, iters, fallback\_to\_while\_loop, parallel\_iterations, warn)  
224 def\_function.run\_functions\_eagerly(False)  
225 f = def\_function.function(f)  
 → 227 outputs = f()  
228 if functions\_run\_eagerly is not None:  
229 def\_function.run\_functions\_eagerly(functions\_run\_eagerly)

File D:\Atharv\New\Lib\site-packages\tensorflow\python\util\traceback\_utils.py:153, in filter\_traceback..error\_handler(\*args, \*\*kwargs)  
151 except Exception as e:  
152 filtered\_tb = \_process\_traceback\_frames(e. **traceback** )  
 → 153 raise e.with\_traceback(filtered\_tb) from None  
154 finally:  
155 del filtered\_tb

File ~\AppData\Local\Temp\__autograph\_generated\_filegwwmwv6n.py:17, in outer\_factory..inner\_factory..tf\_\_f()  
15 try:  
16 do\_return = True  
—\> 17 retval_ = ag\_\_.converted\_call(ag\_\_.ld(_pfor\_impl), (ag_\_.ld(loop\_fn), ag\_\_.ld(iters)), dict(fallback\_to\_while\_loop=ag\_\_.ld(fallback\_to\_while\_loop), parallel\_iterations=ag\_\_.ld(parallel\_iterations), warn=ag\_\_.ld(warn)), fscope)  
18 except:  
19 do\_return = False

File D:\Atharv\New\Lib\site-packages\tensorflow\_io\python\ops\audio\_ops.py:458, in resample..f(i)  
457 def f(i):  
 → 458 return core\_ops.io\_audio\_resample(  
459 i, rate\_in=rate\_in, rate\_out=rate\_out, name=name  
460 )

File D:\Atharv\New\Lib\site-packages\tensorflow\_io\python\ops\__init_\_.py:88, in LazyLoader. **getattr** (self, attrb)  
87 def **getattr** (self, attrb):  
—\> 88 return getattr(self.\_load(), attrb)

File D:\Atharv\New\Lib\site-packages\tensorflow\_io\python\ops\__init_\_.py:84, in LazyLoader.\_load(self)  
82 def \_load(self):  
83 if self.\_mod is None:  
—\> 84 self.\_mod = \_load\_library(self.\_library)  
85 return self.\_mod

File D:\Atharv\New\Lib\site-packages\tensorflow\_io\python\ops\__init_\_.py:69, in \_load\_library(filename, lib)  
67 except (tf.errors.NotFoundError, OSError) as e:  
68 errs.append(str(e))  
—\> 69 raise NotImplementedError(  
70 “unable to open file: "  
71 + f”{filename}, from paths: {filenames}\ncaused by: {errs}"  
72 )

NotImplementedError: in user code:

```
File "D:\Atharv\New\Lib\site-packages\tensorflow_io\python\ops\audio_ops.py", line 458, in f
    return core_ops.io_audio_resample(
File "D:\Atharv\New\Lib\site-packages\tensorflow_io\python\ops\ __init__.py", line 88, in __getattr__
    return getattr(self._load(), attrb)
File "D:\Atharv\New\Lib\site-packages\tensorflow_io\python\ops\ __init__.py", line 84, in _load
    self._mod = _load_library(self._library)
File "D:\Atharv\New\Lib\site-packages\tensorflow_io\python\ops\ __init__.py", line 69, in _load_library
    raise NotImplementedError(

NotImplementedError: unable to open file: libtensorflow_io.so, from paths: ['D:\\Atharv\\New\\Lib\\site-packages\\tensorflow_io\\python\\ops\\libtensorflow_io.so']
caused by: ['D:\\Atharv\\New\\Lib\\site-packages\\tensorflow_io\\python\\ops\\libtensorflow_io.so not found']

```

Jupyter notebook is showing this error please anyone help to resolve it

---

<div class="post-metadata">

**Author:** ![Tanya](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@Tanya](https://discuss.ai.google.dev/u/Tanya)\
**Post date:** [August 14, 2023, 5:35pm UTC](https://discuss.ai.google.dev/t/error-in-loading-in-jupyter-lab/31264/3 "2023-08-14T17:35:09Z")

</div>

Hi @Atharv  
Welcome to Tensorflow Forum !

To fix the error, you can try uninstalling TensorFlow and TensorFlow IO from pip and then reinstalling them. To do this, run the following commands:

`pip uninstall tensorflow`  
`pip uninstall tensorflow-io`  
`pip install tensorflow-gpu`  
`pip install --no-deps tensorflow-io`

Let us know if this fix the problem.

---

<div class="post-metadata">

**Author:** ![tagoma](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/tagoma/32/19434_2.png) [@tagoma](https://discuss.ai.google.dev/u/tagoma)\
**Post date:** [August 19, 2023, 2:49pm UTC](https://discuss.ai.google.dev/t/error-in-loading-in-jupyter-lab/31264/5 "2023-08-19T14:49:38Z")

</div>

Maybe before un-installing / re-installing different packages, you want to make sure the version of TensorFlow I/O you picked is compatible with your version installed of Tensorflow. One can find the list of TensorFlow I/O - Tensorflow compatibilities [here](https://github.com/tensorflow/io#tensorflow-version-compatibility)
