Hello,

Thank you Martin,
Finally I can execute my app by adding the following files:

 
datas=[("/myapp/path/to/.venv/lib/python3.7/site-packages/ansible/config/base.yml",
 
"ansible/config"),
 
("/myapp/path/to/.venv/lib/python3.7/site-packages/ansible/config/module_defaults.yml",
 
"ansible/config"),
 ("/myapp/path/to/.venv/lib/python3.7/site-packages/ansible/plugins/inventory", 
"ansible/plugins/inventory"),
 ("/myapp/path/to/.venv/lib/python3.7/site-packages/ansible/utils/shlex.py", 
"ansible/utils")]




2019年4月3日水曜日 20時34分48秒 UTC+9 Martin Z:
>
> Hi, 
>
> you probably need to bundle some data files with your built app. Look here 
> for more info:
>
> - 
> https://pyinstaller.readthedocs.io/en/stable/spec-files.html#adding-files-to-the-bundle
> - 
> https://github.com/pyinstaller/pyinstaller/wiki/Recipe-Collect-Data-Files
>
> On Wed, Apr 3, 2019 at 11:13 AM Hokuto Kagaya <[email protected] 
> <javascript:>> wrote:
>
>> I'd like to use Ansible's python API within my app built by PyInstaller.
>> However, we faced the runtime error below:
>>
>> ansible.errors.AnsibleError: Missing base YAML definition file (bad 
>> install?): /path/to/ansible/config/base.yml
>>
>> It seems that this yaml file is included in ansible library package.
>> Are there any workarounds?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "PyInstaller" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/pyinstaller.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" 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].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.

Reply via email to