[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Potential issue with numpy



Hi,

in the issue I filed against nipype I was asked to try to rebuild numpy
and see whether this might make a diffence.  So I tried

  dget http://deb.debian.org/debian/pool/main/n/numpy/numpy_1.19.5-1.dsc
  cd numpy-1.19.5

and have rebuild it in a recent pbuilder environment.  This ends up in

DISTUTILS.rst.txt:386: WARNING: Unparseable C cross-reference: '/**end repeat1**/'
Invalid C declaration: Expected identifier in nested name. [error at 0]
  /**end repeat1**/
  ^

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/sphinx/cmd/build.py", line 280, in build_main
    app.build(args.force_all, filenames)
  File "/usr/lib/python3/dist-packages/sphinx/application.py", line 337, in build
    self.builder.build_update()
  File "/usr/lib/python3/dist-packages/sphinx/builders/__init__.py", line 293, in build_update
    self.build(to_build,
  File "/usr/lib/python3/dist-packages/sphinx/builders/__init__.py", line 357, in build
    self.write(docnames, list(updated_docnames), method)
  File "/usr/lib/python3/dist-packages/sphinx/builders/__init__.py", line 531, in write
    self._write_serial(sorted(docnames))
  File "/usr/lib/python3/dist-packages/sphinx/builders/__init__.py", line 541, in _write_serial
    self.write_doc(docname, doctree)
  File "/usr/lib/python3/dist-packages/sphinx/builders/html/__init__.py", line 626, in write_doc
    self.docwriter.write(doctree, destination)
  File "/usr/lib/python3/dist-packages/docutils/writers/__init__.py", line 78, in write
    self.translate()
  File "/usr/lib/python3/dist-packages/sphinx/writers/html.py", line 70, in translate
    self.document.walkabout(visitor)
  File "/usr/lib/python3/dist-packages/docutils/nodes.py", line 214, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib/python3/dist-packages/docutils/nodes.py", line 214, in walkabout
    if child.walkabout(visitor):
  File "/usr/lib/python3/dist-packages/docutils/nodes.py", line 214, in walkabout
    if child.walkabout(visitor):
  [Previous line repeated 1 more time]
  File "/usr/lib/python3/dist-packages/docutils/nodes.py", line 206, in walkabout
    visitor.dispatch_visit(self)
  File "/usr/lib/python3/dist-packages/sphinx/util/docutils.py", line 477, in dispatch_visit
    method(node)
  File "/usr/lib/python3/dist-packages/sphinx/writers/html5.py", line 417, in visit_literal_block
    highlighted = self.highlighter.highlight_block(
  File "/usr/lib/python3/dist-packages/sphinx/highlighting.py", line 149, in highlight_block
    lexer = self.get_lexer(source, lang, opts, force, location)
  File "/usr/lib/python3/dist-packages/sphinx/highlighting.py", line 127, in get_lexer
    lexer = lexer_classes[lang](**opts)
TypeError: 'NumPyLexer' object is not callable

Exception occurred:
  File "/usr/lib/python3/dist-packages/sphinx/highlighting.py", line 127, in get_lexer
    lexer = lexer_classes[lang](**opts)
TypeError: 'NumPyLexer' object is not callable
The full traceback has been saved in /tmp/sphinx-err-h3bd2cwr.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.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!


While I think this could be worth a "does not build from source" bug
against numpy (I'd wait with this until somebody confirms) I wonder
what answer I should give to nipype upstream in the issue[1].

Kind regards

     Andreas.


[1] https://github.com/nipy/nipype/issues/3382

-- 
http://fam-tille.de


Reply to: