Error on python helloBPWriter example

Created by: jychoi-hpc

Just tried to run helloBPWriter.py but got the following error:

[jychoi-mbp:78772] *** Process received signal ***
[jychoi-mbp:78772] Signal: Abort trap: 6 (6)
[jychoi-mbp:78772] Signal code:  (0)
[jychoi-mbp:78772] [ 0] 0   libsystem_platform.dylib            0x00007fff612d1f5a _sigtramp + 26
[jychoi-mbp:78772] [ 1] 0   ???                                 0x00007ffe00020008 0x0 + 140728898551816
[jychoi-mbp:78772] [ 2] 0   libsystem_c.dylib                   0x00007fff6106f1ae abort + 127
[jychoi-mbp:78772] [ 3] 0   libc++abi.dylib                     0x00007fff5ef69f8f __cxa_bad_cast + 0
[jychoi-mbp:78772] [ 4] 0   libc++abi.dylib                     0x00007fff5ef6a113 _ZL25default_terminate_handlerv + 241
[jychoi-mbp:78772] [ 5] 0   libobjc.A.dylib                     0x00007fff603abeab _ZL15_objc_terminatev + 105
[jychoi-mbp:78772] [ 6] 0   libc++abi.dylib                     0x00007fff5ef857c9 _ZSt11__terminatePFvvE + 8
[jychoi-mbp:78772] [ 7] 0   libc++abi.dylib                     0x00007fff5ef8526f _ZN10__cxxabiv1L22exception_cleanup_funcE19_Unwind_Reason_CodeP17_Unwind_Exception + 0
[jychoi-mbp:78772] [ 8] 0   adios2.cpython-37m-darwin.so        0x0000000114cedc07 _ZN8pybind114reprENS_6handleE + 119
[jychoi-mbp:78772] [ 9] 0   adios2.cpython-37m-darwin.so        0x0000000114ce846c _ZN8pybind1112cpp_function10dispatcherEP7_objectS2_S2_ + 18140
[jychoi-mbp:78772] [10] 0   python                              0x00000001026a9958 _PyMethodDef_RawFastCallKeywords + 392
[jychoi-mbp:78772] [11] 0   python                              0x00000001026a9420 _PyObject_FastCallKeywords + 592
[jychoi-mbp:78772] [12] 0   python                              0x00000001027e9be4 call_function + 404
[jychoi-mbp:78772] [13] 0   python                              0x00000001027e7684 _PyEval_EvalFrameDefault + 45284
[jychoi-mbp:78772] [14] 0   python                              0x00000001027db2d2 _PyEval_EvalCodeWithName + 418
[jychoi-mbp:78772] [15] 0   python                              0x00000001027d60bb builtin_exec + 347
[jychoi-mbp:78772] [16] 0   python                              0x00000001026a98b6 _PyMethodDef_RawFastCallKeywords + 230
[jychoi-mbp:78772] [17] 0   python                              0x00000001027e9b47 call_function + 247
[jychoi-mbp:78772] [18] 0   python                              0x00000001027e76bf _PyEval_EvalFrameDefault + 45343
[jychoi-mbp:78772] [19] 0   python                              0x00000001026c29f4 gen_send_ex + 180
[jychoi-mbp:78772] [20] 0   python                              0x00000001027e2837 _PyEval_EvalFrameDefault + 25239
[jychoi-mbp:78772] [21] 0   python                              0x00000001026c29f4 gen_send_ex + 180
[jychoi-mbp:78772] [22] 0   python                              0x00000001027e2837 _PyEval_EvalFrameDefault + 25239
[jychoi-mbp:78772] [23] 0   python                              0x00000001026c29f4 gen_send_ex + 180
[jychoi-mbp:78772] [24] 0   python                              0x00000001026a9853 _PyMethodDef_RawFastCallKeywords + 131
[jychoi-mbp:78772] [25] 0   python                              0x00000001026b68c4 _PyMethodDescr_FastCallKeywords + 84
[jychoi-mbp:78772] [26] 0   python                              0x00000001027e9bd7 call_function + 391
[jychoi-mbp:78772] [27] 0   python                              0x00000001027e75ee _PyEval_EvalFrameDefault + 45134
[jychoi-mbp:78772] [28] 0   python                              0x00000001026a9078 function_code_fastcall + 120
[jychoi-mbp:78772] [29] 0   python                              0x00000001027e9afe call_function + 174
[jychoi-mbp:78772] *** End of erro

I think the error happens in the following line:

# ADIOS Variable name, shape, start, offset, constant dims
ioArray = bpIO.DefineVariable(
    "bpArray", [size * Nx], [rank * Nx], [Nx], adios2.ConstantDims, myArray)