Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519954 - 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 FIXED
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:56 UTC by om3i
Modified: 2017-04-21 18:16 UTC (History)
0 users

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


Attachments
build.log (chardet_build.log,9.14 KB, text/plain)
2014-08-15 05:57 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:56:43 UTC
File "setup.py", line 2, in <module>
    from setuptools import setup
  File "/usr/lib64/python3.4/site-packages/setuptools/__init__.py", line 12, in <module>
    from setuptools.extension import Extension
  File "/usr/lib64/python3.4/site-packages/setuptools/extension.py", line 7, in <module>
    from setuptools.dist import _get_unpatched
  File "/usr/lib64/python3.4/site-packages/setuptools/dist.py", line 18, in <module>
    import pkg_resources
  File "/usr/lib64/python3.4/site-packages/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:57:11 UTC
Created attachment 382914 [details]
build.log
Comment 2 Sebastian Pipping gentoo-dev 2016-05-28 16:58:09 UTC
When trying to add

  PYTHON_REQ_USE="xml"

I ran into repoman complains that

  virtual/pypy:0
  virtual/pypy3:0

lack use flag "xml".  Left to finish for later.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-05-28 17:24:45 UTC
It's all in the docs [1]. Since xml is always-on in pypy, you should use 'xml(+)'.

[1]:https://wiki.gentoo.org/wiki/Project:Python/Implementation_USE_flags
Comment 4 Toralf Förster gentoo-dev 2017-04-21 16:30:04 UTC
Today it failed at a tinderbox image with :

 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python2.7 setup.py build
Download error on https://pypi.python.org/simple/pytest-runner/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [Errno -3] Temporary failure in name resolution -- Some packages may not be found!
No local packages or working download links found for pytest-runner
Traceback (most recent call last):
  File "setup.py", line 52, in <module>
    ['chardetect = chardet.cli.chardetect:main']})
  File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)


and I do wonder why an ebuild downloads something during its  compile phase ?
Comment 5 Mike Gilbert gentoo-dev 2017-04-21 17:32:34 UTC
(In reply to Toralf Förster from comment #4)

That error was fixed yesterday in bug 616104.
Comment 6 Mike Gilbert gentoo-dev 2017-04-21 18:16:07 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=739216f8e1f50ed1c3bc1d8cdcab9964ae81134a

commit 739216f8e1f50ed1c3bc1d8cdcab9964ae81134a
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Fri Apr 21 14:14:29 2017 -0400

    dev-python/setuptools: require python xml (expat) support

    Bug: https://bugs.gentoo.org/519954
    Package-Manager: Portage-2.3.5_p19, Repoman-2.3.2_p49

 dev-python/setuptools/setuptools-18.4.ebuild      | 1 +
 dev-python/setuptools/setuptools-20.6.7.ebuild    | 1 +
 dev-python/setuptools/setuptools-30.4.0.ebuild    | 1 +
 dev-python/setuptools/setuptools-33.1.1.ebuild    | 1 +
 dev-python/setuptools/setuptools-34.0.2-r1.ebuild | 1 +
 dev-python/setuptools/setuptools-34.3.2.ebuild    | 1 +
 dev-python/setuptools/setuptools-34.3.3.ebuild    | 1 +
 dev-python/setuptools/setuptools-34.4.1.ebuild    | 1 +
 dev-python/setuptools/setuptools-9999.ebuild      | 1 +
 9 files changed, 9 insertions(+)