Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318759 - dev-python/pastedeploy-1.3.3: fails to build with doc useflag
Summary: dev-python/pastedeploy-1.3.3: fails to build with doc useflag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on: 318757
Blocks:
  Show dependency tree
 
Reported: 2010-05-06 14:26 UTC by Alex Brandt (RETIRED)
Modified: 2010-06-27 23:11 UTC (History)
2 users (show)

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


Attachments
Emerge Info (emerge-info.txt,4.09 KB, text/plain)
2010-05-06 14:27 UTC, Alex Brandt (RETIRED)
Details
Full Build Log (build.log,9.21 KB, text/plain)
2010-05-06 14:27 UTC, Alex Brandt (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Brandt (RETIRED) gentoo-dev 2010-05-06 14:26:54 UTC
dev-python/pastedeploy-1.3.3 fails to build with the doc use flag set.

Reproducible: Always

Steps to Reproduce:
1. Set +doc on at least dev-python/pastedeploy-1.3.3
2. Emerge dev-python/pastedeploy-1.3.3
3. Build fails when building documentation

Actual Results:  
 * Generating docs as requested...
running pudge
generating documentation
copying: /usr/lib64/python2.6/site-packages/pudge/template/pythonpaste.org/layout.css -> docs/html/layout.css
copying: /usr/lib64/python2.6/site-packages/pudge/template/pythonpaste.org/pudge.css -> docs/html/pudge.css
copying: /usr/lib64/python2.6/site-packages/pudge/template/pythonpaste.org/rst.css -> docs/html/rst.css
docs/index.txt:10: (ERROR/3) Unknown directive type "toctree".

.. toctree::
   :maxdepth: 1

   news
   modules/loadwsgi
   modules/config
   modules/converters
   license

docs/news.txt:7: (ERROR/3) Unknown interpreted text role "class".
/usr/lib64/python2.6/site-packages/kid/codewriter.py:91: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  setattr(self, arg, getattr(error, arg))
Traceback (most recent call last):
  File "setup.py", line 62, in <module>
    """,
  File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/usr/lib64/python2.6/site-packages/buildutils/pudge_command/pudge.py", line 180, in run
    self.execute(generate, (), msg='generating documentation') 
  File "/usr/lib64/python2.6/distutils/cmd.py", line 358, in execute
    util.execute(func, args, msg, dry_run=self.dry_run)
  File "/usr/lib64/python2.6/distutils/util.py", line 409, in execute
    apply(func, args)
  File "/usr/lib64/python2.6/site-packages/buildutils/pudge_command/pudge.py", line 169, in generate
    g.generate()
  File "/usr/lib64/python2.6/site-packages/pudge/generator.py", line 91, in generate
    self.time_func(None, self.generate_index)
  File "/usr/lib64/python2.6/site-packages/pudge/generator.py", line 344, in time_func
    return func(*args, **kw)
  File "/usr/lib64/python2.6/site-packages/pudge/generator.py", line 199, in generate_index
    self.expand_template('package-index.html', 'module-index')
  File "/usr/lib64/python2.6/site-packages/pudge/generator.py", line 147, in expand_template
    encoding='utf-8')
  File "/usr/lib64/python2.6/site-packages/kid/__init__.py", line 274, in write
    raise_template_error(module=self.__module__)
  File "/usr/lib64/python2.6/site-packages/kid/__init__.py", line 272, in write
    return serializer.write(self, file, encoding, fragment, format)
  File "/usr/lib64/python2.6/site-packages/kid/serialization.py", line 123, in write
    for text in self.generate(stream, encoding, fragment, format):
  File "/usr/lib64/python2.6/site-packages/kid/serialization.py", line 629, in generate
    for ev, item in self.apply_filters(stream, format):
  File "/usr/lib64/python2.6/site-packages/kid/serialization.py", line 165, in format_stream
    for ev, item in stream:
  File "/usr/lib64/python2.6/site-packages/kid/parser.py", line 221, in _coalesce
    for ev, item in stream:
  File "/usr/lib64/python2.6/site-packages/kid/serialization.py", line 477, in inject_meta_tags
    for ev, item in stream:
  File "/usr/lib64/python2.6/site-packages/kid/parser.py", line 179, in _track
    for p in stream:
  File "/usr/lib64/python2.6/site-packages/kid/filter.py", line 26, in apply_matches
    for ev, item in stream:
  File "/usr/lib64/python2.6/site-packages/kid/parser.py", line 179, in _track
    for p in stream:
  File "/usr/lib64/python2.6/site-packages/kid/parser.py", line 221, in _coalesce
    for ev, item in stream:
  File "/usr/lib64/python2.6/site-packages/kid/parser.py", line 179, in _track
    for p in stream:
  File "/usr/lib64/python2.6/site-packages/pudge/template/pythonpaste.org/layout.py", line 260, in __layout
  File "/usr/lib64/python2.6/site-packages/kid/parser.py", line 179, in _track
    for p in stream:
  File "/usr/lib64/python2.6/site-packages/pudge/template/base/package-index.py", line 55, in _pull
  File "/usr/lib64/python2.6/site-packages/pudge/browser.py", line 107, in modules
    m = self.find(m)
  File "/usr/lib64/python2.6/site-packages/pudge/browser.py", line 84, in find
    rslt = module.find('.'.join(components))
  File "/usr/lib64/python2.6/site-packages/pudge/browser.py", line 371, in find
    members = self.members
  File "/usr/lib64/python2.6/site-packages/pudge/browser.py", line 298, in members
    members = self._load_members()
  File "/usr/lib64/python2.6/site-packages/pudge/browser.py", line 386, in _load_members
    for name, value in self.filtered_members():
  File "/usr/lib64/python2.6/site-packages/pudge/browser.py", line 452, in filtered_members
    self._fill_modules_and_packages(members)
  File "/usr/lib64/python2.6/site-packages/pudge/browser.py", line 441, in _fill_modules_and_packages
    module = safeimport('%s.%s' % (qname, modname))
  File "/usr/lib64/python2.6/pydoc.py", line 307, in safeimport
    raise ErrorDuringImport(path, sys.exc_info())
pydoc.ErrorDuringImport: problem in paste.flup_session - <type 'exceptions.ImportError'>: No module named flup.middleware.session
Error location in template file '/usr/lib64/python2.6/site-packages/pudge/template/base/package-index.html'
between line 19, column 26 and line 22:
... </h2>
...
  ${module_index_table(browser.modules(recursive=1), qualified_names=1)}
 * ERROR: dev-python/pastedeploy-1.3.3 failed:
 *   Generation of documentation failed
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 4396:  Called die
 * The specific snippet of code:
 *           PYTHONPATH=. "$(PYTHON -f)" setup.py pudge || die "Generation of documentation failed";
 * 
 * If you need support, post the output of 'emerge --info =dev-python/pastedeploy-1.3.3',
 * the complete build log and the output of 'emerge -pqv =dev-python/pastedeploy-1.3.3'.
 * The complete build log is located at '/var/tmp/portage/dev-python/pastedeploy-1.3.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pastedeploy-1.3.3/temp/environment'.
 * S: '/var/tmp/portage/dev-python/pastedeploy-1.3.3/work/PasteDeploy-1.3.3'

>>> Failed to emerge dev-python/pastedeploy-1.3.3, Log file:

>>>  '/var/tmp/portage/dev-python/pastedeploy-1.3.3/temp/build.log'

 * Messages for package dev-python/pastedeploy-1.3.3:

 * ERROR: dev-python/pastedeploy-1.3.3 failed:
 *   Generation of documentation failed
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 4396:  Called die
 * The specific snippet of code:
 *           PYTHONPATH=. "$(PYTHON -f)" setup.py pudge || die "Generation of documentation failed";
 * 
 * If you need support, post the output of 'emerge --info =dev-python/pastedeploy-1.3.3',
 * the complete build log and the output of 'emerge -pqv =dev-python/pastedeploy-1.3.3'.
 * The complete build log is located at '/var/tmp/portage/dev-python/pastedeploy-1.3.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pastedeploy-1.3.3/temp/environment'.
 * S: '/var/tmp/portage/dev-python/pastedeploy-1.3.3/work/PasteDeploy-1.3.3'

Expected Results:  
Successful build.
Comment 1 Alex Brandt (RETIRED) gentoo-dev 2010-05-06 14:27:16 UTC
Created attachment 230609 [details]
Emerge Info
Comment 2 Alex Brandt (RETIRED) gentoo-dev 2010-05-06 14:27:39 UTC
Created attachment 230611 [details]
Full Build Log
Comment 3 Matti Bickel (RETIRED) gentoo-dev 2010-05-18 09:03:45 UTC
Thanks for the report, i've just verified the error. Forwarding to maintainer.
Comment 4 Sebastian Pipping gentoo-dev 2010-06-26 03:44:01 UTC
On a side note I wonder how come pastedeploy does not depend on paste currently?
It seems it should:

# fgrep -R 'from paste' [..]/pastedeploy-1.3.3/work/
[..]
[..]/deploy/config.py:            from paste import wsgilib
[..]
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-06-26 04:42:17 UTC
Fixed in dev-python/pastedeploy-1.3.3 by using sphinx instead of pudge.
Comment 6 fplccl 2010-06-26 20:19:33 UTC
(In reply to comment #5)
> Fixed in dev-python/pastedeploy-1.3.3 by using sphinx instead of pudge.

I have not come to form a new bug with the pastescript, because it is the same
as bug #318757 and bug #318759.

Please fix the doc generation for the pastescript.

Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-06-27 23:00:25 UTC
(In reply to comment #6)

dev-python/pastescript-1.7.3 fixed.
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-06-27 23:11:08 UTC
(In reply to comment #4)
> On a side note I wonder how come pastedeploy does not depend on paste
> currently?

setup.py claims that it's optional dependency, but I have added this dependency.