[Python-modules-team] Bug#697721: python-django-registration: FTBFS with python3-sphinx: AttributeError: 'str' object has no attribute '__dict__'

Jakub Wilk jwilk at debian.org
Tue Jan 8 21:23:04 UTC 2013


Source: python-django-registration
Version: 0.8-1
Severity: serious
Justification: fails to build from source

If python3-sphinx is installed, but python-sphinx is not, 
python-django-registration FTBFS:
| cd docs && /usr/bin/make html
| make[2]: Entering directory `/build/python-django-registration-105ATe/python-django-registration-0.8/docs'
| sphinx-build -b html -d _build/doctrees   . _build/html
| Running Sphinx v1.1.3
| loading pickled environment... done
| building [html]: targets for 11 source files that are out of date
| updating environment: 0 added, 0 changed, 0 removed
| looking for now-outdated files... none found
| preparing documents... done
| writing output... [  9%] backend-api
| Making output directory...
|
| Exception occurred:
|   File "/usr/lib/python3/dist-packages/sphinx/cmdline.py", line 189, in main
|     app.build(force_all, filenames)
|   File "/usr/lib/python3/dist-packages/sphinx/application.py", line 204, in build
|     self.builder.build_update()
|   File "/usr/lib/python3/dist-packages/sphinx/builders/__init__.py", line 196, in build_update
|     'out of date' % len(to_build))
|   File "/usr/lib/python3/dist-packages/sphinx/builders/__init__.py", line 252, in build
|     self.write(docnames, list(updated_docnames), method)
|   File "/usr/lib/python3/dist-packages/sphinx/builders/__init__.py", line 291, in write
|     doctree = self.env.get_and_resolve_doctree(docname, self)
|   File "/usr/lib/python3/dist-packages/sphinx/environment.py", line 1230, in get_and_resolve_doctree
|     doctree = self.get_doctree(docname)
|   File "/usr/lib/python3/dist-packages/sphinx/environment.py", line 1215, in get_doctree
|     doctree = pickle.load(f)
| AttributeError: 'str' object has no attribute '__dict__'

This happens because the source package includes doctree pickles (in 
which parsed rST sources are cached) were generated by Python 2.X, and 
cannot be loaded by Python 3.X.  Please ask upstream to exclude the 
doctrees/ subdirectory from their tarballs.  Meanwhile please use the 
attached patch as a work-around.

-- 
Jakub Wilk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-django-registration-rm-doctrees.diff
Type: text/x-diff
Size: 471 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20130108/b9b0997c/attachment.diff>


More information about the Python-modules-team mailing list