René's URL Explorer Experiment


Title: `FileExistsError` error when `psyplot` is imported from multiple parallel processes · Issue #52 · psyplot/psyplot · GitHub

Open Graph Title: `FileExistsError` error when `psyplot` is imported from multiple parallel processes · Issue #52 · psyplot/psyplot

X Title: `FileExistsError` error when `psyplot` is imported from multiple parallel processes · Issue #52 · psyplot/psyplot

Description: Hello! First of all, thanks for this great package!! Problem description We (the ESMValTool community) found an issue when importing psyplot from different parallel processes in a test environment, which leads to a race condition where t...

Open Graph Description: Hello! First of all, thanks for this great package!! Problem description We (the ESMValTool community) found an issue when importing psyplot from different parallel processes in a test environment,...

X Description: Hello! First of all, thanks for this great package!! Problem description We (the ESMValTool community) found an issue when importing psyplot from different parallel processes in a test environment,...

Opengraph URL: https://github.com/psyplot/psyplot/issues/52

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`FileExistsError` error when `psyplot` is imported from multiple parallel processes","articleBody":"Hello!\r\n\r\nFirst of all, thanks for this great package!!\r\n\r\n#### Problem description\r\n\r\nWe (the [ESMValTool](https://github.com/ESMValGroup/ESMValTool) community) found an issue when importing `psyplot` from different parallel processes in a test environment, which leads to a race condition where the package finds that it has no config file and tries to create that, but two processes try that at the same time, resulting in a `FileExistsError: [Errno 17] File exists: '/Users/runner/.config/psyplot'`. Note that we only found this behavior for OSX.\r\n\r\n#### Code Sample, a copy-pastable example if possible\r\n\r\nAn error on our CI machine using the import below is given [here](https://github.com/ESMValGroup/ESMValTool/runs/6470528634?check_suite_focus=true),\r\n\r\n```python\r\nfrom psyplot.config.logsetup import _get_home\r\n```\r\n\r\nbut we also found the [same problem](https://github.com/ESMValGroup/ESMValTool/runs/6462593093?check_suite_focus=true#step:7:50) when using\r\n\r\n```python\r\nimport psyplot.project as psy\r\n```\r\n\r\nPlease note that due to the race condition, the error cannot be reproduced consistently.\r\n\r\n#### Expected Output\r\n\r\nNo error and no race condition.\r\n\r\n#### Full error message\r\n\r\n\u003cdetails\u003e\r\n\r\n```bash\r\n tests/unit/test_platform.py:4: in \u003cmodule\u003e\r\n    from psyplot.config.logsetup import _get_home\r\n../../../miniconda3/envs/esmvaltool/lib/python3.9/site-packages/psyplot/__init__.py:30: in \u003cmodule\u003e\r\n    from psyplot.config.rcsetup import rcParams\r\n../../../miniconda3/envs/esmvaltool/lib/python3.9/site-packages/psyplot/config/__init__.py:42: in \u003cmodule\u003e\r\n    config_path = psyplot_fname()\r\n../../../miniconda3/envs/esmvaltool/lib/python3.9/site-packages/psyplot/config/rcsetup.py:978: in psyplot_fname\r\n    configdir = get_configdir()\r\n../../../miniconda3/envs/esmvaltool/lib/python3.9/site-packages/psyplot/config/rcsetup.py:1028: in get_configdir\r\n    os.makedirs(p)\r\n../../../miniconda3/envs/esmvaltool/lib/python3.9/os.py:225: in makedirs\r\n    mkdir(name, mode)\r\nE   FileExistsError: [Errno 17] File exists: '/Users/runner/.config/psyplot'\r\n```\r\n\r\n\u003c/details\u003e\r\n\r\n#### Output of ``psyplot -aV``\r\n\r\n\u003cdetails\u003e\r\n\r\n```\r\npsyplot:\r\n  requirements:\r\n    matplotlib: 3.5.2\r\n    numpy: 1.22.3\r\n    pandas: 1.4.2\r\n    python: 3.8.13 | packaged by conda-forge\r\n    xarray: 2022.3.0\r\n  version: 1.4.2\r\n```\r\n\r\n\u003c/details\u003e\r\n\r\n#### NOTE\r\nThis is a bug report.\r\n\r\nFor requesting new features, use [this template](https://github.com/psyplot/psyplot/issues/new?template=new_feature.md\u0026title=NEW+FEATURE:).\r\n\r\nFor changing existing features, use [this template](https://github.com/psyplot/psyplot/issues/new?template=change_feature.md\u0026title=CHANGE+FEATURE:).\r\n","author":{"url":"https://github.com/schlunma","@type":"Person","name":"schlunma"},"datePublished":"2022-05-17T14:46:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/52/psyplot/issues/52"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:71caf09b-a633-0aa1-b5f5-cbe3814b714d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD822:1273CB:E84C43:13D5C27:698DC2BC
html-safe-nonce9ad64a0b0f4cd3fcb40e504c2c4f189c05f84472c90e736a03fba554cd33c5f3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODIyOjEyNzNDQjpFODRDNDM6MTNENUMyNzo2OThEQzJCQyIsInZpc2l0b3JfaWQiOiI4MTIxMTQ0MDA3MjQzNzExMTY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac843ce0f1803876d4761b25c25681b06602c052163ea496a8d72197d7f62e7a05
hovercard-subject-tagissue:1238756654
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/psyplot/psyplot/52/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c2391c26d100a1be49441a515dff7f018ad73b0120a7b1d9d7933236eea46faf/psyplot/psyplot/issues/52
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c2391c26d100a1be49441a515dff7f018ad73b0120a7b1d9d7933236eea46faf/psyplot/psyplot/issues/52
og:image:altHello! First of all, thanks for this great package!! Problem description We (the ESMValTool community) found an issue when importing psyplot from different parallel processes in a test environment,...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameschlunma
hostnamegithub.com
expected-hostnamegithub.com
None2457fd9a1b17ca7f38c3c2653895ccb2e0dd04f18f77446a21354e9bc4b7902f
turbo-cache-controlno-preview
go-importgithub.com/psyplot/psyplot git https://github.com/psyplot/psyplot.git
octolytics-dimension-user_id60222268
octolytics-dimension-user_loginpsyplot
octolytics-dimension-repository_id87944102
octolytics-dimension-repository_nwopsyplot/psyplot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id87944102
octolytics-dimension-repository_network_root_nwopsyplot/psyplot
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
release878672b82363fd98fbdc5bd0edb68e572c8a8d9b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/psyplot/psyplot/issues/52#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpsyplot%2Fpsyplot%2Fissues%2F52
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2Fpsyplot%2Fpsyplot%2Fissues%2F52
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=psyplot%2Fpsyplot
Reloadhttps://github.com/psyplot/psyplot/issues/52
Reloadhttps://github.com/psyplot/psyplot/issues/52
Reloadhttps://github.com/psyplot/psyplot/issues/52
psyplot https://github.com/psyplot
psyplothttps://github.com/psyplot/psyplot
Notifications https://github.com/login?return_to=%2Fpsyplot%2Fpsyplot
Fork 15 https://github.com/login?return_to=%2Fpsyplot%2Fpsyplot
Star 79 https://github.com/login?return_to=%2Fpsyplot%2Fpsyplot
Code https://github.com/psyplot/psyplot
Issues 8 https://github.com/psyplot/psyplot/issues
Pull requests 0 https://github.com/psyplot/psyplot/pulls
Actions https://github.com/psyplot/psyplot/actions
Projects 0 https://github.com/psyplot/psyplot/projects
Security 0 https://github.com/psyplot/psyplot/security
Insights https://github.com/psyplot/psyplot/pulse
Code https://github.com/psyplot/psyplot
Issues https://github.com/psyplot/psyplot/issues
Pull requests https://github.com/psyplot/psyplot/pulls
Actions https://github.com/psyplot/psyplot/actions
Projects https://github.com/psyplot/psyplot/projects
Security https://github.com/psyplot/psyplot/security
Insights https://github.com/psyplot/psyplot/pulse
New issuehttps://github.com/login?return_to=https://github.com/psyplot/psyplot/issues/52
New issuehttps://github.com/login?return_to=https://github.com/psyplot/psyplot/issues/52
#53https://github.com/psyplot/psyplot/pull/53
FileExistsError error when psyplot is imported from multiple parallel processeshttps://github.com/psyplot/psyplot/issues/52#top
#53https://github.com/psyplot/psyplot/pull/53
https://github.com/Chilipp
bughttps://github.com/psyplot/psyplot/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/schlunma
https://github.com/schlunma
schlunmahttps://github.com/schlunma
on May 17, 2022https://github.com/psyplot/psyplot/issues/52#issue-1238756654
ESMValToolhttps://github.com/ESMValGroup/ESMValTool
herehttps://github.com/ESMValGroup/ESMValTool/runs/6470528634?check_suite_focus=true
same problemhttps://github.com/ESMValGroup/ESMValTool/runs/6462593093?check_suite_focus=true#step:7:50
this templatehttps://github.com/psyplot/psyplot/issues/new?template=new_feature.md&title=NEW+FEATURE:
this templatehttps://github.com/psyplot/psyplot/issues/new?template=change_feature.md&title=CHANGE+FEATURE:
Chilipphttps://github.com/Chilipp
bughttps://github.com/psyplot/psyplot/issues?q=state%3Aopen%20label%3A%22bug%22
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.