# Developing Windows modules: module is missing interpreter line

**URL:** <https://forum.ansible.com/t/developing-windows-modules-module-is-missing-interpreter-line/15730>\
**Category:** Ansible Developer\
**Tags:** windows\
**Created:** [July 21, 2014, 11:42pm UTC](https://forum.ansible.com/t/developing-windows-modules-module-is-missing-interpreter-line/15730 "2014-07-21T23:42:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [July 21, 2014, 11:42pm UTC](https://forum.ansible.com/t/developing-windows-modules-module-is-missing-interpreter-line/15730/1 "2014-07-21T23:42:58Z")

</div>

Hi all,  
From time to time I’m getting this strange error:  
“module is missing interpreter line”. I’m developing several windows modules which i drop into library/windows. When I execute a playbook including the newly created module, I get that strange error.

I’ve compared my files to the ones included in the devel branch, and cannot find any differences. If I navigate to where Ansible drops the files along with the arguments file in the filesystem and execute them, they run succesfully, outputting json data.

How can I troubleshoot this? I’ve included a test module just in case anyone finds that interesting.

[![](https://us1.discourse-cdn.com/ansible/original/2X/d/d80f1dd2cecc34fcb24c004e4b091b6e71882557.png)](https://forum.ansible.com/uploads/short-url/uPlwh34RJ4kzksgrwaDPOjkxAVx.png)

> **(attachments)**
>
> [win\_chocolatey.ps1](https://forum.ansible.com/uploads/short-url/ApTZvmL1OqeYDXKBAZsnmNSNIH2.ps1) (1.67 KB)

---

<div class="post-metadata">

**Author:** ![Chris\_Church1](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@Chris\_Church1](https://forum.ansible.com/u/Chris_Church1)\
**Post date:** [July 22, 2014, 12:00am UTC](https://forum.ansible.com/t/developing-windows-modules-module-is-missing-interpreter-line/15730/2 "2014-07-22T00:00:21Z")

</div>

The file you attached has the UTF-8 byte order mark at the beginning (0xef,  
0xbb, 0xbf), which may have been added automatically by your editor on  
Windows. Ansible isn't expecting it and therefore fails to find the  
shebang line at the beginning of the file.

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [July 22, 2014, 9:24am UTC](https://forum.ansible.com/t/developing-windows-modules-module-is-missing-interpreter-line/15730/3 "2014-07-22T09:24:47Z")

</div>

That was it. Thanks!

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [July 22, 2014, 12:17pm UTC](https://forum.ansible.com/t/developing-windows-modules-module-is-missing-interpreter-line/15730/4 "2014-07-22T12:17:27Z")

</div>

Nice find Chris!

I’m guessing we could modify our interpreter check to ignore those things.
