Title: 3.4.2: pytest fails · Issue #20312 · matplotlib/matplotlib · GitHub
Open Graph Title: 3.4.2: pytest fails · Issue #20312 · matplotlib/matplotlib
X Title: 3.4.2: pytest fails · Issue #20312 · matplotlib/matplotlib
Description: I'm trying to build rpm package with matplotlib module. setuptools build and install are ok but pytest is failing for me. May I ask for poin on what I'm doing wrong? + PATH=/home/tkloczko/rpmbuild/BUILDROOT/python-matplotlib-3.4.2-2.fc35...
Open Graph Description: I'm trying to build rpm package with matplotlib module. setuptools build and install are ok but pytest is failing for me. May I ask for poin on what I'm doing wrong? + PATH=/home/tkloczko/rpmbuild/...
X Description: I'm trying to build rpm package with matplotlib module. setuptools build and install are ok but pytest is failing for me. May I ask for poin on what I'm doing wrong? + PATH=/home/tkloczko/r...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20312
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"3.4.2: pytest fails","articleBody":"I'm trying to build rpm package with matplotlib module.\r\nsetuptools build and install are ok but pytest is failing for me.\r\nMay I ask for poin on what I'm doing wrong?\r\n```console\r\n+ PATH=/home/tkloczko/rpmbuild/BUILDROOT/python-matplotlib-3.4.2-2.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbin\r\n+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-matplotlib-3.4.2-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-matplotlib-3.4.2-2.fc35.x86_64/usr/lib/python3.8/site-packages\r\n+ /usr/bin/python3 -Bm pytest -ra\r\n=========================================================================== test session starts ============================================================================\r\nplatform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1\r\nrootdir: /home/tkloczko/rpmbuild/BUILD/matplotlib-3.4.2, configfile: pytest.ini, testpaths: lib\r\nplugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, cov-2.11.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, flaky-3.7.0, requests-mock-1.9.2, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, hypothesis-6.13.5, rerunfailures-9.1.1\r\ncollected 0 items / 1 error\r\n\r\n================================================================================== ERRORS ==================================================================================\r\n______________________________________________________________________ ERROR collecting test session _______________________________________________________________________\r\n/usr/lib64/python3.8/importlib/__init__.py:127: in import_module\r\n return _bootstrap._gcd_import(name[level:], package, level)\r\n\u003cfrozen importlib._bootstrap\u003e:1014: in _gcd_import\r\n ???\r\n\u003cfrozen importlib._bootstrap\u003e:991: in _find_and_load\r\n ???\r\n\u003cfrozen importlib._bootstrap\u003e:961: in _find_and_load_unlocked\r\n ???\r\n\u003cfrozen importlib._bootstrap\u003e:219: in _call_with_frames_removed\r\n ???\r\n\u003cfrozen importlib._bootstrap\u003e:1014: in _gcd_import\r\n ???\r\n\u003cfrozen importlib._bootstrap\u003e:991: in _find_and_load\r\n ???\r\n\u003cfrozen importlib._bootstrap\u003e:961: in _find_and_load_unlocked\r\n ???\r\n\u003cfrozen importlib._bootstrap\u003e:219: in _call_with_frames_removed\r\n ???\r\n\u003cfrozen importlib._bootstrap\u003e:1014: in _gcd_import\r\n ???\r\n\u003cfrozen importlib._bootstrap\u003e:991: in _find_and_load\r\n ???\r\n\u003cfrozen importlib._bootstrap\u003e:975: in _find_and_load_unlocked\r\n ???\r\n\u003cfrozen importlib._bootstrap\u003e:671: in _load_unlocked\r\n ???\r\n\u003cfrozen importlib._bootstrap_external\u003e:783: in exec_module\r\n ???\r\n\u003cfrozen importlib._bootstrap\u003e:219: in _call_with_frames_removed\r\n ???\r\nlib/matplotlib/__init__.py:107: in \u003cmodule\u003e\r\n from . import _api, cbook, docstring, rcsetup\r\nlib/matplotlib/cbook/__init__.py:31: in \u003cmodule\u003e\r\n from matplotlib import _api, _c_internal_utils\r\nE ImportError: cannot import name '_c_internal_utils' from partially initialized module 'matplotlib' (most likely due to a circular import) (/home/tkloczko/rpmbuild/BUILD/matplotlib-3.4.2/lib/matplotlib/__init__.py)\r\n========================================================================= short test summary info ==========================================================================\r\nERROR - ImportError: cannot import name '_c_internal_utils' from partially initialized module 'matplotlib' (most likely due to a circular import) (/home/tkloczko/rpmbui...\r\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n============================================================================= 1 error in 0.41s =============================================================================\r\n```\r\n","author":{"url":"https://github.com/kloczek","@type":"Person","name":"kloczek"},"datePublished":"2021-05-26T18:06:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/20312/matplotlib/issues/20312"}
| 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:130193aa-ea94-68d4-06a6-a8dd40b2ac4d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1B6:3FC474:2E8A01:420B31:6A5480EA |
| html-safe-nonce | d13415f52d806202dfae3e5a040c45fd0b2e8dca5ed3672e796da95d22dcec87 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMUI2OjNGQzQ3NDoyRThBMDE6NDIwQjMxOjZBNTQ4MEVBIiwidmlzaXRvcl9pZCI6IjQ1MTUzMzI1NDc3OTkxODc2OTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 52f8d4f03eb3da9d0ddcbd93be6235d9c0bb99582505e1ed0fe42159ea8963e4 |
| hovercard-subject-tag | issue:902761820 |
| 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/20312/issue_layout |
| twitter:image | https://opengraph.githubassets.com/099a2060a5210b84c925574bbf10484f5b27bf5de95aec4c97aaf327b4439794/matplotlib/matplotlib/issues/20312 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/099a2060a5210b84c925574bbf10484f5b27bf5de95aec4c97aaf327b4439794/matplotlib/matplotlib/issues/20312 |
| og:image:alt | I'm trying to build rpm package with matplotlib module. setuptools build and install are ok but pytest is failing for me. May I ask for poin on what I'm doing wrong? + PATH=/home/tkloczko/rpmbuild/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kloczek |
| 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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width