Error building docs from the source

Hello,

The latest check-out gives an error while trying to build the documentation. Hitting “q” in pdb prompt resumes the execution and finishes the creation successfully.

[gsever@…730… doc]$ python make.py all
Running Sphinx v0.6.2
loading pickled environment… done
animation, api, axes_grid, event_handling, misc, mplot3d, pngsuite, pylab_examples, tests, units, user_interfaces, widgets,
building [html]: targets for 470 source files that are out of date
updating environment: 0 added, 13 changed, 0 removed
generating thumbnails… Exception occurred while building, starting debugger:
Traceback (most recent call last):
File “/usr/lib/python2.6/site-packages/Sphinx-0.6.2-py2.6.egg/sphinx/cmdline.py”, line 172, in main
app.build(all_files, filenames)
File “/usr/lib/python2.6/site-packages/Sphinx-0.6.2-py2.6.egg/sphinx/application.py”, line 130, in build
self.builder.build_update()
File “/usr/lib/python2.6/site-packages/Sphinx-0.6.2-py2.6.egg/sphinx/builders/init.py”, line 265, in build_update
‘out of date’ % len(to_build))
File “/usr/lib/python2.6/site-packages/Sphinx-0.6.2-py2.6.egg/sphinx/builders/init.py”, line 285, in build
purple, length):
File “/usr/lib/python2.6/site-packages/Sphinx-0.6.2-py2.6.egg/sphinx/builders/init.py”, line 131, in status_iterator
for item in iterable:
File “/usr/lib/python2.6/site-packages/Sphinx-0.6.2-py2.6.egg/sphinx/environment.py”, line 527, in update_generator
app.emit(‘env-updated’, self)
File “/usr/lib/python2.6/site-packages/Sphinx-0.6.2-py2.6.egg/sphinx/application.py”, line 222, in emit
result.append(callback(self, *args))
File “/home/gsever/Desktop/python-repo/matplotlib/doc/sphinxext/gen_gallery.py”, line 112, in gen_gallery
pool.map(make_thumbnail, thumbnails.iteritems())
File “/usr/lib/python2.6/multiprocessing/pool.py”, line 148, in map
return self.map_async(func, iterable, chunksize).get()
File “/usr/lib/python2.6/multiprocessing/pool.py”, line 422, in get
raise self._value
TypeError: PyCXX: Error creating object of type N2Py7SeqBaseINS_4CharEEE from <open file ‘build/plot_directive/mpl_examples/pylab_examples/transoffset.png’, mode ‘rb’ at 0xaa3fcf0>

/usr/lib/python2.6/multiprocessing/pool.py(422)get()
→ raise self._value
(Pdb)

···


Gökhan

I can’t reproduce this here. These sorts of CXX errors are usually
caused by distutils not rebuilding enough when things change. Can you
try removing the build directory, rebuilding matplotlib, and then
rebuilding the docs?

Mike

···

http://p.sf.net/sfu/bobj-july


Matplotlib-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-devel

You are right. The error disappeared after re-building the matploblib.

Thanks for pointing out this.

···

On Mon, Nov 9, 2009 at 8:41 AM, Michael Droettboom <mdroe@…31…> wrote:

I can’t reproduce this here. These sorts of CXX errors are usually
caused by distutils not rebuilding enough when things change. Can you
try removing the build directory, rebuilding matplotlib, and then
rebuilding the docs?

Mike

On 11/07/2009 12:10 PM, Gökhan Sever wrote:

Hello,

The latest check-out gives an error while trying to build the
documentation. Hitting “q” in pdb prompt resumes the execution and
finishes the creation successfully.

[gsever@…730… doc]$ python make.py all

Running Sphinx v0.6.2

loading pickled environment… done

animation, api, axes_grid, event_handling, misc, mplot3d, pngsuite,
pylab_examples, tests, units, user_interfaces, widgets,

building [html]: targets for 470 source files that are out of date

updating environment: 0 added, 13 changed, 0 removed

generating thumbnails… Exception occurred while building, starting
debugger:

Traceback (most recent call last):

File
“/usr/lib/python2.6/site-packages/Sphinx-0.6.2-py2.6.egg/sphinx/cmdline.py”,
line 172, in main

app.build(all_files, filenames)

File
“/usr/lib/python2.6/site-packages/Sphinx-0.6.2-py2.6.egg/sphinx/application.py”,
line 130, in build

self.builder.build_update()

File
“/usr/lib/python2.6/site-packages/Sphinx-0.6.2-py2.6.egg/sphinx/builders/init.py”,
line 265, in build_update

'out of date' % len(to_build))

File
“/usr/lib/python2.6/site-packages/Sphinx-0.6.2-py2.6.egg/sphinx/builders/init.py”,
line 285, in build

purple, length):

File
“/usr/lib/python2.6/site-packages/Sphinx-0.6.2-py2.6.egg/sphinx/builders/init.py”,
line 131, in status_iterator

for item in iterable:

File
“/usr/lib/python2.6/site-packages/Sphinx-0.6.2-py2.6.egg/sphinx/environment.py”,
line 527, in update_generator

app.emit('env-updated', self)

File
“/usr/lib/python2.6/site-packages/Sphinx-0.6.2-py2.6.egg/sphinx/application.py”,
line 222, in emit

result.append(callback(self, *args))

File
“/home/gsever/Desktop/python-repo/matplotlib/doc/sphinxext/gen_gallery.py”,
line 112, in gen_gallery

pool.map(make_thumbnail, thumbnails.iteritems())

File “/usr/lib/python2.6/multiprocessing/pool.py”, line 148, in map

return self.map_async(func, iterable, chunksize).get()

File “/usr/lib/python2.6/multiprocessing/pool.py”, line 422, in get

raise self._value

TypeError: PyCXX: Error creating object of type
N2Py7SeqBaseINS_4CharEEE from <open file
‘build/plot_directive/mpl_examples/pylab_examples/transoffset.png’,
mode ‘rb’ at 0xaa3fcf0>

/usr/lib/python2.6/multiprocessing/pool.py(422)get()

→ raise self._value

(Pdb)

Gökhan



Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what’s new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july



Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Gökhan