* No module named policycoreutils.default_encoding_utf8 ?
@ 2013-11-04 22:00 Sven Vermeulen
2013-11-05 15:05 ` Daniel J Walsh
2013-11-06 20:07 ` Stephen Smalley
0 siblings, 2 replies; 4+ messages in thread
From: Sven Vermeulen @ 2013-11-04 22:00 UTC (permalink / raw)
To: selinux
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).
Wkr,
Sven Vermeulen
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: No module named policycoreutils.default_encoding_utf8 ?
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
1 sibling, 1 reply; 4+ messages in thread
From: Daniel J Walsh @ 2013-11-05 15:05 UTC (permalink / raw)
To: Sven Vermeulen, selinux
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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 """
>
Yes this is for internationlization but we should just remove it. As I port
to python3 it will no longer be necessary.
This patch switches python2 to always use unicode, which is the default for
python3.
> 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).
>
> Wkr, Sven Vermeulen
>
> -- 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.
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlJ5CTUACgkQrlYvE4MpobPP5ACfUEiGrG1iXAB9410oDNv6d4v4
/zoAnRb8BcSM841DDCz5/epKGrxteq5C
=H0mM
-----END PGP SIGNATURE-----
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: No module named policycoreutils.default_encoding_utf8 ?
2013-11-05 15:05 ` Daniel J Walsh
@ 2013-11-05 15:21 ` Eric Paris
0 siblings, 0 replies; 4+ messages in thread
From: Eric Paris @ 2013-11-05 15:21 UTC (permalink / raw)
To: Daniel J Walsh; +Cc: Sven Vermeulen, SE-Linux
That's one of the patches that I always refused to push upstream. The
code itself was scary, some C code that built into some sort of python
module that forced something... Seemed dirty. I was never able to
get anyone to tell me what the problem was or what that fixed.
Everyone just said 'internationalization is wrong.' I suggest it not
be included/be reverted upstream...
On Tue, Nov 5, 2013 at 10:05 AM, Daniel J Walsh <dwalsh@redhat.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 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 """
>>
> Yes this is for internationlization but we should just remove it. As I port
> to python3 it will no longer be necessary.
>
> This patch switches python2 to always use unicode, which is the default for
> python3.
>
>> 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).
>>
>> Wkr, Sven Vermeulen
>>
>> -- 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.
>>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.15 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlJ5CTUACgkQrlYvE4MpobPP5ACfUEiGrG1iXAB9410oDNv6d4v4
> /zoAnRb8BcSM841DDCz5/epKGrxteq5C
> =H0mM
> -----END PGP SIGNATURE-----
>
> --
> 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.
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: No module named policycoreutils.default_encoding_utf8 ?
2013-11-04 22:00 No module named policycoreutils.default_encoding_utf8 ? Sven Vermeulen
2013-11-05 15:05 ` Daniel J Walsh
@ 2013-11-06 20:07 ` Stephen Smalley
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Smalley @ 2013-11-06 20:07 UTC (permalink / raw)
To: Sven Vermeulen; +Cc: selinux
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-06 20:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.