so it's my first time using the gradio in machine learning, just install it and do some basic import (i use the 3.10.6 python)
import gradio as gr
and comes the error like this
OSError: Cannot load native module 'Crypto.Cipher._raw_ecb': Not found '_raw_ecb.cpython-310-darwin.so', Cannot load '_raw_ecb.abi3.so': cannot load library '/Users/gluthfi/opt/miniconda3/envs/ML-TF2/lib/python3.10/site-packages/Crypto/Util/../Cipher/_raw_ecb.abi3.so': dlopen(/Users/gluthfi/opt/miniconda3/envs/ML-TF2/lib/python3.10/site-packages/Crypto/Util/../Cipher/_raw_ecb.abi3.so, 0x0002): tried: '/Users/gluthfi/opt/miniconda3/envs/ML-TF2/lib/python3.10/site-packages/Crypto/Util/../Cipher/_raw_ecb.abi3.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/gluthfi/opt/miniconda3/envs/ML-TF2/lib/python3.10/site-packages/Crypto/Util/../Cipher/_raw_ecb.abi3.so' (no such file), '/Users/gluthfi/opt/miniconda3/envs/ML-TF2/lib/python3.10/site-packages/Crypto/Util/../Cipher/_raw_ecb.abi3.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/Users/gluthfi/opt/miniconda3/envs/ML-TF2/lib/python3.10/site-packages/Crypto/Cipher/_raw_ecb.abi3.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/gluthfi/opt/miniconda3/envs/ML-TF2/lib/python3.10/site-packages/Crypto/Cipher/_raw_ecb.abi3.so' (no such file), '/Users/gluthfi/opt/miniconda3/envs/ML-TF2/lib/python3.10/site-packages/Crypto/Cipher/_raw_ecb.abi3.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')). Additionally, ctypes.util.find_library() did not manage to locate a library called '/Users/gluthfi/opt/miniconda3/envs/ML-TF2/lib/python3.10/site-packages/Crypto/Util/../Cipher/_raw_ecb.abi3.so', Not found '_raw_ecb.so'
i tried to replicate simple ML project from this website, which is pretty simple ML program. i am confused since i got this kind of error only when i just import the gradio. i already tried to make another venv and redo the install and still no go. and i don't use any crypto library, but why it shows me error like this. also i already tried to find any solution out there but found nothing. others got this error because they use the crypto module, also tried to import the crypto module and gave me the same result. Please help, thanks