You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FileExistsError error when psyplot is imported from multiple parallel processes #52
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 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.
Code Sample, a copy-pastable example if possible
An error on our CI machine using the import below is given here,
Activity
Chilipp commentedon May 18, 2022
thanks for reporting @schlunma! this should be easy to fix. I'll make a PR
minor fix to avoid race conditions when creating dirs
52 fileexistserror (#53)