Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413905 - dev-python/sphinx-1.1.3-r2 fails to build cvxopt-1.1.5[doc]: 'str' object has no attribute '__dict__'
Summary: dev-python/sphinx-1.1.3-r2 fails to build cvxopt-1.1.5[doc]: 'str' object has...
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: 2012-04-28 21:40 UTC by Martin von Gagern
Modified: 2012-05-04 08:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2012-04-28 21:40:37 UTC
Tail of the build log:

writing output... [  7%] blas

Exception occurred:
  File "/usr/lib64/python3.2/site-packages/sphinx/environment.py", line 1215, in get_doctree
    doctree = pickle.load(f)
AttributeError: 'str' object has no attribute '__dict__'
The full traceback has been saved in /var/tmp/portage/dev-python/cvxopt-1.1.5/temp/sphinx-err-kwxxxs.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
Either send bugs to the mailing list at <http://groups.google.com/group/sphinx-dev/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
make: *** [html] Error 1
make: Leaving directory `/var/tmp/portage/dev-python/cvxopt-1.1.5/work/cvxopt-1.1.5/doc'
 * ERROR: dev-python/cvxopt-1.1.5 failed (compile phase):
 *   emake failed

And the content of that log file:

# Sphinx version: 1.1.3
# Python version: 3.2.3
# Docutils version: 0.8.1 release
# Jinja2 version: 2.6
Traceback (most recent call last):
  File "/usr/lib64/python3.2/site-packages/sphinx/cmdline.py", line 189, in main
    app.build(force_all, filenames)
  File "/usr/lib64/python3.2/site-packages/sphinx/application.py", line 204, in build
    self.builder.build_update()
  File "/usr/lib64/python3.2/site-packages/sphinx/builders/__init__.py", line 196, in build_update
    'out of date' % len(to_build))
  File "/usr/lib64/python3.2/site-packages/sphinx/builders/__init__.py", line 252, in build
    self.write(docnames, list(updated_docnames), method)
  File "/usr/lib64/python3.2/site-packages/sphinx/builders/__init__.py", line 291, in write
    doctree = self.env.get_and_resolve_doctree(docname, self)
  File "/usr/lib64/python3.2/site-packages/sphinx/environment.py", line 1230, in get_and_resolve_doctree
    doctree = self.get_doctree(docname)
  File "/usr/lib64/python3.2/site-packages/sphinx/environment.py", line 1215, in get_doctree
    doctree = pickle.load(f)
AttributeError: 'str' object has no attribute '__dict__'

Packages involved:
dev-lang/python-3.2.3
dev-python/sphinx-1.1.3-r2
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2012-04-30 16:09:23 UTC
yes confirmed

archtester sphinx # USE=doc ebuild ../cvxopt/cvxopt-1.1.5.ebuild clean compile
--------------------------------------------------------------------------------

preparing documents... done
writing output... [  7%] blas                                                                              
Exception occurred:
  File "/usr/lib64/python3.2/site-packages/sphinx/environment.py", line 1215, in get_doctree
    doctree = pickle.load(f)
AttributeError: 'str' object has no attribute '__dict__'

The key ingredient here is 
Packages involved:
dev-lang/python-3.2.3

emerging with dev-python/sphinx-1.1.3 && -r1 are effective, because they use python2. From the Changelog;

+sphinx-1.1.3-r2.ebuild:  Unrestrict python 3 and make the tests work.

I went to the extent of emerging the progress version and re-tried.
It fails in identical fashion, so this seems to warrant an upstream notice.
Can't find the missing __dict__.
Perhaps it's premature to declare it supports python3
Comment 2 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-05-01 10:35:14 UTC
+  01 May 2012; Kacper Kowalik <xarthisius@gentoo.org> cvxopt-1.1.4-r1.ebuild,
+  cvxopt-1.1.5.ebuild:
+  Remove pregenerated sphinx build directory. Fixes bug 413905 by Martin von
+  Gagern <Martin.vGagern@gmx.net>