Title: 3.2.0: error while generating doc gallery: `ValueError: operands could not be broadcast together with shapes (370,370) (100,100)` · Issue #16707 · matplotlib/matplotlib · GitHub
Open Graph Title: 3.2.0: error while generating doc gallery: `ValueError: operands could not be broadcast together with shapes (370,370) (100,100)` · Issue #16707 · matplotlib/matplotlib
X Title: 3.2.0: error while generating doc gallery: `ValueError: operands could not be broadcast together with shapes (370,370) (100,100)` · Issue #16707 · matplotlib/matplotlib
Description: Hello, while preparing 3.2.0 for Debian, the documentation gallery build process failed with: ... generating gallery for gallery/images_contours_and_fields... [ 38%] image_demo.py generating gallery for gallery/images_contours_and_fields...
Open Graph Description: Hello, while preparing 3.2.0 for Debian, the documentation gallery build process failed with: ... generating gallery for gallery/images_contours_and_fields... [ 38%] image_demo.py generating galler...
X Description: Hello, while preparing 3.2.0 for Debian, the documentation gallery build process failed with: ... generating gallery for gallery/images_contours_and_fields... [ 38%] image_demo.py generating galler...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/16707
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"3.2.0: error while generating doc gallery: `ValueError: operands could not be broadcast together with shapes (370,370) (100,100)`","articleBody":"Hello,\r\nwhile preparing 3.2.0 for Debian, the documentation gallery build process failed with:\r\n\r\n```\r\n...\r\ngenerating gallery for gallery/images_contours_and_fields... [ 38%] image_demo.py\r\ngenerating gallery for gallery/images_contours_and_fields... [ 40%] image_masked.py\r\ngenerating gallery for gallery/images_contours_and_fields... [ 42%] image_nonuniform.py\r\ngenerating gallery for gallery/images_contours_and_fields... [ 45%] image_transparency_blend.py\r\n\r\nException occurred:\r\n File \"/usr/lib/python3/dist-packages/matplotlib/image.py\", line 530, in _make_image\r\n np.asarray(alpha_channel, np.float32) * out_alpha * alpha,\r\nValueError: operands could not be broadcast together with shapes (370,370) (100,100)\r\nThe full traceback has been saved in /tmp/sphinx-err-glmke_9_.log, if you want to report the issue to the developers.\r\nPlease also report this if it was a user error, so that a better error message can be provided next time.\r\nA bug report can be filed in the tracker at \u003chttps://github.com/sphinx-doc/sphinx/issues\u003e. Thanks!\r\n```\r\n\r\nthe content of `/tmp/sphinx-err-glmke_9_.log` is:\r\n\r\n```\r\n# Sphinx version: 1.8.5\r\n# Python version: 3.8.2 (CPython)\r\n# Docutils version: 0.16 release\r\n# Jinja2 version: 2.10.1\r\n# Last messages:\r\n\r\n# Loaded extensions:\r\nTraceback (most recent call last):\r\n File \"/usr/lib/python3/dist-packages/sphinx/cmd/build.py\", line 300, in build_main\r\n app = Sphinx(args.sourcedir, args.confdir, args.outputdir,\r\n File \"/usr/lib/python3/dist-packages/sphinx/application.py\", line 263, in __init__\r\n self._init_builder()\r\n File \"/usr/lib/python3/dist-packages/sphinx/application.py\", line 325, in _init_builder\r\n self.emit('builder-inited')\r\n File \"/usr/lib/python3/dist-packages/sphinx/application.py\", line 510, in emit\r\n return self.events.emit(event, self, *args)\r\n File \"/usr/lib/python3/dist-packages/sphinx/events.py\", line 80, in emit\r\n results.append(callback(*args))\r\n File \"/usr/lib/python3/dist-packages/sphinx_gallery/gen_gallery.py\", line 283, in generate_gallery_rst\r\n generate_dir_rst(src_dir, target_dir, gallery_conf,\r\n File \"/usr/lib/python3/dist-packages/sphinx_gallery/gen_rst.py\", line 327, in generate_dir_rst\r\n intro, cost = generate_file_rst(\r\n File \"/usr/lib/python3/dist-packages/sphinx_gallery/gen_rst.py\", line 740, in generate_file_rst\r\n output_blocks, time_elapsed = execute_script(script_blocks,\r\n File \"/usr/lib/python3/dist-packages/sphinx_gallery/gen_rst.py\", line 659, in execute_script\r\n output_blocks = [execute_code_block(compiler, block,\r\n File \"/usr/lib/python3/dist-packages/sphinx_gallery/gen_rst.py\", line 659, in \u003clistcomp\u003e\r\n output_blocks = [execute_code_block(compiler, block,\r\n File \"/usr/lib/python3/dist-packages/sphinx_gallery/gen_rst.py\", line 565, in execute_code_block\r\n images_rst = save_figures(block, script_vars, gallery_conf)\r\n File \"/usr/lib/python3/dist-packages/sphinx_gallery/scrapers.py\", line 236, in save_figures\r\n rst = scraper(block, block_vars, gallery_conf)\r\n File \"/usr/lib/python3/dist-packages/sphinx_gallery/scrapers.py\", line 99, in matplotlib_scraper\r\n fig.savefig(image_path, **these_kwargs)\r\n File \"/usr/lib/python3/dist-packages/matplotlib/figure.py\", line 2180, in savefig\r\n self.canvas.print_figure(fname, **kwargs)\r\n File \"/usr/lib/python3/dist-packages/matplotlib/backend_bases.py\", line 2082, in print_figure\r\n result = print_method(\r\n File \"/usr/lib/python3/dist-packages/matplotlib/backends/backend_agg.py\", line 527, in print_png\r\n FigureCanvasAgg.draw(self)\r\n File \"/usr/lib/python3/dist-packages/matplotlib/backends/backend_agg.py\", line 388, in draw\r\n self.figure.draw(self.renderer)\r\n File \"/usr/lib/python3/dist-packages/matplotlib/artist.py\", line 38, in draw_wrapper\r\n return draw(artist, renderer, *args, **kwargs)\r\n File \"/usr/lib/python3/dist-packages/matplotlib/figure.py\", line 1708, in draw\r\n mimage._draw_list_compositing_images(\r\n File \"/usr/lib/python3/dist-packages/matplotlib/image.py\", line 135, in _draw_list_compositing_images\r\n a.draw(renderer)\r\n File \"/usr/lib/python3/dist-packages/matplotlib/artist.py\", line 38, in draw_wrapper\r\n return draw(artist, renderer, *args, **kwargs)\r\n File \"/usr/lib/python3/dist-packages/matplotlib/axes/_base.py\", line 2647, in draw\r\n mimage._draw_list_compositing_images(renderer, self, artists)\r\n File \"/usr/lib/python3/dist-packages/matplotlib/image.py\", line 135, in _draw_list_compositing_images\r\n a.draw(renderer)\r\n File \"/usr/lib/python3/dist-packages/matplotlib/artist.py\", line 38, in draw_wrapper\r\n return draw(artist, renderer, *args, **kwargs)\r\n File \"/usr/lib/python3/dist-packages/matplotlib/image.py\", line 618, in draw\r\n im, l, b, trans = self.make_image(\r\n File \"/usr/lib/python3/dist-packages/matplotlib/image.py\", line 879, in make_image\r\n return self._make_image(\r\n File \"/usr/lib/python3/dist-packages/matplotlib/image.py\", line 530, in _make_image\r\n np.asarray(alpha_channel, np.float32) * out_alpha * alpha,\r\nValueError: operands could not be broadcast together with shapes (370,370) (100,100) \r\n```\r\n\r\nSome noteworthy deps are:\r\n\r\n* numpy 1.17.4\r\n* sphinx 1.8.5\r\n* sphinx-gallery: 0.5.0\r\n* python 3.8.2","author":{"url":"https://github.com/sandrotosi","@type":"Person","name":"sandrotosi"},"datePublished":"2020-03-07T19:53:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/16707/matplotlib/issues/16707"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:44fb2209-93d1-6132-6c87-bc2c96260e6c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AB56:37AB26:287CD9F:36D63B2:6A544006 |
| html-safe-nonce | f68689adab9a7e9c8f36add4f83c13009d70b6a3f8b7283179086e754a927a72 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjU2OjM3QUIyNjoyODdDRDlGOjM2RDYzQjI6NkE1NDQwMDYiLCJ2aXNpdG9yX2lkIjoiNTAwNDMwNTIyODU5OTkzNDk4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 481dfde5591888fe71554ce967aa11bba9ab545aa59fe10e979d532b9fc75605 |
| hovercard-subject-tag | issue:577391458 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/16707/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8191ec04bb7e86d03be84d55884450d7e95b905ae2a83c9567f300022139b78e/matplotlib/matplotlib/issues/16707 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8191ec04bb7e86d03be84d55884450d7e95b905ae2a83c9567f300022139b78e/matplotlib/matplotlib/issues/16707 |
| og:image:alt | Hello, while preparing 3.2.0 for Debian, the documentation gallery build process failed with: ... generating gallery for gallery/images_contours_and_fields... [ 38%] image_demo.py generating galler... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sandrotosi |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width