kszucs commented on code in PR #45043: URL: https://github.com/apache/arrow/pull/45043#discussion_r1888757613
########## python/pyarrow/__init__.py: ########## @@ -62,7 +62,24 @@ def parse_git(root, **kwargs): # to workaround Cython bug in https://github.com/cython/cython/issues/3603 _gc_enabled = _gc.isenabled() _gc.disable() -import pyarrow.lib as _lib + +try: + import pyarrow.lib as _lib +except ImportError: + if _os.name == 'nt': + # Give a clearer error message if the import failed because of missing + # the C++ runtime for MSVC (see GH-44855). + import ctypes + try: + ctypes.CDLL('msvcp140.dll') Review Comment: The new approach looks good to me. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
