Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the PyMUTEX_LOCK error on Mac #538

Merged
merged 12 commits into from
May 17, 2024
Merged

Fix the PyMUTEX_LOCK error on Mac #538

merged 12 commits into from
May 17, 2024

Conversation

wangyinz
Copy link
Member

When importing any of the pybind11 compiled modules. It will error out with the error:

% python -c "import  mspasspy.ccore.io"                           
Fatal Python error: PyMUTEX_LOCK(gil->mutex) failed
Python runtime state: unknown

zsh: abort      python -c "import  mspasspy.ccore.io"

This is on Python 3.8, but there are different behavior of seemingly the same error on other versions of Python too. The discussion here helped identified the issue.

Copy link

codecov bot commented May 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.58%. Comparing base (9e1e025) to head (b2b513b).

Current head b2b513b differs from pull request most recent head 3baf40b

Please upload reports for the commit 3baf40b to get more accurate results.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #538   +/-   ##
=======================================
  Coverage   54.58%   54.58%           
=======================================
  Files         146      146           
  Lines       22363    22363           
  Branches     1336     1336           
=======================================
  Hits        12207    12207           
  Misses       9816     9816           
  Partials      340      340           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wangyinz wangyinz merged commit f47a7ad into master May 17, 2024
10 checks passed
@wangyinz wangyinz deleted the fix_PyMUTEX_LOCK_error branch May 17, 2024 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant