PyInstallers with Ansible Python API

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

PyInstallers with Ansible Python API

Hokuto Kagaya
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: PyInstallers with Ansible Python API

Martin Zibricky

On Wed, Apr 3, 2019 at 11:13 AM Hokuto Kagaya <[hidden email]> 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 [hidden email].
To post to this group, send email to [hidden email].
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: PyInstallers with Ansible Python API

Hokuto Kagaya
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:

- <a href="https://pyinstaller.readthedocs.io/en/stable/spec-files.html#adding-files-to-the-bundle" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fpyinstaller.readthedocs.io%2Fen%2Fstable%2Fspec-files.html%23adding-files-to-the-bundle\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFmctXIrhn9dkTK9dwRHmmGA46Htg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fpyinstaller.readthedocs.io%2Fen%2Fstable%2Fspec-files.html%23adding-files-to-the-bundle\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFmctXIrhn9dkTK9dwRHmmGA46Htg&#39;;return true;">https://pyinstaller.readthedocs.io/en/stable/spec-files.html#adding-files-to-the-bundle
- <a href="https://github.com/pyinstaller/pyinstaller/wiki/Recipe-Collect-Data-Files" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpyinstaller%2Fpyinstaller%2Fwiki%2FRecipe-Collect-Data-Files\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFjpL1shAW5Gvr1lJEckgjK29AR2Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpyinstaller%2Fpyinstaller%2Fwiki%2FRecipe-Collect-Data-Files\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFjpL1shAW5Gvr1lJEckgjK29AR2Q&#39;;return true;">https://github.com/pyinstaller/pyinstaller/wiki/Recipe-Collect-Data-Files

On Wed, Apr 3, 2019 at 11:13 AM Hokuto Kagaya <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="9gPuNordBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">kgy...@...> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="9gPuNordBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">pyins...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="9gPuNordBgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">pyins...@....
Visit this group at <a href="https://groups.google.com/group/pyinstaller" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/group/pyinstaller&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/group/pyinstaller&#39;;return true;">https://groups.google.com/group/pyinstaller.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/pyinstaller.
For more options, visit https://groups.google.com/d/optout.