Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

symbol not found in flat namespace '_TA_ACOS' on MAC M1. #635

Closed
dcgithubaccount opened this issue Jan 7, 2024 · 3 comments
Closed

symbol not found in flat namespace '_TA_ACOS' on MAC M1. #635

dcgithubaccount opened this issue Jan 7, 2024 · 3 comments

Comments

@dcgithubaccount
Copy link

I am getting below error when i upgraded python to 3.11 from 3.8. The talib was working on M1 before that. I also follwed an old issue on this topic but i couldn't help myself.
from ._ta_lib import ( ImportError: dlopen(/Users/deepakchoudhary/anaconda3/lib/python3.11/site-packages/talib/_ta_lib.cpython-311-darwin.so, 0x0002): symbol not found in flat namespace '_TA_ACOS'

I followed below steps
brew uninstall ta-lib
pip uninstall ta-lib
arch -arm64 brew install ta-lib
export TA_INCLUDE_PATH="$(brew --prefix ta-lib)/include"
export TA_LIBRARY_PATH="$(brew --prefix ta-lib)/lib"
pip install TA-Lib
otool -L /Users/deepakchoudhary/anaconda3/lib/python3.11/site-packages/talib/_ta_lib.cpython-311-darwin.so

/Users/deepakchoudhary/anaconda3/lib/python3.11/site-packages/talib/_ta_lib.cpython-311-darwin.so:
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1336.61.1)

Any guidance will be really helpful.

@mrjbq7
Copy link
Collaborator

mrjbq7 commented Jan 7, 2024 via email

@mrjbq7
Copy link
Collaborator

mrjbq7 commented Jan 7, 2024 via email

@dcgithubaccount
Copy link
Author

Thanks for the input. I downloaded the homebrew for Apple Silicon and pip reinstalled with
pip install TA-LIB --no-cache-dir
and it worked like charm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants