Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519956 - dev-python/setuptools with dev-lang/python[-xml] - ImportError: No module named 'pyexpat'
Summary: dev-python/setuptools with dev-lang/python[-xml] - ImportError: No module nam...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-15 05:58 UTC by om3i
Modified: 2015-11-23 10:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (setuptools_build.log,15.11 KB, text/plain)
2014-08-15 05:58 UTC, om3i
Details

Note You need to log in before you can comment on or make changes to this bug.
Description om3i 2014-08-15 05:58:18 UTC
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
Comment 1 om3i 2014-08-15 05:58:32 UTC
Created attachment 382916 [details]
build.log
Comment 2 Thierry De Leeuw 2015-06-16 14:32:14 UTC
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.
Comment 3 Thierry De Leeuw 2015-06-16 14:33:53 UTC
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"
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2015-11-23 10:08:53 UTC
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