# VisibleDeperecationWarning on Ubuntu

**URL:** <https://forum.rasa.com/t/visibledeperecationwarning-on-ubuntu/43329>\
**Category:** Rasa Open Source\
**Created:** [May 7, 2021, 1:21pm UTC](https://forum.rasa.com/t/visibledeperecationwarning-on-ubuntu/43329 "2021-05-07T13:21:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![philip](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/philip/32/14707_2.png) [@philip](https://forum.rasa.com/u/philip)\
**Post date:** [May 7, 2021, 1:21pm UTC](https://forum.rasa.com/t/visibledeperecationwarning-on-ubuntu/43329/1 "2021-05-07T13:21:45Z")

</div>

I did a clean install of rasa on ubuntu and I cannot train the sample model. rasa init works but only if I choose not to train the model. When I choose to train the model I get the warning, `VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated`

and then a tensor flow error

```
/usr/local/lib/python3.8/dist-packages/tensorflow/python/framework/ops.py:845 __array__
        raise NotImplementedError(
    NotImplementedError: Cannot convert a symbolic Tensor (strided_slice_6:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported

```

My system is as follows; `Rasa Version : 2.5.1 Minimum Compatible Version: 2.2.0a1 Rasa SDK Version : 2.5.0 Rasa X Version : None Python Version : 3.8.5 Operating System : Linux-5.8.0-50-generic-x86_64-with-glibc2.29 Python Path : /usr/bin/python3`

---

<div class="post-metadata">

**Author:** ![amn41](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/amn41/32/20_2.png) [@amn41](https://forum.rasa.com/u/amn41)\
**Post date:** [May 10, 2021, 12:07pm UTC](https://forum.rasa.com/t/visibledeperecationwarning-on-ubuntu/43329/2 "2021-05-10T12:07:19Z")

</div>

hi @philip - It looks like tensorflow raised this error. Which tensorflow version are you running?

---

<div class="post-metadata">

**Author:** ![philip](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/philip/32/14707_2.png) [@philip](https://forum.rasa.com/u/philip)\
**Post date:** [May 10, 2021, 1:00pm UTC](https://forum.rasa.com/t/visibledeperecationwarning-on-ubuntu/43329/3 "2021-05-10T13:00:16Z")

</div>

Hi, I didnt install tensorflow. It seemed to come with the rasa install. Looks like 2.3.2

```
python3 -c 'import tensorflow as tf;print(tf.version.VERSION)'
2021-05-10 13:59:26.246762: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory
2021-05-10 13:59:26.246799: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2.3.2

```

I installed rasa with pip3 `sudo pip3 install rasa`

---

<div class="post-metadata">

**Author:** ![philip](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/philip/32/14707_2.png) [@philip](https://forum.rasa.com/u/philip)\
**Post date:** [May 15, 2021, 10:15am UTC](https://forum.rasa.com/t/visibledeperecationwarning-on-ubuntu/43329/4 "2021-05-15T10:15:33Z")

</div>

@amn41 what should I do from here? I can uninstall rasa and start again from scratch. Do you have a build which you know will work on Ubuntu to train an initial model ? thanks Philip

---

<div class="post-metadata">

**Author:** ![philip](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/philip/32/14707_2.png) [@philip](https://forum.rasa.com/u/philip)\
**Post date:** [May 15, 2021, 10:44am UTC](https://forum.rasa.com/t/visibledeperecationwarning-on-ubuntu/43329/5 "2021-05-15T10:44:46Z")

</div>

@amn41 OK, good news. 👍 I uninstalled everything including any tensorflow libraries I could find. I then created a virtual python enviroment and installed rasa there. This worked as per your steps here,

> **[Installation](https://rasa.com/docs/rasa/installation/#2-virtual-environment-setup)**
>
> Install Rasa Open Source on premises to enable local and customizable Natural Language Understanding and Dialogue Management.
