All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: Sven Vermeulen <sven.vermeulen@siphos.be>
Cc: selinux@tycho.nsa.gov
Subject: Re: No module named policycoreutils.default_encoding_utf8 ?
Date: Wed, 06 Nov 2013 15:07:05 -0500	[thread overview]
Message-ID: <527AA169.9090505@tycho.nsa.gov> (raw)
In-Reply-To: <20131104220022.GA6511@siphos.be>

On 11/04/2013 05:00 PM, Sven Vermeulen wrote:
> Hi all,
> 
> In policycoreutils-2.2.1/semanage/semanage, the first import is:
> 
> """
> import policycoreutils.default_encoding_utf8
> """
> 
> On my system (Python 2.7) this fails with:
> 
> Traceback (most recent call last):
>   File "/usr/sbin/semanage-python2.7", line 26, in <module>
>     import policycoreutils.default_encoding_utf8
> ImportError: No module named policycoreutils.default_encoding_utf8
> 
> Is this specific for a particular Python version?
> 
> I commented it out and most other things work just fine (I only have a small
> issue with audit2allow not wanting to generate refpolicy-style modules even
> though the interface_info file is - I think - up2date and is being read by
> audit2allow).

Did sepolgen-ifgen complete successfully?
Can you provide more information about how audit2allow -R is failing?
Maybe some sample input and output.


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

      parent reply	other threads:[~2013-11-06 20:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-04 22:00 No module named policycoreutils.default_encoding_utf8 ? Sven Vermeulen
2013-11-05 15:05 ` Daniel J Walsh
2013-11-05 15:21   ` Eric Paris
2013-11-06 20:07 ` Stephen Smalley [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=527AA169.9090505@tycho.nsa.gov \
    --to=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    --cc=sven.vermeulen@siphos.be \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.