Comment 2 for bug 1513880

Revision history for this message
Christian Boltz (cboltz) wrote : Re: aa-logprof: AppArmorBug: Passed unknown object to NetworkRule: inet

This is a known problem with python2 - workaround: use python3 ;-)

To get it working with python3,
    export PYTHON=/usr/bin/python3
and then compile everything again (run configure; make; make install for libapparmor and the utils).

You'll probably also need to change the shebang line of aa-* to python3 - the fastest way to do this is
    for file in utils/aa-* ; do
        sed -i '1s,^#! /usr/bin/env python$,#! /usr/bin/env python3,' "$file"
    done

That said: We are thinking about dropping support for python2, which would mean supporting only python3. Would this be ok for you, or do you have a good reason for using python 2 (except "it's the default")? ;-)