Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query on installation process #74

Closed
solveryn91 opened this issue Feb 11, 2021 · 5 comments
Closed

Query on installation process #74

solveryn91 opened this issue Feb 11, 2021 · 5 comments
Assignees

Comments

@solveryn91
Copy link

Hi, i am interested with this framework to be installed for educational purposes but I am not experienced in Linux. I am currently installing on a Ubuntu 20.04 LTS in VirtualBox, as in allinone_dev.

My installation process came to a halt when I attempted to run the following command:

python3 irma-ansible.py environments/allinone_dev.yml playbooks/playbook.yml

install_log.txt

Attached with an install log where the error indicates, and I would like to know how to resolve it.

Thank you.

@ch0k0bn ch0k0bn self-assigned this Feb 11, 2021
@ch0k0bn
Copy link

ch0k0bn commented Feb 11, 2021

Need to investigate this issue, I reproduced it also locally. I guess at the time of v2 we were mainly using python2 for ansible and the different behaviour comes from here, now we are using python3 but with a different version of Ansible (2.8.12 now vs 2.7.12).

As a temporary workaround, could you try using python2 for the irma-ansible command ?

Btw I just added a fix in master for a deprecated url for get-pip.

@solveryn91
Copy link
Author

solveryn91 commented Feb 11, 2021

Thanks for the reply.

So yea I ran with python2 after obtaining the fix , hinted me with missing libraries. Had yaml settled. Then something shown up:

ImportError: No module named ansible.cli.galaxy

Ansible version as below:

ansible 2.7.12
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/irma/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/irma/.local/lib/python3.8/site-packages/ansible
executable location = /home/irma/.local/bin/ansible
python version = 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]

So far checked with pip install ansible, hinted me that installation requirements already satisfied. Not sure if it was a part from ansible, or current ansible running with python3.

@ch0k0bn
Copy link

ch0k0bn commented Feb 12, 2021

Could you try inside a python2 virtualenv:

# if needed
$ sudo apt install virtualenv
# create a python2 venv
$ virtualenv -p python2 venv
# activate it
$ source venv2/bin/activate
# install dependencies
$ cd <irma_folder>/ansible
$ pip install -r requirements.txt
# Then launch install
$ python irma-ansible.py environments/allinone_dev.yml playbooks/playbook.yml

@solveryn91
Copy link
Author

Allrite installing as intended, cheers :)
The installation went hours so far no problem.

@ch0k0bn
Copy link

ch0k0bn commented Feb 12, 2021

good to know! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants