chaokunyang opened a new issue, #2475: URL: https://github.com/apache/fory/issues/2475
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/fory/issues) and found no similar issues. ### Version main ### Component(s) Python ### Minimal reproduce step import pyfory ### What did you expect to see? no warning ### What did you see instead? If pyarrow not installed, import pyfory will issue a warning: ``` >>> import pyfory /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyfory/__init__.py:56: RuntimeWarning: Fory format initialization failed, please ensure pyarrow is installed with version which fory is compiled with: dlopen(/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyfory/format/_format.so, 0x0002): Library not loaded: '@rpath/libarrow.1500.dylib' Referenced from: '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyfory/format/_format.so' Reason: tried: '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyfory/format/../../../_solib_darwin_x86_64/_U@local_Uconfig_Upyarrow_S_S_Carrow_Ushared_Ulibrary___Uexternal_Slocal_Uconfig_Upyarrow/libarrow.1500.dylib' (no such file), '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyfory/format/_format.so.runfiles/fory/_solib_darwin_x86_64/_U@local_Uconfig_Upyarrow_S_S_Carrow_Ushared_Ulibrary___Uexternal_Slocal_Uconfig_Upyarrow/libarrow.1500.dylib' (no such file), '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyfory/format/../../../_solib_darwin_x86_64/_U@local_Uconfig_Upyarrow_S_S_Carrow_Upython_Ushared_Ulibrary___Uexternal_Slocal_Uconfig_Upyarrow/libarrow.1500.dylib' (no such file), '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyfory/format/_format.so.runfiles/fory/_solib_darwin_x86_64/_U@local_Uconfig_Upyarrow_S_S_Carrow_Upython_Ushared_Ulibrary___U external_Slocal_Uconfig_Upyarrow/libarrow.1500.dylib' (no such file), '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyfory/format/../../../_solib_darwin_x86_64/_U@local_Uconfig_Upyarrow_S_S_Carrow_Ushared_Ulibrary___Uexternal_Slocal_Uconfig_Upyarrow/libarrow.1500.dylib' (no such file), '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyfory/format/_format.so.runfiles/fory/_solib_darwin_x86_64/_U@local_Uconfig_Upyarrow_S_S_Carrow_Ushared_Ulibrary___Uexternal_Slocal_Uconfig_Upyarrow/libarrow.1500.dylib' (no such file), '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyfory/format/../../../_solib_darwin_x86_64/_U@local_Uconfig_Upyarrow_S_S_Carrow_Upython_Ushared_Ulibrary___Uexternal_Slocal_Uconfig_Upyarrow/libarrow.1500.dylib' (no such file), '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyfory/format/_format.so.runfiles/fory/_solib_darwin_x86_64/_U@local_Uconf ig_Upyarrow_S_S_Carrow_Upython_Ushared_Ulibrary___Uexternal_Slocal_Uconfig_Upyarrow/libarrow.1500.dylib' (no such file), '/usr/lib/libarrow.1500.dylib' (no such file) from pyfory.format import * # noqa: F401,F403 # pylint: disable=unused-import ``` ### Anything Else? _No response_ ### Are you willing to submit a PR? - [x] I'm willing to submit a PR! -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
