pandas-dev / pandas

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
https://pandas.pydata.org
BSD 3-Clause "New" or "Revised" License
43.48k stars 17.88k forks source link

BUILD: fail to compile for x86_64 architecture in Mac M1 #54124

Closed subhashsharma closed 1 month ago

subhashsharma commented 1 year ago

Installation check

Platform

macOS-10.16-x86_64-i386-64bit

Installation Method

pip install

pandas Version

2.0.3

Python Version

3.10

Installation Logs

[DEBUG ] creating build/temp.macosx-13.2-x86_64-cpython-310/pandas/_libs/window [DEBUG ] /var/folders/_z/2wq_30nj20g7207df29p270r0000gn/T/tmp8kevq6p5 -O3 -miphoneos-version-min=9.0 -I/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/include/x86_64/ffi -I/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/include/x86_64/openssl -I/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/include/common/numpy -I/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/include/x86_64 -O3 -miphoneos-version-min=9.0 -I/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/include/x86_64/ffi -I/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/include/x86_64/openssl -I/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/include/common/numpy -I/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/include/x86_64 -g -DNPY_NO_DEPRECATED_API=0 -Ipandas/_libs/window -I/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/hostpython3/lib/python3.10/site-packages/numpy/core/include -I/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/hostpython3/include/python3.10 -c pandas/_libs/window/aggregations.cpp -o build/temp.macosx-13.2-x86_64-cpython-310/pandas/_libs/window/aggregations.o -Wno-error=unreachable-code [DEBUG ] creating build/lib.macosx-13.2-x86_64-cpython-310/pandas/_libs/window [DEBUG ] /var/folders/_z/2wq_30nj20g7207df29p270r0000gn/T/tmp0r9a4sie -arch x86_64 -L/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.4.sdk/usr/lib -miphoneos-version-min=9.0 -O3 -miphoneos-version-min=9.0 -I/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/include/x86_64/ffi -I/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/include/x86_64/openssl -I/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/include/common/numpy -I/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/include/x86_64 -g build/temp.macosx-13.2-x86_64-cpython-310/pandas/_libs/window/aggregations.o -o build/lib.macosx-13.2-x86_64-cpython-310/pandas/_libs/window/aggregations.cpython-310-darwin.so [DEBUG ] Undefined symbols for architecture x86_64: [DEBUG ] "_PyBaseObject_Type", referenced from: [DEBUG ] __Pyx_setup_reduce(_object*) in aggregations.o [DEBUG ] __pyx_memoryview_is_slice(__pyx_memoryview_obj*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview_setitem_slice_assignment(__pyx_memoryview_obj*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_tp_new_array(_typeobject*, _object*, _object*) in aggregations.o [DEBUG ] __Pyx__ArgTypeTest(_object*, _typeobject*, char const*, int) in aggregations.o [DEBUG ] __Pyx_PyObject_GetAttrStr_ClearAttributeError() in aggregations.o [DEBUG ] __Pyx_inner_PyErr_GivenExceptionMatches2(_object*, _object*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyBuffer_Release", referenced from: [DEBUG ] __pyx_tp_dealloc_memoryview(_object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_1roll_sum(_object*, _object*, _object*) in aggregations.o [DEBUG ] __Pyx__GetBufferAndValidate(bufferinfo*, _object*, __Pyx_TypeInfo*, int, int, int, __Pyx_BufFmt_StackElem*) in aggregations.o [DEBUG ] __pyx_f_6pandas_5_libs_6window_12aggregations_is_monotonic_increasing_start_end_bounds(tagPyArrayObject_fields*, tagPyArrayObject_fields*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_3roll_mean(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_5roll_var(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_7roll_skew(_object*, _object*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyBytes_FromString", referenced from: [DEBUG ] __pyx_memoryview_convert_item_to_object(__pyx_memoryview_obj*, char*) in aggregations.o [DEBUG ] __pyx_memoryview_assign_item_from_object(__pyx_memoryview_obj*, char*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview_copy_new_contig(__Pyx_memviewslice const*, char const*, int, unsigned long, int, int) in aggregations.o [DEBUG ] "_PyBytes_FromStringAndSize", referenced from: [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] __pyx_memoryview_convert_item_to_object(__pyx_memoryview_obj*, char*) in aggregations.o [DEBUG ] "_PyBytes_Type", referenced from: [DEBUG ] __pyx_memoryview_assign_item_from_object(__pyx_memoryview_obj*, char*, _object*) in aggregations.o [DEBUG ] __pyx_tp_new_array(_typeobject*, _object*, _object*) in aggregations.o [DEBUG ] "_PyCFunction_Type", referenced from: [DEBUG ] __pyx_tp_new_array(_typeobject*, _object*, _object*) in aggregations.o [DEBUG ] __Pyx_PyObject_CallOneArg(_object*, _object*) in aggregations.o [DEBUG ] __pyx_unpickle_Enum__set_state(__pyx_MemviewEnum_obj*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview_copy_contents(__Pyx_memviewslice, __Pyx_memviewslice, int, int, int) in aggregations.o [DEBUG ] __pyx_memoryview_err_dim(_object*, char*, int) in aggregations.o [DEBUG ] __pyx_memoryview___repr__(_object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_7roll_skew(_object*, _object*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyCMethod_New", referenced from: [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] "_PyCapsule_GetPointer", referenced from: [DEBUG ] __pyx_f_5numpy_import_array() in aggregations.o [DEBUG ] "_PyCapsule_New", referenced from: [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] __Pyx_modinit_type_init_code() in aggregations.o [DEBUG ] __Pyx_SetVtable(_object*, void*) in aggregations.o [DEBUG ] "_PyCapsule_Type", referenced from: [DEBUG ] __pyx_f_5numpy_import_array() in aggregations.o [DEBUG ] "_PyCode_New", referenced from: [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] "_PyCode_NewEmpty", referenced from: [DEBUG ] __Pyx_AddTraceback(char const*, int, int, char const*) in aggregations.o [DEBUG ] "_PyDict_Copy", referenced from: [DEBUG ] __pyx_pf_6pandas_5_libs_6window_12aggregations_20roll_apply(_object*, _object*, tagPyArrayObject_fields*, tagPyArrayObject_fields*, long, _object*, int, _object*, _object*) in aggregations.o [DEBUG ] "_PyDict_DelItem", referenced from: [DEBUG ] __Pyx_setup_reduce(_object*) in aggregations.o [DEBUG ] "_PyDict_GetItemString", referenced from: [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] "_PyDict_GetItemWithError", referenced from: [DEBUG ] __Pyx_PyDict_GetItem(_object*, _object*) in aggregations.o [DEBUG ] "_PyDict_New", referenced from: [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] __Pyx_Import(_object*, _object*, int) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_1roll_sum(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_3roll_mean(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_5roll_var(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_7roll_skew(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_9roll_kurt(_object*, _object*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyDict_Next", referenced from: [DEBUG ] __Pyx_ParseOptionalKeywords(_object*, _object***, _object*, _object**, long, char const*) in aggregations.o [DEBUG ] "_PyDict_SetItem", referenced from: [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] __Pyx_modinit_type_init_code() in aggregations.o [DEBUG ] __Pyx_SetVtable(_object*, void*) in aggregations.o [DEBUG ] __Pyx_setup_reduce(_object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_1roll_sum(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_3roll_mean(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_5roll_var(_object*, _object*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyDict_SetItemString", referenced from: [DEBUG ] __pyx_pymod_create(_object*, PyModuleDef*) in aggregations.o [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] "_PyDict_Size", referenced from: [DEBUG ] __pyx_tp_new_array(_typeobject*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_MemviewEnum___init__(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_tp_new_memoryview(_typeobject*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_1roll_sum(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_3roll_mean(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_5roll_var(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_7roll_skew(_object*, _object*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyDict_Type", referenced from: [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_17roll_quantile(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_19roll_rank(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_21roll_apply(_object*, _object*, _object*) in aggregations.o [DEBUG ] "_PyErr_Clear", referenced from: [DEBUG ] __pyx_pymod_create(_object*, PyModuleDef*) in aggregations.o [DEBUG ] __Pyx_AddTraceback(char const*, int, int, char const*) in aggregations.o [DEBUG ] __Pyx_setup_reduce(_object*) in aggregations.o [DEBUG ] __pyx_memoryview_get_item_pointer(__pyx_memoryview_obj*, _object*) in aggregations.o [DEBUG ] __pyx_tp_getattro_array(_object*, _object*) in aggregations.o [DEBUG ] __Pyx_PyObject_GetIndex(_object*, _object*) in aggregations.o [DEBUG ] __Pyx_GetItemInt_Fast(_object*, long, int, int, int) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyErr_ExceptionMatches", referenced from: [DEBUG ] __pyx_pymod_create(_object*, PyModuleDef*) in aggregations.o [DEBUG ] __Pyx_ImportFrom(_object*, _object*) in aggregations.o [DEBUG ] __pyx_tp_getattro_array(_object*, _object*) in aggregations.o [DEBUG ] __Pyx_GetItemInt_Fast(_object*, long, int, int, int) in aggregations.o [DEBUG ] __pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum(_object*, _object*, _object*) in aggregations.o [DEBUG ] "_PyErr_Fetch", referenced from: [DEBUG ] __pyx_tp_dealloc_array(_object*) in aggregations.o [DEBUG ] __pyx_tp_dealloc_memoryview(_object*) in aggregations.o [DEBUG ] __pyx_tp_dealloc__memoryviewslice(_object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_1roll_sum(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_3roll_mean(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_5roll_var(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_7roll_skew(_object*, _object*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyErr_Format", referenced from: [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] __pyx_f_5numpy_import_array() in aggregations.o [DEBUG ] __Pyx_ImportFrom(_object*, _object*) in aggregations.o [DEBUG ] __Pyx_GetBuiltinName(_object*) in aggregations.o [DEBUG ] __Pyx_setup_reduce(_object*) in aggregations.o [DEBUG ] __pyx_memoryview_setitem_slice_assignment(__pyx_memoryview_obj*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview_assign_item_from_object(__pyx_memoryview_obj*, char*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyErr_GivenExceptionMatches", referenced from: [DEBUG ] __Pyx_PyObject_GetIndex(_object*, _object*) in aggregations.o [DEBUG ] __Pyx_PyObject_GetAttrStr_ClearAttributeError() in aggregations.o [DEBUG ] __Pyx_PyErr_ExceptionMatchesInState(_ts*, _object*) in aggregations.o [DEBUG ] __Pyx_PyErr_ExceptionMatchesTuple(_object*, _object*) in aggregations.o [DEBUG ] __Pyx_PyErr_GivenExceptionMatches(_object*, _object*) in aggregations.o [DEBUG ] __pyx_pw___pyx_MemviewEnum_1__reduce_cython__(_object*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview___getitem__(_object*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyErr_NoMemory", referenced from: [DEBUG ] __pyx_memoryview_setitem_slice_assign_scalar(__pyx_memoryview_obj*, __pyx_memoryview_obj*, _object*) in aggregations.o [DEBUG ] "_PyErr_NormalizeException", referenced from: [DEBUG ] __Pyx__GetException(_ts*, _object**, _object**, _object**) in aggregations.o [DEBUG ] "_PyErr_Occurred", referenced from: [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] __Pyx__GetModuleGlobalName(_object*, unsigned long long*, _object**) in aggregations.o [DEBUG ] __pyx_array_getbuffer(_object*, bufferinfo*, int) in aggregations.o [DEBUG ] __Pyx_PyObject_Call(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview_getbuffer(_object*, bufferinfo*, int) in aggregations.o [DEBUG ] __pyx_array_get_memview(__pyx_array_obj*) in aggregations.o [DEBUG ] __Pyx_setup_reduce(_object*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyErr_PrintEx", referenced from: [DEBUG ] __pyx_f_6pandas_5_libs_6window_12aggregations_is_monotonic_increasing_start_end_bounds(tagPyArrayObject_fields*, tagPyArrayObject_fields*) in aggregations.o [DEBUG ] "_PyErr_Restore", referenced from: [DEBUG ] __pyx_tp_dealloc_array(_object*) in aggregations.o [DEBUG ] __pyx_tp_dealloc_memoryview(_object*) in aggregations.o [DEBUG ] __pyx_tp_dealloc__memoryviewslice(_object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_1roll_sum(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_3roll_mean(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_5roll_var(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_7roll_skew(_object*, _object*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyErr_SetNone", referenced from: [DEBUG ] __pyx_memoryview___getitem__(_object*, _object*) in aggregations.o [DEBUG ] "_PyErr_SetObject", referenced from: [DEBUG ] __Pyx_Raise(_object*, _object*, _object*, _object*) in aggregations.o [DEBUG ] __Pyx_PyDict_GetItem(_object*, _object*) in aggregations.o [DEBUG ] "_PyErr_SetString", referenced from: [DEBUG ] __pyx_pymod_create(_object*, PyModuleDef*) in aggregations.o [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] __pyx_f_5numpy_import_array() in aggregations.o [DEBUG ] __pyx_array_getbuffer(_object*, bufferinfo*, int) in aggregations.o [DEBUG ] __Pyx_PyObject_Call(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview_getbuffer(_object*, bufferinfo*, int) in aggregations.o [DEBUG ] __pyx_array_get_memview(__pyx_array_obj*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyErr_WarnEx", referenced from: [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] __Pyx_ImportType_0_29_36(_object*, char const*, char const*, unsigned long, unsigned long, __Pyx_ImportType_CheckSize_0_29_36) in aggregations.o [DEBUG ] "_PyErr_WarnFormat", referenced from: [DEBUG ] __Pyx_PyNumber_IntOrLongWrongResultType(_object*, char const*) in aggregations.o [DEBUG ] "_PyErr_WriteUnraisable", referenced from: [DEBUG ] __pyx_f_6pandas_5_libs_6window_12aggregations_is_monotonic_increasing_start_end_bounds(tagPyArrayObject_fields*, tagPyArrayObject_fields*) in aggregations.o [DEBUG ] "_PyEval_RestoreThread", referenced from: [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_1roll_sum(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_3roll_mean(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_5roll_var(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_7roll_skew(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_9roll_kurt(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_11roll_median_c(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_f_6pandas_5_libs_6window_12aggregations__roll_min_max(tagPyArrayObject_fields*, tagPyArrayObject_fields*, tagPyArrayObject_fields*, long, int) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyEval_SaveThread", referenced from: [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_1roll_sum(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_3roll_mean(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_5roll_var(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_7roll_skew(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_9roll_kurt(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_11roll_median_c(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_f_6pandas_5_libs_6window_12aggregations__roll_min_max(tagPyArrayObject_fields*, tagPyArrayObject_fields*, tagPyArrayObject_fields*, long, int) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyExc_ArithmeticError", referenced from: [DEBUG ] __Pyx_CppExn2PyErr() in aggregations.o [DEBUG ] "_PyExc_AssertionError", referenced from: [DEBUG ] __pyx_memoryview___getitem__(_object*, _object*) in aggregations.o [DEBUG ] "_PyExc_AttributeError", referenced from: [DEBUG ] __pyx_pymod_create(_object*, PyModuleDef*) in aggregations.o [DEBUG ] __pyx_f_5numpy_import_array() in aggregations.o [DEBUG ] __Pyx_ImportFrom(_object*, _object*) in aggregations.o [DEBUG ] __pyx_tp_getattro_array(_object*, _object*) in aggregations.o [DEBUG ] __Pyx_PyObject_GetAttrStr_ClearAttributeError() in aggregations.o [DEBUG ] __pyx_pw___pyx_MemviewEnum_1__reduce_cython__(_object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum(_object*, _object*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyExc_BufferError", referenced from: [DEBUG ] __pyx_array_getbuffer(_object*, bufferinfo*, int) in aggregations.o [DEBUG ] __pyx_memoryview_getbuffer(_object*, bufferinfo*, int) in aggregations.o [DEBUG ] "_PyExc_DeprecationWarning", referenced from: [DEBUG ] __Pyx_PyNumber_IntOrLongWrongResultType(_object*, char const*) in aggregations.o [DEBUG ] "_PyExc_Exception", referenced from: [DEBUG ] __pyx_f_5numpy_import_array() in aggregations.o [DEBUG ] "_PyExc_IOError", referenced from: [DEBUG ] __Pyx_CppExn2PyErr() in aggregations.o [DEBUG ] "_PyExc_ImportError", referenced from: [DEBUG ] __pyx_pymod_create(_object*, PyModuleDef*) in aggregations.o [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] __Pyx_ImportFrom(_object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_15View_dot_MemoryView_1__pyx_unpickle_Enum(_object*, _object*, _object*) in aggregations.o [DEBUG ] "_PyExc_IndexError", referenced from: [DEBUG ] __Pyx_PyObject_GetIndex(_object*, _object*) in aggregations.o [DEBUG ] __Pyx_CppExn2PyErr() in aggregations.o [DEBUG ] "_PyExc_KeyError", referenced from: [DEBUG ] __Pyx_PyDict_GetItem(_object*, _object*) in aggregations.o [DEBUG ] "_PyExc_MemoryError", referenced from: [DEBUG ] __Pyx_CppExn2PyErr() in aggregations.o [DEBUG ] "_PyExc_NameError", referenced from: [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] __Pyx_GetBuiltinName(_object*) in aggregations.o [DEBUG ] __pyx_pw___pyx_MemviewEnum_1__reduce_cython__(_object*, _object*) in aggregations.o [DEBUG ] "_PyExc_NotImplementedError", referenced from: [DEBUG ] __pyx_mp_ass_subscript_array(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_mp_ass_subscript_memoryview(_object*, _object*, _object*) in aggregations.o [DEBUG ] "_PyExc_OverflowError", referenced from: [DEBUG ] __pyx_memoryview_get_item_pointer(__pyx_memoryview_obj*, _object*) in aggregations.o [DEBUG ] __Pyx_PyObject_GetIndex(_object*, _object*) in aggregations.o [DEBUG ] __Pyx_GetItemInt_Fast(_object*, long, int, int, int) in aggregations.o [DEBUG ] __Pyx_PyInt_As_int(_object*) in aggregations.o [DEBUG ] __pyx_memoryview_err_dim(_object*, char*, int) in aggregations.o [DEBUG ] __Pyx_decode_c_string(char const*, long, long, char const*, char const*, _object* (*)(char const*, long, char const*)) in aggregations.o [DEBUG ] __pyx_memoryview_copy_new_contig(__Pyx_memviewslice const*, char const*, int, unsigned long, int, int) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyExc_RuntimeError", referenced from: [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] __pyx_f_5numpy_import_array() in aggregations.o [DEBUG ] __Pyx_setup_reduce(_object*) in aggregations.o [DEBUG ] __Pyx_CppExn2PyErr() in aggregations.o [DEBUG ] "_PyExc_StopIteration", referenced from: [DEBUG ] __pyx_memoryview_get_item_pointer(__pyx_memoryview_obj*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview___getitem__(_object*, _object*) in aggregations.o [DEBUG ] _unellipsify(_object*, int) in aggregations.o [DEBUG ] "_PyExc_SystemError", referenced from: [DEBUG ] __pyx_array_getbuffer(_object*, bufferinfo*, int) in aggregations.o [DEBUG ] __Pyx_PyObject_Call(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview_getbuffer(_object*, bufferinfo*, int) in aggregations.o [DEBUG ] __pyx_array_get_memview(__pyx_array_obj*) in aggregations.o [DEBUG ] __pyx_memoryview_is_slice(__pyx_memoryview_obj*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview_setitem_slice_assignment(__pyx_memoryview_obj*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview_convert_item_to_object(__pyx_memoryview_obj*, char*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyExc_TypeError", referenced from: [DEBUG ] __pyx_memoryview_setitem_slice_assignment(__pyx_memoryview_obj*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview_assign_item_from_object(__pyx_memoryview_obj*, char*, _object*) in aggregations.o [DEBUG ] __pyx_tp_new_array(_typeobject*, _object*, _object*) in aggregations.o [DEBUG ] __Pyx_PyObject_GetIndex(_object*, _object*) in aggregations.o [DEBUG ] __Pyx_Raise(_object*, _object*, _object*, _object*) in aggregations.o [DEBUG ] __Pyx_ParseOptionalKeywords(_object*, _object***, _object*, _object**, long, char const*) in aggregations.o [DEBUG ] __Pyx__ArgTypeTest(_object*, _typeobject*, char const*, int) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyExc_UnboundLocalError", referenced from: [DEBUG ] __pyx_memoryview___getitem__(_object*, _object*) in aggregations.o [DEBUG ] __pyx_f_6pandas_5_libs_6window_12aggregations__roll_weighted_sum_mean(__Pyx_memviewslice, __Pyx_memviewslice, int, int) in aggregations.o [DEBUG ] __Pyx_RaiseUnboundMemoryviewSliceNogil(char const*) in aggregations.o [DEBUG ] "_PyExc_ValueError", referenced from: [DEBUG ] __pyx_memoryview___getitem__(_object*, _object*) in aggregations.o [DEBUG ] __pyx_mp_ass_subscript_memoryview(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview_copy_new_contig(__Pyx_memviewslice const*, char const*, int, unsigned long, int, int) in aggregations.o [DEBUG ] __Pyx_init_memviewslice(__pyx_memoryview_obj*, int, __Pyx_memviewslice*, int) in aggregations.o [DEBUG ] __Pyx_ImportType_0_29_36(_object*, char const*, char const*, unsigned long, unsigned long, __Pyx_ImportType_CheckSize_0_29_36) in aggregations.o [DEBUG ] __Pyx__GetBufferAndValidate(bufferinfo*, _object*, __Pyx_TypeInfo*, int, int, int, __Pyx_BufFmt_StackElem*) in aggregations.o [DEBUG ] __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context*, char const*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyExc_ZeroDivisionError", referenced from: [DEBUG ] __pyx_memoryview_get_item_pointer(__pyx_memoryview_obj*, _object*) in aggregations.o [DEBUG ] "_PyException_SetTraceback", referenced from: [DEBUG ] __Pyx__GetException(_ts*, _object**, _object**, _object**) in aggregations.o [DEBUG ] "_PyFloat_AsDouble", referenced from: [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_7roll_skew(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_9roll_kurt(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_17roll_quantile(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_memview_set_nn___pyx_t_5numpy_float64_t(char const*, _object*) in aggregations.o [DEBUG ] __pyx_pf_6pandas_5_libs_6window_12aggregations_20roll_apply(_object*, _object*, tagPyArrayObject_fields*, tagPyArrayObject_fields*, long, _object*, int, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_29ewm(_object*, _object*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyFloat_FromDouble", referenced from: [DEBUG ] _unellipsify(_object*, int) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_11roll_median_c(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_17roll_quantile(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_memview_get_nn___pyx_t_5numpy_float64_t(char const*) in aggregations.o [DEBUG ] "_PyFloat_Type", referenced from: [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] _unellipsify(_object*, int) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_7roll_skew(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_9roll_kurt(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_11roll_median_c(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_pw_6pandas_5_libs_6window_12aggregations_17roll_quantile(_object*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_memview_set_nn___pyx_t_5numpy_float64_t(char const*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "_PyFrame_New", referenced from: [DEBUG ] __Pyx_AddTraceback(char const*, int, int, char const*) in aggregations.o [DEBUG ] "_PyGILState_Ensure", referenced from: [DEBUG ] __pyx_memoryview_setitem_slice_assign_scalar(__pyx_memoryview_obj*, __pyx_memoryview_obj*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview_copy_contents(__Pyx_memviewslice, __Pyx_memviewslice, int, int, int) in aggregations.o [DEBUG ] __pyx_memoryview_err_dim(_object*, char*, int) in aggregations.o [DEBUG ] __pyx_memslice_transpose(__Pyx_memviewslice*) in aggregations.o [DEBUG ] __pyx_memoryview_err(_object*, char*) in aggregations.o [DEBUG ] __pyx_memoryview___getitem__(_object*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice*, long, long, long, int, int, int*, long, long, long, int, int, int, int) in aggregations.o [DEBUG ] ... [DEBUG ] "__Py_FalseStruct", referenced from: [DEBUG ] __Pyx_AddTraceback(char const*, int, int, char const*) in aggregations.o [DEBUG ] __pyx_array_get_memview(__pyx_array_obj*) in aggregations.o [DEBUG ] __pyx_memoryview_is_slice(__pyx_memoryview_obj*, _object*) in aggregations.o [DEBUG ] __pyx_tp_new_array(_typeobject*, _object*, _object*) in aggregations.o [DEBUG ] __Pyx_PyUnicode_Equals(_object*, _object*, int) in aggregations.o [DEBUG ] __pyx_tp_new_memoryview(_typeobject*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview___getitem__(_object*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "__Py_FatalErrorFunc", referenced from: [DEBUG ] __pyx_fatalerror(char const*, ...) in aggregations.o [DEBUG ] "__Py_NoneStruct", referenced from: [DEBUG ] __pyx_pymod_create(_object*, PyModuleDef*) in aggregations.o [DEBUG ] __pyx_pymod_exec_aggregations(_object*) in aggregations.o [DEBUG ] __pyx_f_5numpy_import_array() in aggregations.o [DEBUG ] __pyx_array_getbuffer(_object*, bufferinfo*, int) in aggregations.o [DEBUG ] __pyx_memoryview_getbuffer(_object*, bufferinfo*, int) in aggregations.o [DEBUG ] __Pyx_XDEC_MEMVIEW(__Pyx_memviewslice*, int, int) in aggregations.o [DEBUG ] __pyx_memoryview_is_slice(__pyx_memoryview_obj*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "__Py_TrueStruct", referenced from: [DEBUG ] __Pyx_AddTraceback(char const*, int, int, char const*) in aggregations.o [DEBUG ] __pyx_array_get_memview(__pyx_array_obj*) in aggregations.o [DEBUG ] __pyx_memoryview_is_slice(__pyx_memoryview_obj*, _object*) in aggregations.o [DEBUG ] __pyx_tp_new_array(_typeobject*, _object*, _object*) in aggregations.o [DEBUG ] __Pyx_PyUnicode_Equals(_object*, _object*, int) in aggregations.o [DEBUG ] __pyx_tp_new_memoryview(_typeobject*, _object*, _object*) in aggregations.o [DEBUG ] __pyx_memoryview___getitem__(_object*, _object*) in aggregations.o [DEBUG ] ... [DEBUG ] "_main", referenced from: [DEBUG ] implicit entry/start for main executable [DEBUG ] (maybe you meant: ___pyx_module_is_main_pandas___libs__window__aggregations) [DEBUG ] ld: symbol(s) not found for architecture x86_64 [DEBUG ] clang: error: linker command failed with exit code 1 (use -v to see invocation) [DEBUG ] error: command '/var/folders/_z/2wq_30nj20g7207df29p270r0000gn/T/tmp0r9a4sie' failed with exit code 1 Exception in thread background thread for pid 35988: Traceback (most recent call last): File "/Users/XXXX/opt/anaconda3/envs/py38/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/Users/XXXX/opt/anaconda3/envs/py38/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/venv38/lib/python3.8/site-packages/sh.py", line 1655, in wrap fn(*rgs, **kwargs) File "/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/venv38/lib/python3.8/site-packages/sh.py", line 2657, in background_thread handle_exit_code(exit_code) File "/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/venv38/lib/python3.8/site-packages/sh.py", line 2348, in fn return self.command.handle_command_exit_code(exit_code) File "/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/venv38/lib/python3.8/site-packages/sh.py", line 839, in handle_command_exit_code raise exc sh.ErrorReturnCode_1: RAN: /Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/hostpython3/bin/python setup.py build_ext -g STDOUT: Compiling pandas/_libs/algos.pyx because it changed. Compiling pandas/_libs/arrays.pyx because it changed. Compiling pandas/_libs/groupby.pyx because it changed. Compiling pandas/_libs/hashing.pyx because it changed. Compiling pandas/_libs/hashtable.pyx because it changed. Compiling pandas/_libs/index.pyx because it changed. Compiling pandas/_libs/indexing.pyx because it changed. Compiling pandas/_libs/internals.pyx because it changed. Compiling pandas/_libs/interval.pyx because it changed. Compiling pandas/_libs/join.pyx because it changed. Compiling pandas/_libs/lib.pyx because it changed. Compiling pandas/_libs/missing.pyx because it changed. Compiling pandas/_libs/parsers.pyx because it changed. Compiling pandas/_libs/reduction.pyx beca... (209153 more, please see e.stdout) STDERR: Traceback (most recent call last): File "./toolchain.py", line 1568, in main() File "./toolchain.py", line 1564, in main ToolchainCL() File "./toolchain.py", line 1308, in __init__ getattr(self, args.command)() File "./toolchain.py", line 1377, in build build_recipes(args.recipe, ctx) File "./toolchain.py", line 1142, in build_recipes recipe.execute() File "/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/toolchain.py", line 704, in execute self.build_all() File "/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/toolchain.py", line 74, in _cache_execution f(self, *args, **kwargs) File "/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/toolchain.py", line 803, in build_all self.build(arch) File "/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/toolchain.py", line 74, in _cache_execution f(self, *args, **kwargs) File "/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/toolchain.py", line 790, in build self.build_arch(arch) File "/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/toolchain.py", line 1095, in build_arch shprint(hostpython, "setup.py", "build_ext", "-g", File "/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/toolchain.py", line 56, in shprint for line in cmd: File "/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/venv38/lib/python3.8/site-packages/sh.py", line 895, in __next__ self.wait() File "/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/venv38/lib/python3.8/site-packages/sh.py", line 812, in wait self.handle_command_exit_code(exit_code) File "/Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/venv38/lib/python3.8/site-packages/sh.py", line 839, in handle_command_exit_code raise exc sh.ErrorReturnCode_1: RAN: /Users/XXXX/Development/personal/ios/Kivy/kivy-ios-build/kivy-io-38/kivy-ios-master/kivy_ios/dist/hostpython3/bin/python setup.py build_ext -g STDOUT: Compiling pandas/_libs/algos.pyx because it changed. Compiling pandas/_libs/arrays.pyx because it changed. Compiling pandas/_libs/groupby.pyx because it changed. Compiling pandas/_libs/hashing.pyx because it changed. Compiling pandas/_libs/hashtable.pyx because it changed. Compiling pandas/_libs/index.pyx because it changed. Compiling pandas/_libs/indexing.pyx because it changed. Compiling pandas/_libs/internals.pyx because it changed. Compiling pandas/_libs/interval.pyx because it changed. Compiling pandas/_libs/join.pyx because it changed. Compiling pandas/_libs/lib.pyx because it changed. Compiling pandas/_libs/missing.pyx because it changed. Compiling pandas/_libs/parsers.pyx because it changed. Compiling pandas/_libs/reduction.pyx beca... (209153 more, please see e.stdout)
lithomas1 commented 1 year ago

~~What's your pip version? pip should be finding this file on PyPI (https://files.pythonhosted.org/packages/3c/b2/0d4a5729ce1ce11630c4fc5d5522a33b967b3ca146c210f58efde7c40e99/pandas-2.0.3-cp310-cp310-macosx_10_9_x86_64.whl) Can you try downloading and installing that wheel file manually? (see https://stackoverflow.com/questions/27885397/how-do-i-install-a-python-package-with-a-whl-file)~~

EDIT: Ack read the issue wrong.

mohammedouahman commented 1 year ago

Update pandas: Check if there is a newer version of pandas available that specifically addresses the compatibility issue with the Apple M1 architecture. You can do this by running:

pip install --upgrade pandas

lithomas1 commented 1 year ago

~What's your pip version? pip should be finding this file on PyPI (https://files.pythonhosted.org/packages/3c/b2/0d4a5729ce1ce11630c4fc5d5522a33b967b3ca146c210f58efde7c40e99/pandas-2.0.3-cp310-cp310-macosx_10_9_x86_64.whl) Can you try downloading and installing that wheel file manually? (see https://stackoverflow.com/questions/27885397/how-do-i-install-a-python-package-with-a-whl-file)~

EDIT: Ack read the issue wrong.

My bad, I read the issue wrong. I though it was an install issue.

I don't think cross compiling for Intel on macos M1 is currently supported. (We do the other way around to build M1 wheels, and that does work 🤷 )

You can try from pandas main to see if you have better luck. (We switched build systems from setuptools to meson there there.)

Update pandas: Check if there is a newer version of pandas available that specifically addresses the compatibility issue with the Apple M1 architecture. You can do this by running:

pip install --upgrade pandas

I don't think this is the issue. They're trying to build 2.0.3 which is the latest released version.

subhashsharma commented 1 year ago

Thanks @lithomas1 and @mohammedouahman. Just for bit more context, I am building Pandas to make it work on iOS devices. Kivy mobile development framework is on Python language and they have recipes to build dependencies. See below:

  1. Kivy framework - https://kivy.org
  2. Kivy-iOS project- https://github.com/kivy/kivy-ios
  3. Kivy-IOS recipes - https://github.com/kivy/kivy-ios/tree/master/kivy_ios/recipes - this is to build the modules for both x86_64 (iOS simulator) and arm64 (iOS devices) Kivy-iOS has recipe for the numpy which has, under the hood, C code. I tried following the recipe and I got the above error (mentioned above in the ticket). It fails to build for both architectures which are x86_64 and arm64.

There is another Kivy project but that is for Android and they have recipe which works. See below the links to that project:

  1. https://github.com/kivy/python-for-android
  2. Recipe: https://github.com/kivy/python-for-android/tree/develop/pythonforandroid/recipes/pandas

It would be very helpful if somebody can help us to build the recipe for the Kivy-iOS project. I am stuck on this?

Very thanks in advance! Subhash

mroeschke commented 1 month ago

Thanks or the report, but unfortunately we don't have official support for kivy so I'm not sure if there's much action here from the pandas side so closing