File "setup.py", line 19, in <module> exec(init_file.read(), command_ns) File "<string>", line 11, in <module> File "/home/portage/portage/dev-python/setuptools-5.4.1/work/setuptools-5.4.1-python3_4/setuptools/__init__.py", line 12, in <module> from setuptools.extension import Extension File "/home/portage/portage/dev-python/setuptools-5.4.1/work/setuptools-5.4.1-python3_4/setuptools/extension.py", line 7, in <module> from setuptools.dist import _get_unpatched File "/home/portage/portage/dev-python/setuptools-5.4.1/work/setuptools-5.4.1-python3_4/setuptools/dist.py", line 18, in <module> import pkg_resources File "/home/portage/portage/dev-python/setuptools-5.4.1/work/setuptools-5.4.1-python3_4/pkg_resources.py", line 33, in <module> import plistlib File "/usr/lib64/python3.4/plistlib.py", line 65, in <module> from xml.parsers.expat import ParserCreate File "/usr/lib64/python3.4/xml/parsers/expat.py", line 4, in <module> from pyexpat import * ImportError: No module named 'pyexpat' Reproducible: Always
Created attachment 382916 [details] build.log
I had the same issue and I fixed it by rebuilding python 2.7 (in my case 2.7.9-r1) emerge "=dev-lang/python-2.7.9-r1" After menulibre started again.
Note that menulibre was built but stopped workign at some point with $ menulibre Traceback (most recent call last): File "/usr/lib/python-exec/python2.7/menulibre", line 48, in <module> import menulibre File "/usr/lib64/python2.7/site-packages/menulibre/__init__.py", line 25, in <module> from menulibre import MenulibreWindow File "/usr/lib64/python2.7/site-packages/menulibre/MenulibreWindow.py", line 31, in <module> from menulibre_lib import Window, IconTheme, MenulibreXdg File "/usr/lib64/python2.7/site-packages/menulibre_lib/__init__.py", line 22, in <module> from . helpers import set_up_logging File "/usr/lib64/python2.7/site-packages/menulibre_lib/helpers.py", line 24, in <module> from . Builder import Builder File "/usr/lib64/python2.7/site-packages/menulibre_lib/Builder.py", line 28, in <module> from xml.etree.cElementTree import ElementTree File "/usr/lib64/python2.7/xml/etree/cElementTree.py", line 3, in <module> from _elementtree import * ImportError: PyCapsule_Import could not import module "pyexpat"
commit bea1f6190d0aca59a83db41435f992f0cb97e1ca Author: Justin Lecher <jlec@gentoo.org> Date: Mon Nov 23 10:42:05 2015 +0100 dev-python/setuptools: Drop old obsoletes: Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=447144 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=450560 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=468628 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=519956 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=537122 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=522456 Package-Manager: portage-2.2.25 Signed-off-by: Justin Lecher <jlec@gentoo.org> https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bea1f6190d0aca59a83db41435f992f0cb97e1ca