PyInstaller is a program that goes through your Python code and finds all the dependencies and creates a folder or file that you can distribute. This file can be run on other computers without the need to install anything.
My program runs on Ubuntu. It calls Ansible-playbook I think my problem is that PyInstaller misses Ansible plug-ins because they get hooked up by Python code instead of imports. When I transfer my PyInstaller generated application to another computer and run it, I get: File "<string>", line 555, in runUpdate File "/home/dfr/projects/m9kupdate/py/build/top/out00-PYZ.pyz/ansible.inventory", line 141, in __init__ File "/home/dfr/projects/m9kupdate/py/build/top/out00-PYZ.pyz/ansible.utils.plugins", line 186, in all File "/home/dfr/projects/m9kupdate/py/build/top/out00-PYZ.pyz/ansible.utils.plugins", line 123, in _get_paths File "/home/dfr/projects/m9kupdate/py/build/top/out00-PYZ.pyz/ansible.utils.plugins", line 85, in _get_package_paths ImportError: No module named vars_plugins Has anyone been through this? Can some of you more experienced people give me a hint of what to do? You can specify to PyInstaller the name of files that it misses, for example: pyinstaller.py* --hidden-import=callbackModule.py* top.py Thanks, Todd -- 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/be582c0c-e650-43dd-a676-60c4b93a6d3e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
