René's URL Explorer Experiment


Title: Random error of PyCapsule_New called with null pointer error when using seaborn matplotlib numpy and pandas · Issue #121290 · python/cpython · GitHub

Open Graph Title: Random error of PyCapsule_New called with null pointer error when using seaborn matplotlib numpy and pandas · Issue #121290 · python/cpython

X Title: Random error of PyCapsule_New called with null pointer error when using seaborn matplotlib numpy and pandas · Issue #121290 · python/cpython

Description: Bug report Bug description: import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from sklearn.datasets import load_diabetes data = load_diabetes() df = pd.DataFrame(data.data, columns=data.feature_...

Open Graph Description: Bug report Bug description: import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from sklearn.datasets import load_diabetes data = load_diabetes() df = pd.Da...

X Description: Bug report Bug description: import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from sklearn.datasets import load_diabetes data = load_diabetes() df = pd.Da...

Opengraph URL: https://github.com/python/cpython/issues/121290

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Random error of PyCapsule_New called with null pointer error when using seaborn matplotlib numpy and pandas","articleBody":"# Bug report\r\n\r\n### Bug description:\r\n\r\n```python\r\nimport pandas as pd\r\nimport numpy as np\r\nimport seaborn as sns\r\nimport matplotlib.pyplot as plt\r\nfrom sklearn.datasets import load_diabetes\r\n\r\n\r\ndata = load_diabetes()\r\ndf = pd.DataFrame(data.data, columns=data.feature_names)\r\ndf['target'] = data.target\r\n\r\ndf = df.drop_duplicates()\r\ndf = df.ffill()\r\n\r\ndf.hist(bins=30, grid=False)\r\nplt.suptitle('Histograms of Numerical Features')\r\nplt.show()\r\nsns.pairplot(df[['target', 'age', 'bmi', 's4', 's5']])\r\nplt.suptitle('Pair Plot of Target and Selected Features', y=1.02)\r\nplt.show()\r\ncorr_matrix = df.corr()\r\nsns.heatmap(corr_matrix, annot=True, cmap='coolwarm', fmt='.2f')\r\nplt.title('Heatmap of Correlation Matrix')\r\nplt.show()\r\nsns.boxplot(data=df.select_dtypes(include=[np.number]))\r\nplt.title('Boxplots for Numerical Features')\r\nplt.xticks(rotation=90)\r\nplt.show()\r\nplt.scatter(df['bmi'], df['age'], c=df['target'], cmap='viridis', alpha=0.6)\r\nplt.colorbar(label='Diabetes Progression')\r\nplt.xlabel('BMI')\r\nplt.ylabel('Age')\r\nplt.title('Scatter Plot of BMI vs Age Color-Coded by Target')\r\nplt.show()\r\n```\r\n\r\n#################\r\nThe above code is randomly giving the following error:\r\n```python\r\nTraceback (most recent call last):\r\n  File \"D:/python work/p10.py\", line 20, in \u003cmodule\u003e\r\n    sns.pairplot(df[['target', 'age', 'bmi', 's4', 's5']])\r\n  File \"C:\\Users\\admin\\AppData\\Roaming\\Python\\Python312\\site-packages\\seaborn\\axisgrid.py\", line 2119, in pairplot\r\n    grid = PairGrid(data, vars=vars, x_vars=x_vars, y_vars=y_vars, hue=hue,\r\n  File \"C:\\Users\\admin\\AppData\\Roaming\\Python\\Python312\\site-packages\\seaborn\\axisgrid.py\", line 1280, in __init__\r\n    fig = plt.figure(figsize=figsize)\r\n  File \"C:\\Users\\admin\\AppData\\Roaming\\Python\\Python312\\site-packages\\matplotlib\\pyplot.py\", line 1022, in figure\r\n    manager = new_figure_manager(\r\n  File \"C:\\Users\\admin\\AppData\\Roaming\\Python\\Python312\\site-packages\\matplotlib\\pyplot.py\", line 545, in new_figure_manager\r\n    return _get_backend_mod().new_figure_manager(*args, **kwargs)\r\n  File \"C:\\Users\\admin\\AppData\\Roaming\\Python\\Python312\\site-packages\\matplotlib\\backend_bases.py\", line 3521, in new_figure_manager\r\n    return cls.new_figure_manager_given_figure(num, fig)\r\n  File \"C:\\Users\\admin\\AppData\\Roaming\\Python\\Python312\\site-packages\\matplotlib\\backend_bases.py\", line 3526, in new_figure_manager_given_figure\r\n    return cls.FigureCanvas.new_manager(figure, num)\r\n  File \"C:\\Users\\admin\\AppData\\Roaming\\Python\\Python312\\site-packages\\matplotlib\\backend_bases.py\", line 1811, in new_manager\r\n    return cls.manager_class.create_with_canvas(cls, figure, num)\r\n  File \"C:\\Users\\admin\\AppData\\Roaming\\Python\\Python312\\site-packages\\matplotlib\\backends\\_backend_tk.py\", line 479, in create_with_canvas\r\n    with _restore_foreground_window_at_end():\r\n  File \"C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\contextlib.py\", line 137, in __enter__\r\n    return next(self.gen)\r\n  File \"C:\\Users\\admin\\AppData\\Roaming\\Python\\Python312\\site-packages\\matplotlib\\backends\\_backend_tk.py\", line 43, in _restore_foreground_window_at_end\r\n    foreground = _c_internal_utils.Win32_GetForegroundWindow()\r\nValueError: PyCapsule_New called with null pointer\r\n```\r\nSometime it executes successfully and sometimes it doesn't. If there  is no bug then please provide me solution for this.\r\n\r\n### CPython versions tested on:\r\n\r\n3.12\r\n\r\n### Operating systems tested on:\r\n\r\nWindows","author":{"url":"https://github.com/fx-Chintu","@type":"Person","name":"fx-Chintu"},"datePublished":"2024-07-02T19:54:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/121290/cpython/issues/121290"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:024bf9bd-150b-85ea-8011-5b6969ed6d70
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAF34:39E76C:23903EE:30611A5:6A542506
html-safe-nonce46c358411adb2f4637d5c54090286c329716cd73b7e784b268b5201f15e8b1fb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjM0OjM5RTc2QzoyMzkwM0VFOjMwNjExQTU6NkE1NDI1MDYiLCJ2aXNpdG9yX2lkIjoiNjQ5MTEyNjM2ODQ5NTIxNTg3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaccde3184b87a377e2c41c564050b9263f2c05f1c961aa2ff53b7a856c48d1c118
hovercard-subject-tagissue:2387040455
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/121290/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9be5eb182d40e0c9ca0444a6e414566e9b784bb05beb67ba98ef5a8045602902/python/cpython/issues/121290
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9be5eb182d40e0c9ca0444a6e414566e9b784bb05beb67ba98ef5a8045602902/python/cpython/issues/121290
og:image:altBug report Bug description: import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from sklearn.datasets import load_diabetes data = load_diabetes() df = pd.Da...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefx-Chintu
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/121290#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F121290
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F121290
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/121290
Reloadhttps://github.com/python/cpython/issues/121290
Reloadhttps://github.com/python/cpython/issues/121290
Please reload this pagehttps://github.com/python/cpython/issues/121290
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/121290
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Random error of PyCapsule_New called with null pointer error when using seaborn matplotlib numpy and pandashttps://github.com/python/cpython/issues/121290#top
https://github.com/fx-Chintu
fx-Chintuhttps://github.com/fx-Chintu
on Jul 2, 2024https://github.com/python/cpython/issues/121290#issue-2387040455
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.