# Illegal instruction(core dumped)

**URL:** <https://forum.rasa.com/t/illegal-instruction-core-dumped/30516>\
**Category:** Rasa Open Source\
**Created:** [June 22, 2020, 9:40pm UTC](https://forum.rasa.com/t/illegal-instruction-core-dumped/30516 "2020-06-22T21:40:25Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sou90](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sou90](https://forum.rasa.com/u/Sou90)\
**Post date:** [June 22, 2020, 9:40pm UTC](https://forum.rasa.com/t/illegal-instruction-core-dumped/30516/1 "2020-06-22T21:40:25Z")

</div>

hi, i downloaded a virtual machine which contains rasa and rasa x. but when i tape any command it gives me this error. can any one help??

 ![Capture d’écran 2020-06-22 à 22.15.17](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/5/5e6845abb6193dde1eaf922ea619fd6e4554ec2f.jpeg)

---

<div class="post-metadata">

**Author:** ![MuraliChandran14](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/muralichandran14/32/9120_2.png) [@MuraliChandran14](https://forum.rasa.com/u/MuraliChandran14)\
**Post date:** [June 23, 2020, 4:34am UTC](https://forum.rasa.com/t/illegal-instruction-core-dumped/30516/2 "2020-06-23T04:34:05Z")

</div>

@Sou90, The problem is related to tensorflow

can you run

`python -m tensorflow`

and see you are getting same error `Illegal instruction` and also can you check your tensorflow version you are using and share it here.

---

<div class="post-metadata">

**Author:** ![Sou90](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sou90](https://forum.rasa.com/u/Sou90)\
**Post date:** [June 23, 2020, 10:29am UTC](https://forum.rasa.com/t/illegal-instruction-core-dumped/30516/3 "2020-06-23T10:29:09Z")

</div>

@MuraliChandran14

 ![rasa-x](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/d/d0619b2e0203a5d1dda07a8f86751acce83c8993.png)  
 ![tensorflow version](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/6/66a37a258dbba845ef34e62d2ed8f07e41b0b597.png)

---

<div class="post-metadata">

**Author:** ![MuraliChandran14](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/muralichandran14/32/9120_2.png) [@MuraliChandran14](https://forum.rasa.com/u/MuraliChandran14)\
**Post date:** [June 23, 2020, 1:15pm UTC](https://forum.rasa.com/t/illegal-instruction-core-dumped/30516/4 "2020-06-23T13:15:03Z")

</div>

@Sou90,

You can downgrade your tensorflow to

`pip install tensorflow==1.5.0`

or

`the other option is to compile the binaries from source. The precompiled binaries of versions >1.5`.

[Stackoverflow](https://stackoverflow.com/questions/49092527/illegal-instructioncore-dumped-tensorflow) reference

---

<div class="post-metadata">

**Author:** ![Sou90](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sou90](https://forum.rasa.com/u/Sou90)\
**Post date:** [June 23, 2020, 1:26pm UTC](https://forum.rasa.com/t/illegal-instruction-core-dumped/30516/5 "2020-06-23T13:26:39Z")

</div>

@MuraliChandran14 it will preserve my project on rasa?? because everything was working fine in another machine, while i imported the vm into another machine I encountered this problem. I will try this, i hope it will work

---

<div class="post-metadata">

**Author:** ![MuraliChandran14](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/muralichandran14/32/9120_2.png) [@MuraliChandran14](https://forum.rasa.com/u/MuraliChandran14)\
**Post date:** [June 23, 2020, 1:45pm UTC](https://forum.rasa.com/t/illegal-instruction-core-dumped/30516/6 "2020-06-23T13:45:42Z")

</div>

@Sou90, If you are using Older CPU, AVX instruction does not support, That’s why we have to downgrade tensorflow to minimum and check if its working or not.

---

<div class="post-metadata">

**Author:** ![Sou90](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sou90](https://forum.rasa.com/u/Sou90)\
**Post date:** [June 23, 2020, 2:09pm UTC](https://forum.rasa.com/t/illegal-instruction-core-dumped/30516/7 "2020-06-23T14:09:47Z")

</div>

@MuraliChandran14

 ![rasa-x_2](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/c/c99b03f03edee7190ca69b195bc47d48b12e05c5.png)

---

<div class="post-metadata">

**Author:** ![MuraliChandran14](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/muralichandran14/32/9120_2.png) [@MuraliChandran14](https://forum.rasa.com/u/MuraliChandran14)\
**Post date:** [June 23, 2020, 3:41pm UTC](https://forum.rasa.com/t/illegal-instruction-core-dumped/30516/8 "2020-06-23T15:41:38Z")

</div>

@Sou90 update your tensorflow to `pip install tensorflow==1.15.0`. I just checked in my PC using venv and it worked.

---

<div class="post-metadata">

**Author:** ![Sou90](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sou90](https://forum.rasa.com/u/Sou90)\
**Post date:** [June 23, 2020, 9:15pm UTC](https://forum.rasa.com/t/illegal-instruction-core-dumped/30516/9 "2020-06-23T21:15:43Z")

</div>

@MuraliChandran14 i did and it gives me the same error AttributeError: module ‘tensorflow.python.util.compat’ has no attribute ‘v1’

---

<div class="post-metadata">

**Author:** ![MuraliChandran14](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/muralichandran14/32/9120_2.png) [@MuraliChandran14](https://forum.rasa.com/u/MuraliChandran14)\
**Post date:** [June 24, 2020, 11:17am UTC](https://forum.rasa.com/t/illegal-instruction-core-dumped/30516/10 "2020-06-24T11:17:23Z")

</div>

@erohmensing,

Need your help.

@Sou90 here is using `Ubuntu`. First he had` tensorflow 2.1.0` and got the `Illegal Instruction(core dumped) error`.

I told him to downgrade tensorflow to `1.15.0` because his CPU not supporting` AVX instruction`. Once he installed `tensorflow 1.15.0`. He is getting this error `AttributeError: module ‘tensorflow.python.util.compat’ has no attribute ‘v1’`.

` tf.compat.v1.logging` are supported in` tensorflow 2` right and now he is using `tensorflow 1.15.0`, Is it good idea to change `tf.compat.v1.logging` to `tf.logging` in `utlis\common.py`, because of the older version tensorflow he installed on his CPU.

From my side, I created `venv` and tested `tensorflow 1.5.0`, I had the same problem and changed the `tf.compat.v1.logging` to `tf.logging` in `utlis\common.py` and it worked fine.

Is there any other solution apart from `compile the tensorflow binaries from source`.?.

It would be really helpful for him, If you guide him on this issue.

---

<div class="post-metadata">

**Author:** ![Sou90](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sou90](https://forum.rasa.com/u/Sou90)\
**Post date:** [June 24, 2020, 11:46am UTC](https://forum.rasa.com/t/illegal-instruction-core-dumped/30516/11 "2020-06-24T11:46:26Z")

</div>

@erohmensing can you help me please, this project must be completed before the 26/06@MuraliChandran14 i have a question, when i upgrade tensorflow does it require to reinstall or to upgrade rasa and rasa rasa x too?? it will not cause a problem,??

You changed these lines??

import tensorflow as tf

```
log_level = os.environ.get(ENV_LOG_LEVEL_LIBRARIES, DEFAULT_LOG_LEVEL_LIBRARIES)

if log_level == "DEBUG":
    tf_log_level = tf.compat.v1.logging.DEBUG
elif log_level == "INFO":
    tf_log_level = tf.compat.v1.logging.INFO
elif log_level == "WARNING":
    tf_log_level = tf.compat.v1.logging.WARN
else:
    tf_log_level = tf.compat.v1.logging.ERROR

tf.compat.v1.logging.set_verbosity(tf_log_level)
logging.getLogger("tensorflow").propagate = False
```

---

<div class="post-metadata">

**Author:** ![MuraliChandran14](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/muralichandran14/32/9120_2.png) [@MuraliChandran14](https://forum.rasa.com/u/MuraliChandran14)\
**Post date:** [June 24, 2020, 2:29pm UTC](https://forum.rasa.com/t/illegal-instruction-core-dumped/30516/12 "2020-06-24T14:29:46Z")

</div>

> [@Sou90](#):
>
> when i upgrade tensorflow does it require to reinstall or to upgrade rasa and rasa rasa x too

No need to upgrade.

> [@Sou90](#):
>
> ```auto
> log_level = os.environ.get(ENV_LOG_LEVEL_LIBRARIES, DEFAULT_LOG_LEVEL_LIBRARIES)
> 
> if log_level == "DEBUG":
> tf_log_level = tf.compat.v1.logging.DEBUG
> elif log_level == "INFO":
> tf_log_level = tf.compat.v1.logging.INFO
> elif log_level == "WARNING":
> tf_log_level = tf.compat.v1.logging.WARN
> else:
> tf_log_level = tf.compat.v1.logging.ERROR
> 
> tf.compat.v1.logging.set_verbosity(tf_log_level)
> logging.getLogger("tensorflow").propagate = False
> 
> ```

Yes, I changed it to `tf.logging` to the part where I got `attribute error`

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/e/eb27460ad8e38e1a239c4fba85d8e2fd9559eb9b.png)

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [June 25, 2020, 10:48am UTC](https://forum.rasa.com/t/illegal-instruction-core-dumped/30516/13 "2020-06-25T10:48:12Z")

</div>

Hi guys,

Each version of rasa has specific tensorflow versions that are compatible with it. Downgrading to 1.15.0 will likely make you run into issues as much of the code had to be updated to support tensorflow 2.0.

If you need to use tensorflow 1.15.0, I’d recommend downgrading to rasa 1.7.4 and [therefore](https://rasa.com/docs/rasa-x/changelog/compatibility-matrix/) rasa x 0.25.3.

---

<div class="post-metadata">

**Author:** ![Sou90](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@Sou90](https://forum.rasa.com/u/Sou90)\
**Post date:** [June 25, 2020, 12:28pm UTC](https://forum.rasa.com/t/illegal-instruction-core-dumped/30516/14 "2020-06-25T12:28:07Z")

</div>

@erohmensing @MuraliChandran14 it didn’t work. any way thanks for your help
