On 06/24/2016 06:04 PM, Adam Williamson wrote:
> Today's Rawhide compose contained no images at all (which is why there
> are no openQA tests for it, in case you wondered). At least some of the
> compose fails (I haven't checked them all) seem to be caused by a
> libselinux bug:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1349954
> 
> I suspect that complete borkage in libselinux-python may affect quite a
> lot of stuff, though I don't know specifics ATM, so I'd probably
> suggest avoiding updating libselinux for now.
> 

Actually libselinux-2.5-8.fc25 fixes the described problem.

It's related to change in new swig-3.10. New selinux.py module create by
the new swig doesn't use imp.find_module('_selinux',
[dirname(__file__)]) but  importlib.import_module('_selinux') and since
libselinux used to drop its _selinux.so to
/usr/lib64/python3.5/site-packages/selinux/, the module wasn't able to
load it.

# rpm -q libselinux
libselinux-2.5-7.fc25.x86_64

# python3 -c 'import selinux'
Traceback (most recent call last):
  File "/usr/lib64/python3.5/site-packages/selinux/__init__.py", line
18, in swig_import_helper
    return importlib.import_module(mname)
  File "/usr/lib64/python3.5/importlib/__init__.py", line 126, in
import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
ImportError: No module named '_selinux'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python3.5/site-packages/selinux/__init__.py", line
21, in <module>
    _selinux = swig_import_helper()
  File "/usr/lib64/python3.5/site-packages/selinux/__init__.py", line
20, in swig_import_helper
    return importlib.import_module('_selinux')
  File "/usr/lib64/python3.5/importlib/__init__.py", line 126, in
import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_selinux'

# dnf update
...

# rpm -q libselinux
libselinux-2.5-8.fc25.x86_64

# python3 -c 'import selinux'

#


Petr
-- 
Petr Lautrbach


Attachment: signature.asc
Description: OpenPGP digital signature

--
devel mailing list
devel@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/devel@lists.fedoraproject.org

Reply via email to