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

Raise ImportError if CDLL of openmp library fails #1868

Merged
merged 2 commits into from
Aug 27, 2021

Conversation

isuruf
Copy link
Contributor

@isuruf isuruf commented Aug 6, 2021

Needed for conda-forge/scipy-feedstock where we are cross compiling for osx-arm64.

@h-vetinari
Copy link

Ping @serge-sans-paille, this is blocking the osx-arm builds for scipy in conda-forge, see conda-forge/scipy-feedstock#183

@serge-sans-paille
Copy link
Owner

@h-vetinari sorry for the delay. If I understand correctly, one may end up finding libgomp but for the wrong arch, right?

omp/__init__.py Outdated
try:
self.libomp = ctypes.CDLL(libgomp_path)
except OSError:
raise ImportError("I couldn't load the openmp library found."

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe be more specific in the message, something like "found openMP library '{}' but couldn't load it. This may happen..."

@serge-sans-paille serge-sans-paille merged commit 110ad5e into serge-sans-paille:master Aug 27, 2021
@serge-sans-paille
Copy link
Owner

Sorry for the delay and thanks for the quick update o/

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.

3 participants