Genone wrote:
Yeah, that's a completely different problem as selinux isn't a standard module. You might be able to work around it by putting an empty selinux.py file in /usr/lib/python2.5/site-packages, and then remerge portage (IIRC it includes the selinux module).
Find selinux.py returns nothing.
I never used selinux on that machine so I really don't know why emerge requires it.
Code: Select all
# emerge --info
Traceback (most recent call last):
File "/usr/bin/emerge", line 31, in <module>
import emergehelp, xpak, commands, errno, re, socket, string, time, types
File "/usr/lib/portage/pym/emergehelp.py", line 6, in <module>
from selinux import is_selinux_enabled
ImportError: cannot import name is_selinux_enabled
I checked and even in the downloaded and unpacked version of python there's no selinux module... Maybe some of You could prepare me a tarball with the missing files and/or complete /usr/lib/python2.x directory, or is that a bad idea?
I downloaded a version of selinux.py file from here:
https://fedorahosted.org/system-config- ... format=txt and now emerge info returns:
Code: Select all
# emerge --info
Traceback (most recent call last):
File "/usr/bin/emerge", line 31, in <module>
import emergehelp, xpak, commands, errno, re, socket, string, time, types
File "/usr/lib/portage/pym/emergehelp.py", line 5, in <module>
import selinux
File "/usr/lib/python2.5/selinux.py", line 26, in <module>
import gtk
ImportError: No module named gtk
Maybe just the path is missing/wrong? python seems to find modules in /usr/lib/python2.5 but maybe that's incorrect?