Bug with `cugraph` and `MAT.jl`
Affects: PythonCall
Describe the bug I tried to do
using MAT, PythonCall
py_cugraph = pyimport("cugraph");
and it errored (see the end of the bug report for the first few lines of the error).
If, instead I try
using PythonCall
py_cugraph = pyimport("cugraph");
using MAT
it works fine (no errors), and I can run commands from cugraph. But this cannot work when preparing a package because all using commands supersede the pyimport commands defined in the __init()__ routine. g
I am copying below the state of the Project.toml and CondaPkg.toml that reproduces this error on Linux.
System Information about the system:
- The operating system:
Linux linux53 5.15.0-75-generic #82-Ubuntu SMP Tue Jun 6 23:10:23 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux Julia v1.9.0PythonCall v0.9.13MAT v0.10.5Pkg.status()Status `/tmp/problem/Project.toml` [992eb4ea] CondaPkg v0.2.18 [23992714] MAT v0.10.5 [6099a3de] PythonCall v0.9.13CondaPkg.status()CondaPkg Status /tmp/problem/CondaPkg.toml Environment /tmp/problem/.CondaPkg/env Packages cudf v23.06.01 (23.06.1) cugraph v23.06.02 (23.06.2) scipy v1.11.1 (1.11.1) Channels conda-forge nvidia rapidsai
Additional context I am sharing here the first few lines of the error:
s2n_init() failed: 402653193 (NULL pointer encountered)
Fatal error condition occurred in /home/conda/feedstock_root/build_artifacts/aws-c-io_1686376437702/work/source/s2n/s2n_tls_channel_handler.c:203: 0 && "s2n_init() failed"
Exiting Application
################################################################################
Stack trace:
################################################################################
/tmp/problem/.CondaPkg/env/lib/python3.10/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_backtrace_print+0x59) [0x7f03a8af0839]
/tmp/problem/.CondaPkg/env/lib/python3.10/site-packages/pyarrow/../../../././libaws-c-common.so.1(aws_fatal_assert+0x46) [0x7f03a8ade646]
/tmp/problem/.CondaPkg/env/lib/python3.10/site-packages/pyarrow/../../../././libaws-c-io.so.1.0.0(+0x29641) [0x7f03a8995641]
/tmp/problem/.CondaPkg/env/lib/python3.10/site-packages/pyarrow/../../../././libaws-c-mqtt.so.1.0.0(aws_mqtt_library_init+0x21) [0x7f03a8a902c1]
/tmp/problem/.CondaPkg/env/lib/python3.10/site-packages/pyarrow/../../.././libaws-crt-cpp.so(_ZN3Aws3Crt9ApiHandleC2EP13aws_allocator+0x2d) [0x7f03a9103dad]
/tmp/problem/.CondaPkg/env/lib/python3.10/site-packages/pyarrow/../../.././libaws-cpp-sdk-core.so(_ZN3Aws13InitializeCrtEv+0x30) [0x7f03a92ceaf0]
/tmp/problem/.CondaPkg/env/lib/python3.10/site-packages/pyarrow/../../.././libaws-cpp-sdk-core.so(_ZN3Aws7InitAPIERKNS_10SDKOptionsE+0x4a) [0x7f03a92cd46a]
/tmp/problem/.CondaPkg/env/lib/python3.10/site-packages/pyarrow/../../../libarrow.so.1100(+0x108e233) [0x7f03ab0bf233]
/tmp/problem/.CondaPkg/env/lib/python3.10/site-packages/pyarrow/../../../libarrow.so.1100(_ZN5arrow2fs12InitializeS3ERKNS0_15S3GlobalOptionsE+0x47) [0x7f03ab0c4127]
/tmp/problem/.CondaPkg/env/lib/python3.10/site-packages/pyarrow/_s3fs.cpython-310-x86_64-linux-gnu.so(+0x139e1) [0x7f03a41a69e1]
This sort of thing is often caused by conflicting versions of libraries being loaded - in this case presumably it's Python and Matlab conflicting.
I'd recommend starting Julia like LD_DEBUG=libs julia, which prints out the paths of any libraries being loaded. Run your two examples above and see if there are any libraries which are loaded from different paths between the two runs.
This issue has been marked as stale because it has been open for 30 days with no activity. If the issue is still relevant then please leave a comment, or else it will be closed in 7 days.
This issue has been closed because it has been stale for 7 days. You can re-open it if it is still relevant.