TA-Lib / ta-lib-python

Python wrapper for TA-Lib (http://ta-lib.org/).
http://ta-lib.github.io/ta-lib-python
Other
9.8k stars 1.78k forks source link

Ta-lib Import error- I have installed python 3.8 by using brew and followed your steps brew install ta-lib and so on #533

Closed surendrakandru closed 2 years ago

surendrakandru commented 2 years ago

ImportError: dlopen(/Users/surendrakandru/Desktop/pythonProject/venv/lib/python3.8/site-packages/talib/_ta_lib.cpython-38-darwin.so, 0x0002): tried: '/Users/suri/Desktop/pythonProject/venv/lib/python3.8/site-packages/talib/_ta_lib.cpython-38-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))

mrjbq7 commented 2 years ago

That error seems to be pretty obviously related to having mixed architectures. You are on Apple Silicon and likely need the ARM64 version instead of x86-64 or vice versa.

See the README for some suggestions.

On Jul 19, 2022, at 10:31 PM, surendrakandru @.***> wrote:

 ImportError: dlopen(/Users/surendrakandru/Desktop/pythonProject/venv/lib/python3.8/site-packages/talib/_ta_lib.cpython-38-darwin.so, 0x0002): tried: '/Users/surendrakandru/Desktop/pythonProject/venv/lib/python3.8/site-packages/talib/_ta_lib.cpython-38-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e'))

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

mrjbq7 commented 2 years ago

Unless there's something else you need help with, closing for now.