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

import talib error #482

Open
cxh793602333 opened this issue Mar 19, 2025 · 1 comment
Open

import talib error #482

cxh793602333 opened this issue Mar 19, 2025 · 1 comment

Comments

@cxh793602333
Copy link

Describe the bug
Unable to import talib - not sure what changed, but now i'm getting these errors:

Image

To Reproduce
Steps to reproduce the behavior:

  1. Install dependencies for TA-Lib.
    RUN wget https://github.com/ta-lib/ta-lib/releases/download/v0.6.4/ta-lib-0.6.4-src.tar.gz
    && tar -xzf ta-lib-0.6.4-src.tar.gz
    && cd ta-lib-0.6.4
    && ./configure --prefix=/usr
    && make
    && sudo make install

  2. Install TA-Lib.
    pip install ta-lib

  3. Import talib in Python.
    import talib

All installed components

Image

Desktop

  • OS:22.04.1-Ubuntu

graalpython version

  • graalpy-24.2.0-linux-amd64
@msimacek
Copy link
Contributor

It seems ta-lib doesn't recythonize their sources during build, which is needed to apply graalpy-specific compatibility changes in cython. You should be able to make it recythonize if you install cython by hand. Try:

pip install numpy cython==3.0.11
pip install --no-cache --no-build-isolation ta-lib

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