# not able to import dispay module

**URL:** <https://forum.ansible.com/t/not-able-to-import-dispay-module/21214>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [April 20, 2016, 4:35am UTC](https://forum.ansible.com/t/not-able-to-import-dispay-module/21214 "2016-04-20T04:35:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![prakul\_singhal](https://avatars.discourse-cdn.com/v4/letter/p/5f9b8f/32.png) [@prakul\_singhal](https://forum.ansible.com/u/prakul_singhal)\
**Post date:** [April 20, 2016, 4:35am UTC](https://forum.ansible.com/t/not-able-to-import-dispay-module/21214/1 "2016-04-20T04:35:05Z")

</div>

Hi,

I develop a security module for adding firewall rules irrespective of OS centos 6/centos7 or Ubuntu.But for ubuntu user i am try to give some warning using " from ansible.utils.display import Display" module in ansible-2.0. But on running the module using ansible I am getting below error:  
from ansible.utils.display import Display\r\nImportError: No module named ansible.utils.display\r\n", “parsed”: false}

Whereas I am able to import and display warning in python directly:

Python 2.7.5 (default, Jun 24 2015, 00:41:19)  
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2  
Type “help”, “copyright”, “credits” or “license” for more information.

> > > from ansible.utils.display import Display  
> > > d=Display()  
> > > d.warning(“hi”)  
> > > [WARNING]: hi

Can anyone know the issue, so that I can add the warning in my module.  
thanks in advance for Quick help
