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

setup.py: fix import error reporting for cythonize import, see #8208 (master) #8215

Conversation

ThomasWaldmann
Copy link
Member

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented May 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.76%. Comparing base (7baf8be) to head (ce2a824).
Report is 1 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8215   +/-   ##
=======================================
  Coverage   83.75%   83.76%           
=======================================
  Files          67       67           
  Lines       12061    12061           
  Branches     2189     2189           
=======================================
+ Hits        10102    10103    +1     
  Misses       1367     1367           
+ Partials      592      591    -1     

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

@ThomasWaldmann ThomasWaldmann changed the title Fix cythonize import error reporting master setup.py: fix import error reporting for cythonize import, see #8208 (master) May 12, 2024
…ckup#8208

Looks like borg's setup.py has hidden the real cause of a cythonize ImportError.

There are basically 2 cases:
- either there is no Cython installed, then the import fails because the module can not be found, or
- there is some issue within Cython and the import fails due to that.

It's important not to hide the real cause, especially if we run into case 2.

case 1 is kind of expected and frequent, case 2 is rare.
That "failed to map segment from shared object" error msg is not
very helpful. Add a hint that the filesystem needs to be +exec
(== not noexec mounted, like it might be the case for /tmp on
some systems).
@ThomasWaldmann ThomasWaldmann force-pushed the fix-cythonize-import-error-reporting-master branch from 2227129 to ce2a824 Compare May 12, 2024 14:13
@ThomasWaldmann ThomasWaldmann merged commit 1525c72 into borgbackup:master May 12, 2024
13 checks passed
@ThomasWaldmann ThomasWaldmann deleted the fix-cythonize-import-error-reporting-master branch May 12, 2024 16:40
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.

None yet

2 participants