#AQoPA
Automated Quality of Protection Analysis tool of QoP-ML models. AQoPA is available in two modes: console and GUI mode.
Instruction for pip and virtualenv users is below.
##INSTRUCTIONS FOR GNU/LINUX
Instalation steps for GNU/Linux (Debian, Ubuntu)
- Install Python 2.7
sudo apt-get install python
- Install wxPython 2.8
sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n
- Install pythpn PLY package
sudo apt-get install python-ply
- Download and extract AQoPA from http://qopml.org/aqopa/
Instalation steps for GNU/Linux (CentOS, Fedora, OpenSUSE, RedHat)
- Install Python 2.7
yum install python
- Download and install wxPython 2.8 from http://www.wxpython.org/download.php
- Install pythpn PLY package
yum install python-ply
- Download and extract AQoPA from http://qopml.org/aqopa/
####GNU/Linux GUI version: python bin/aqopa-gui
####GNU/Linux console version: python bin/aqopa-console
Run 'python bin/aqopa-console -h' to see all available options.
##INSTRUCTIONS FOR MICROSOFT WINDOWS
Tested on Windows 7.
- Download and install Python 2.7 from http://www.python.org/download/releases/2.7.6/ (Python will be installed into "C:\Python27" directory by default.)
- Add Python directory to environment variable PATH:
- Open command line as Administrator: Start > cmd (mouse right-click -> Run as Administrator)
- Run
wmic ENVIRONMENT where "name='Path' and username='<%USERNAME%>'" set VariableValue="%Path%;C:\Python27\"
- Restart Windows
- Download and install wxPython 2.8 from http://www.wxpython.org/download.php#stable
- Download and extract python PLY 3.4 package from http://www.dabeaz.com/ply/
- Install PLY 3.4:
- Open command line: Start > cmd
- Go to extracted directory with ply-3.4
- Run
python setup.py install
- Download and extract AQoPA from website: http://qopml.org/aqopa/
- Go to extracted AQoPA directory.
- Double click aqopa-gui
- Open command line: Start > cmd
- Go to extracted AQoPA directory.
- Run python bin/aqopa-console -h to see all available options.
- Install PIP
sudo apt-get install python-pip
- Install PLY 3.4 using pip
sudo pip install PLY
- Install AQoPA using pip
sudo pip install AQoPA
- Install wxPython 2.8
sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n
####Installing wxPython with virtualenv: When using virtualenv the wxPython package may not be installed in the virtual environment. It is installed into the global python environment. In order to make wxPython visible in virtual environment you need to create wx files in your virtual environment.
We assume that using apt-get the wxPython package has been installed in "/usr/lib/python2.7/dist-packages/" directory and the content of wx.pth file is "wx-2.8-gtk2-unicode". Otherwise, you have to find out where is wx.pth file and check its content.
- Install wxPython 2.8
sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n
- Update wxPython paths. Replace with the path of virtualenv you have created:
echo "/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode" > <virtual_env_path>/lib/python2.7/site-packages/wx.pth
ln -s /usr/lib/python2.7/dist-packages/wxversion.py <virtual_env_path>/lib/python2.7/site-packages/wxversion.py
Run aqopa-gui command: aqopa-gui
Run aqopa-console command: aqopa-console Run aqopa-console -h to see all available options.
Tested on Windows 7.
- Download and install Python 2.7 from http://www.python.org/download/releases/2.7.6/ (Python will be installed into "C:\Python27" directory by default.)
- Download and install wxPython 2.8 from http://www.wxpython.org/download.php#stable
- Download and run pip-win 1.6 from https://sites.google.com/site/pydatalog/python/pip-for-windows (Pip-win win install some Python packages after first run.)
- Install PLY using pip-win. Write pip install PLY in the text input and click Run.
- Install AQoPA using pip-win. Write pip install AQoPA in the text input and click Run.
- Open directory "C:\Python27\Scripts" (assuming that Python has been installed in "C:\Python27").
- Double click aqopa-gui.exe
- Open command line (cmd).
- Go to "C:\Python27\Scripts" (assuming that Python has been installed in "C:\Python27").
- Run aqopa-console.exe -h to show the help of AQoPA console command.