dlinknctu / OpenNet

A Simulator for Software-Defined Wireless Local Area Network
GNU General Public License v2.0
72 stars 44 forks source link

Pycrypto Causing Ansible Installation to Fail #134

Open MrRussLuther opened 5 years ago

MrRussLuther commented 5 years ago

Hello, I seem to be running into an issue every time I try to install your software when cloning ansible

in your ./install.sh script the function Install_Ansible dosen't work anymore

apt-get install python-setuptools

    easy_install pip

    cd ..

    git clone https://github.com/ansible/ansible.git

    cd ansible

    git checkout v2.3.2.0-1

    pip install -r ./requirements.txt

    source ./hacking/env-setup

Because one of the Requirements for Ansible version 2.3.2.0-1 is pycrypto. Unfortunately this package is no longer supported (last updated in 2013), and so throws an error when trying to install. The fix for this is easy, the package pycryptodome picked up support for pycrypto and uses the same commands / functionality.

This means to fix this problem, you need to:

install ansible v2.3.2.0-1

modify requirements.txt and replace pycrypto with pycryptodome

modify the ./install.sh script of OpenNet to remove the two git commands (clone and checkout)

and run the ./install.sh script to install opennet

Hope this helps anyone who wants to use this software, I just finished a Final Project using it and this took me an hr or two to find out.

If anyone is maintaining this repo I'd be more than happy to help you merge a change to fix this