Skip to content

import talib error #482

Open
Open
@cxh793602333

Description

@cxh793602333

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

Activity

msimacek

msimacek commented on Mar 21, 2025

@msimacek
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @msimacek@cxh793602333

        Issue actions

          import talib error · Issue #482 · oracle/graalpython