Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484066 - dev-python/sphinx-1.1.3-r7 - IOError: [Errno 2] No such file or directory: '[...]/work/Sphinx-1.1.3-python2_7/lib/sphinx/pycode/Grammar.txt'
Summary: dev-python/sphinx-1.1.3-r7 - IOError: [Errno 2] No such file or directory: '[...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-07 02:53 UTC by Alexey Badyaev
Modified: 2018-04-22 08:49 UTC (History)
1 user (show)

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


Attachments
the output of `emerge --info '=dev-python/sphinx-1.1.3-r7::gentoo'` (sphinx_emerge-info.txt,5.45 KB, text/plain)
2013-09-07 02:53 UTC, Alexey Badyaev
Details
the output of `emerge -pqv '=dev-python/sphinx-1.1.3-r7::gentoo'` (sphinx_emerge-pqv.txt,195 bytes, text/plain)
2013-09-07 02:54 UTC, Alexey Badyaev
Details
The complete build log (build.log,20.12 KB, text/x-log)
2013-09-07 02:55 UTC, Alexey Badyaev
Details
The ebuild environment file (environment,135.52 KB, text/plain)
2013-09-07 02:55 UTC, Alexey Badyaev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Badyaev 2013-09-07 02:53:23 UTC
Created attachment 358124 [details]
the output of `emerge --info '=dev-python/sphinx-1.1.3-r7::gentoo'`

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 151, in _run_module_as_main
    mod_name, loader, code, fname = _get_module_details(mod_name)
  File "/usr/lib/python2.7/runpy.py", line 101, in _get_module_details
    loader = get_loader(mod_name)
  File "/usr/lib/python2.7/pkgutil.py", line 464, in get_loader
    return find_loader(fullname)
  File "/usr/lib/python2.7/pkgutil.py", line 474, in find_loader
    for importer in iter_importers(fullname):
  File "/usr/lib/python2.7/pkgutil.py", line 430, in iter_importers
    __import__(pkg)
  File "sphinx/pycode/__init__.py", line 25, in <module>
    pygrammar = driver.load_grammar(_grammarfile)
  File "sphinx/pycode/pgen2/driver.py", line 126, in load_grammar
    g = pgen.generate_grammar(gt)
  File "sphinx/pycode/pgen2/pgen.py", line 383, in generate_grammar
    p = ParserGenerator(filename)
  File "sphinx/pycode/pgen2/pgen.py", line 15, in __init__
    stream = open(filename)
IOError: [Errno 2] No such file or directory: '/tmp/portage/dev-python/sphinx-1.1.3-r7/work/Sphinx-1.1.3-python2_7/lib/sphinx/pycode/Grammar.txt'
 * ERROR: dev-python/sphinx-1.1.3-r7::gentoo failed (compile phase):
 *   Grammar generation failed.
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 3604:  Called distutils-r1_src_compile
 *   environment, line  926:  Called _distutils-r1_run_foreach_impl 'python_compile'
 *   environment, line  236:  Called python_parallel_foreach_impl 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 3425:  Called multibuild_parallel_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2634:  Called multibuild_foreach_variant '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2582:  Called _multibuild_run '_multibuild_parallel' '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2580:  Called _multibuild_parallel '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2625:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_compile'
 *   environment, line  584:  Called distutils-r1_run_phase 'python_compile'
 *   environment, line  917:  Called python_compile
 *   environment, line 3034:  Called die
 * The specific snippet of code:
 *       "${PYTHON}" -m sphinx.pycode.__init__ || die "Grammar generation failed."
Comment 1 Alexey Badyaev 2013-09-07 02:54:14 UTC
Created attachment 358126 [details]
the output of `emerge -pqv '=dev-python/sphinx-1.1.3-r7::gentoo'`
Comment 2 Alexey Badyaev 2013-09-07 02:55:03 UTC
Created attachment 358128 [details]
The complete build log
Comment 3 Alexey Badyaev 2013-09-07 02:55:42 UTC
Created attachment 358130 [details]
The ebuild environment file
Comment 4 Mike Gilbert gentoo-dev 2013-09-07 15:49:27 UTC
It seems like something is wrong with your installation of dev-python/setuptools. What version do you have installed?
Comment 5 Alexey Badyaev 2013-09-08 03:26:54 UTC
I have dev-python/setuptools-0.8-r1 installed.
Comment 6 Mike Gilbert gentoo-dev 2013-09-09 14:43:04 UTC
Can you try re-installing it?
Comment 7 Alexey Badyaev 2013-09-10 03:05:24 UTC
I upgrade to dev-python/setuptools-1.1.3 , and I successful install dev-python/sphinx-1.1.3-r7 now!
All fine now.