ImportError: dlopen(/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so, 0x0002): tried: '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (no such file), '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
Reproduces the problem - command or script
ImportError: dlopen(/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so, 0x0002): tried: '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (no such file), '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
Reproduces the problem - error message
ImportError: dlopen(/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so, 0x0002): tried: '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (no such file), '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
Prerequisite
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
master branch https://github.com/open-mmlab/mmrotate
Environment
m1 pro
Reproduces the problem - code sample
ImportError: dlopen(/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so, 0x0002): tried: '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (no such file), '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
Reproduces the problem - command or script
ImportError: dlopen(/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so, 0x0002): tried: '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (no such file), '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
Reproduces the problem - error message
ImportError: dlopen(/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so, 0x0002): tried: '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (no such file), '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
Additional information
1