Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519678 - >=dev-python/docutils-0.10 - src_compile(): Traceback (most recent call last): File "buildhtml.py", line 32, in <module> from docutils.utils.error_reporting import ErrorOutput, ErrorString
Summary: >=dev-python/docutils-0.10 - src_compile(): Traceback (most recent call last)...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-12 02:26 UTC by edes
Modified: 2018-04-24 16:52 UTC (History)
2 users (show)

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


Attachments
docutilsinfo.tar.gz (docutilsinfo.tar.gz,7.36 KB, application/gzip-compressed-tar)
2014-08-12 02:26 UTC, edes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description edes 2014-08-12 02:26:53 UTC
Created attachment 382700 [details]
docutilsinfo.tar.gz

the latest docutils i can build is 0.9.1. beginning with 0.10, compilation fail thus:

copying docutils/writers/s5_html/themes/big-white/framing.css -> /var/tmp/portage/dev-python/docutils-0.12/work/docutils-0.12-python2_7/lib/docutils/writers/s5_html/themes/big-white
copying docutils/writers/s5_html/themes/big-white/pretty.css -> /var/tmp/portage/dev-python/docutils-0.12/work/docutils-0.12-python2_7/lib/docutils/writers/s5_html/themes/big-white
 * python2_7: running distutils-r1_run_phase python_compile_all
Traceback (most recent call last):
  File "buildhtml.py", line 32, in <module>
    from docutils.utils.error_reporting import ErrorOutput, ErrorString
ImportError: No module named error_reporting
 * ERROR: dev-python/docutils-0.12::gentoo failed (compile phase):

as an attachment:
the output of emerge --info '=dev-python/docutils-0.12::gentoo'
the output of emerge -pqv =dev-python/docutils-0.12::gentoo
the build.log
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2014-08-12 04:42:04 UTC
I am quite perplexed as to how you managed this.

~/cvsPortage/gentoo-x86/dev-python/docutils $ ebuild docutils-0.12.ebuild clean compile

~/cvsPortage/gentoo-x86/dev-python/docutils $ find  /mnt/gen2/TmpDir/portage/dev-python/docutils-0.12/work/docutils-0.12 -name error_reporting.py
yields
/mnt/gen2/TmpDir/portage/dev-python/docutils-0.12/work/docutils-0.12/docutils/utils/error_reporting.py

~/cvsPortage/gentoo-x86/dev-python/docutils $ grep error_reporting /home/testuser/documents/build/dev-python/docutils-0.12:20140812-042206.log

~/cvsPortage/gentoo-x86/dev-python/docutils $ grep error_reporting /mnt/gen2/TmpDir/portage/dev-python/docutils-0.12//temp/build.log
yields

copying docutils/utils/error_reporting.py -> /mnt/gen2/TmpDir/portage/dev-python/docutils-0.12/work/docutils-0.12-pypy/lib/docutils/utils
copying docutils/utils/error_reporting.py -> /mnt/gen2/TmpDir/portage/dev-python/docutils-0.12/work/docutils-0.12-python3_2/lib/docutils/utils
copying docutils/utils/error_reporting.py -> /mnt/gen2/TmpDir/portage/dev-python/docutils-0.12/work/docutils-0.12-python3_3/lib/docutils/utils
copying docutils/utils/error_reporting.py -> /mnt/gen2/TmpDir/portage/dev-python/docutils-0.12/work/docutils-0.12-python3_4/lib/docutils/utils
copying docutils/utils/error_reporting.py -> /mnt/gen2/TmpDir/portage/dev-python/docutils-0.12/work/docutils-0.12-python2_7/lib/docutils/utils
Comment 2 edes 2014-08-12 19:49:38 UTC
(In reply to Ian Delaney from comment #1)
> I am quite perplexed as to how you managed this.

indeed... but i don't know what other information i could provide. i get exactly the same error with docutils 0.10, 0.11 and 0.12. coincidentally(?), starting when error_reporting.py was moved under utils/
Comment 3 thomasg 2015-02-20 12:51:28 UTC
I have the same issue.
It builds fine for py3.3 and py3.4, but the py2.7 target fails with the exact same error.
Comment 4 edes 2015-03-16 16:06:22 UTC
(In reply to thomasg from comment #3)

same here, i got it working adding:

-python_targets_python2_7 python_targets_python3_4

in the use flags
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-24 16:52:16 UTC
0.10 is gone.