question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MAINT, DOC: CI failure for doc building

See original GitHub issue

I see the traceback below the fold in several unrelated PRs/merge event doc builds in the last day or two. The pyparsing library shows up in the error output, and I note that version 3.0.0 was released on Oct. 23/2021 and 3.0.1 just 5 hours ago. Before that, there were nothing but pre-releases going back to April 2020, so this seems like a decent candidate for the source of the error.

We may want to temporarily pin pyparsing as an interim workaround.

waiting for workers...
/home/circleci/repo/build/testenv/lib/python3.8/site-packages/scipy/integrate/_quad_vec.py:docstring of scipy.integrate._quad_vec.quad_vec:126: WARNING: Exception occurred in plotting scipy-integrate-quad_vec-1
 from /home/circleci/repo/doc/source/reference/generated/scipy.integrate.quad_vec.rst:
pyparsing.exceptions.ParseException: Expected {accentprefixed | accent | symbol | c_over_c | function | group | frac | dfrac | binom | genfrac | overset | underset | sqrt | overline | operatorname}, found 'dx'  (at char 22), (line:1, col:23)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/_mathtext.py", line 2277, in parse
    result = self._expression.parseString(s)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/pyparsing/core.py", line 1101, in parse_string
    raise exc.with_traceback(None)
pyparsing.exceptions.ParseSyntaxException: Expected {accentprefixed | accent | symbol | c_over_c | function | group | frac | dfrac | binom | genfrac | overset | underset | sqrt | overline | operatorname}, found 'dx'  (at char 22), (line:1, col:23)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/sphinxext/plot_directive.py", line 612, in render_figures
    figman.canvas.figure.savefig(img.filename(fmt), dpi=dpi)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/figure.py", line 3015, in savefig
    self.canvas.print_figure(fname, **kwargs)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 2255, in print_figure
    result = print_method(
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 1669, in wrapper
    return func(*args, **kwargs)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 508, in print_png
    FigureCanvasAgg.draw(self)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 406, in draw
    self.figure.draw(self.renderer)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/artist.py", line 74, in draw_wrapper
    result = draw(artist, renderer, *args, **kwargs)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/figure.py", line 2790, in draw
    mimage._draw_list_compositing_images(
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/image.py", line 132, in _draw_list_compositing_images
    a.draw(renderer)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/_api/deprecation.py", line 431, in wrapper
    return func(*inner_args, **inner_kwargs)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 2921, in draw
    mimage._draw_list_compositing_images(renderer, self, artists)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/image.py", line 132, in _draw_list_compositing_images
    a.draw(renderer)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/axis.py", line 1155, in draw
    self.label.draw(renderer)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/text.py", line 679, in draw
    bbox, info, descent = textobj._get_layout(renderer)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/text.py", line 314, in _get_layout
    w, h, d = renderer.get_text_width_height_descent(
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 235, in get_text_width_height_descent
    self.mathtext_parser.parse(s, self.dpi, prop)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/mathtext.py", line 452, in parse
    return self._parse_cached(s, dpi, prop, _force_standard_ps_fonts)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/mathtext.py", line 473, in _parse_cached
    box = self._parser.parse(s, font_output, fontsize, dpi)
  File "/home/circleci/repo/venv/lib/python3.8/site-packages/matplotlib/_mathtext.py", line 2279, in parse
    raise ValueError("\n".join(["",
ValueError: 
\int_{0}^{2} x^\alpha dx
                      ^
Expected {accentprefixed | accent | symbol | c_over_c | function | group | frac | dfrac | binom | genfrac | overset | underset | sqrt | overline | operatorname}, found 'dx'  (at char 22), (line:1, col:23)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
tylerjereddycommented, Oct 24, 2021

Probably true, it is an indirect dependency–I guess that’s what I meant about temporary pin if it works/is even worth pinning.

0reactions
tylerjereddycommented, Nov 3, 2021

Fixed by gh-14969 (or rather, by upstream stuff happening, so the pin was removed)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting CI/CD - GitLab Docs
Common CI/CD issues · Jobs or pipelines don't run when expected · Pipeline with many jobs fails to start · A job runs...
Read more >
About continuous integration - GitHub Docs
Continuous integration (CI) is a software practice that requires frequently committing code to a shared repository. Committing code more often detects errors ...
Read more >
Build troubleshooting tips - Netlify Docs
This article provides troubleshooting tips for failing builds in Netlify's build service. In case your build fails on Netlify, first make sure it...
Read more >
Configuring CircleCI
This document is a reference for the CircleCI 2.x configuration keys that are used in the .circleci/config.yml file. You can see a complete...
Read more >
Troubleshooting AWS CodeBuild
Possible cause: The service role the build project relies on does not have ... see Runtime Privilege and Linux Capabilities on the Docker...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found