Hi Matt, 

Could be the case however, we are running all the files locally. It should 
be using the same compiler that we used to build .pyo files. 



On Wednesday, February 15, 2017 at 12:27:03 PM UTC-8, Matt Clay wrote:
>
> Poojithaa,
>
> You're probably encountering the error here: 
> https://github.com/ansible/ansible/blob/devel/lib/ansible/executor/module_common.py#L512
>
> Due to possible version differences between the python version used to 
> compile the module and the python version on the remote system which will 
> execute the module, modules must be available as source.
>
>  - Matt
>
> On Wednesday, February 15, 2017 at 4:19:07 AM UTC-8, Poojitha A wrote:
>>
>> Hi Guys.
>>
>> currently we are shipping our code as .pyo to ensure a minimal security 
>> to our python code base. I wanted to know if passing the 
>> module_path='library_path' where the library path has
>>
>> .pyo files instead of .py files work, since I was getting an error saying 
>> module not found. 
>>
>> Can someone please comment on this? 
>>
>>
>> Thanks
>> Poojithaa
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d7e7efdb-1278-4750-83c2-319abb991fac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to