ImportError: No module named apparmor.tools
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AppArmor |
New
|
Undecided
|
Unassigned |
Bug Description
1. sudo apt-get install apparmor-utils works fine with my ubuntu 1404 (virtualbox)
2. apparmor install "without apt-get" has problem
$ sudo aa-complain // error (No Module named apparmor.tools)
Traceback (most recent call last):
File "/usr/sbin/
import apparmor.tools
ImportError: No module named apparmor.tools
$ sudo aa-status //this is ok
apparmor module is loaded.
0 profiles are loaded.
0 profiles are in enforce mode.
0 profiles are in complain mode.
===== I followed apparmor/README, like this. ===============
cd ./libraries/
./autogen.sh
./configure --prefix=/usr --with-perl
make
sudo make install
cd utils
make
sudo make install
cd parser
make
sudo make install
I don't want to install changehat/ and profiles/ for a while.
description: | updated |
description: | updated |
summary: |
- (No module named apparmor.tools) user-space problem + ImportError: No module named apparmor.tools |
I wonder if there are something more to do when installing with Makefile. python2. 7/site- packages/ apparmor"
I found tools.py tools.pyc __init__.py etc are in "/usr/lib/
cat "/usr/lib/ python2. 7/site- packages/ apparmor- 2.8.95- py2.7.egg- info" shows like this. 2.8.95- py2.7.egg- info /launchpad. net/apparmor
$ cat apparmor-
Metadata-Version: 1.0
Name: apparmor
Version: 2.8.95
Summary: Python libraries for AppArmor utilities
Home-page: https:/
Author: AppArmor Developers
Author-email: <email address hidden>
License: GPL-2
Description: Python libraries for AppArmor utilities
Platform: UNKNOWN