ta-lib-python icon indicating copy to clipboard operation
ta-lib-python copied to clipboard

currenty Ta-Lib install fails on all platforms; .....resolving dependencies

Open 369Martin369 opened this issue 2 years ago • 19 comments

Replit: Updating package configuration

--> python3 -m poetry add talib-binary config requests Using version ^0.4.19 for talib-binary Using version ^0.5.1 for config Using version ^2.28.1 for requests

Updating dependencies Resolving dependencies...

Package operations: 1 install, 0 updates, 0 removals

• Installing talib-binary (0.4.19)

RuntimeError

Unable to find installation candidates for talib-binary (0.4.19)

at venv/lib/python3.8/site-packages/poetry/installation/chooser.py:72 in choose_for 68│ 69│ links.append(link) 70│ 71│ if not links: → 72│ raise RuntimeError( 73│ "Unable to find installation candidates for {}".format(package) 74│ ) 75│ 76│ # Get the best link

/home/runner/Compensationnetwork/venv/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn(

Failed to add packages, reverting the pyproject.toml file to its original content. exit status 1

Replit: Package operation failed.

369Martin369 avatar Sep 13 '22 07:09 369Martin369

Tried also local Anaconda....also dependencies error

369Martin369 avatar Sep 13 '22 07:09 369Martin369

Here I'm suggesting instructions on how to build the TA-Lib C library from sources under Replit:
https://stackoverflow.com/questions/73631645/ta-lib-replit-python-install-problem-error-no-matching-distribution-found-for/73648628

trufanov-nok avatar Sep 13 '22 08:09 trufanov-nok

Here I'm suggesting instructions on how to build the TA-Lib C library from sources under Replit: https://stackoverflow.com/questions/73631645/ta-lib-replit-python-install-problem-error-no-matching-distribution-found-for/73648628

hmm, I'm hanging at 3) at line "./configure"

~/Talib-Test/ta-lib$ ./configure bash: ./configure: No such file or directory ~/Talib-Test/ta-lib$

Any further idea for me? Thx

369Martin369 avatar Sep 13 '22 12:09 369Martin369

If ./configure doesn't exists then autoreconf --install should report error (it generates ./configure). Are there any?

trufanov-nok avatar Sep 13 '22 13:09 trufanov-nok

sorry, I don't get is. there are no further files... image

369Martin369 avatar Sep 13 '22 13:09 369Martin369

I'm a poor windows guy and have no clue :-o. But I need Talib for a crypto Bot... here is Talib-test https://replit.com/@CompensationNetwork/Talib-Test#main.py

369Martin369 avatar Sep 13 '22 13:09 369Martin369

It should be autoreconf --install, not autoreconfig --install

trufanov-nok avatar Sep 13 '22 13:09 trufanov-nok

thanks.but....


~/Talib-Test$ cd ta-lib ~/Talib-Test/ta-lib$ autoreconf --install Can't exec "aclocal": No such file or directory at /nix/store/xn46q2dzx9wgk73bqahrqlajm2xi3n4k-autoconf-2.71/share/autoconf/Autom4te/FileUtils.pm line 275. autoreconf: error: aclocal failed with exit status: 2 ~/Talib-Test/ta-lib$

369Martin369 avatar Sep 13 '22 14:09 369Martin369

execute aclocal. Any errors?

trufanov-nok avatar Sep 13 '22 14:09 trufanov-nok

aclocal should be a part of automake package. Check if you added it at step 2. Also you can list the content of your replit.nix file with cat ../replit.nix (from ta-lib folder) or cat replit.nix (if you are in a projects root folder). Paste it here - we'll doeblecheck which packages are installed.

trufanov-nok avatar Sep 13 '22 14:09 trufanov-nok

~/Talib-Test/ta-lib$ aclocal aclocal: command not installed. Multiple versions of this command were found in Nix. Select one to run (or press Ctrl-C to cancel): Adding automake to replit.nix error: Could not read file replit.nix /nix/store/ppilclv3vx3vp6zgazcrdgbidd3xz47y-automake-1.16.3 ~/Talib-Test/ta-lib$

369Martin369 avatar Sep 13 '22 14:09 369Martin369

~/Talib-Test/ta-lib$ cat ../replit.nix { pkgs }: { deps = [ pkgs.autoconf pkgs.libtool pkgs.python38Full ]; env = { PYTHON_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ # Needed for pandas / numpy pkgs.stdenv.cc.cc.lib pkgs.zlib # Needed for pygame pkgs.glib # Needed for matplotlib pkgs.xorg.libX11 ]; PYTHONBIN = "${pkgs.python38Full}/bin/python3.8"; LANG = "en_US.UTF-8"; }; }~/Talib-Test/ta-lib$

369Martin369 avatar Sep 13 '22 14:09 369Martin369

Yes, you lack automake and cmake packages from step 2.

~/Talib-Test/ta-lib$ aclocal aclocal: command not installed. Multiple versions of this command were found in Nix. Select one to run (or press Ctrl-C to cancel): Adding automake to replit.nix error: Could not read file replit.nix /nix/store/ppilclv3vx3vp6zgazcrdgbidd3xz47y-automake-1.16.3 ~/Talib-Test/ta-lib$

This is a case I mantioned in instructions: But if you're going to add such commands in a my way, note that you must execute them in Shell in your project root folder as replit.nix file is located in it. Otherwise Nix won't remember your choice.

So you must execute from a project's root folder. Not a ta-lib folder. Do cd .. and repeat.

trufanov-nok avatar Sep 13 '22 14:09 trufanov-nok

you are so patient with me, but I'm too stupid for this linux sh.... I give up., no crypto BOT for me online... 👎 https://replit.com/@CompensationNetwork/ZockerBOT#main.py

~/Talib-Test$ dir ltmain.sh main.py poetry.lock pyproject.toml replit.nix ta-lib venv ~/Talib-Test$ automake automake: command not installed. Multiple versions of this command were found in Nix. Select one to run (or press Ctrl-C to cancel): Adding automake to replit.nix success /nix/store/ppilclv3vx3vp6zgazcrdgbidd3xz47y-automake-1.16.3 automake: error: 'configure.ac' is required Detected change in environment, reloading shell... ~/Talib-Test$ cmake cmake: command not installed. Multiple versions of this command were found in Nix. Select one to run (or press Ctrl-C to cancel): Adding cmake to replit.nix success /nix/store/cbxqzxwlga5pm9rk8qa8fgv5387r540l-cmake-3.19.7 Usage

cmake [options] cmake [options] cmake [options] -S -B

Specify a source directory to (re-)generate a build system for it in the current working directory. Specify an existing build directory to re-generate its build system.

Run 'cmake --help' for more information.

Detected change in environment, reloading shell... ~/Talib-Test$

369Martin369 avatar Sep 13 '22 14:09 369Martin369

Ok, looks good. Now go to the ta-lib/ folder and perform "step 3" and so on.

trufanov-nok avatar Sep 13 '22 14:09 trufanov-nok

Should we turn this into a guide somewhere?

On Tue, Sep 13, 2022 at 7:57 AM Alexander Trufanov @.***> wrote:

Ok, looks good. Now go to the ta-lib/ folder and perform "step 3" and so on.

— Reply to this email directly, view it on GitHub https://github.com/mrjbq7/ta-lib/issues/543#issuecomment-1245537762, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAF5A7ISW2JTUVI5YKIKKLV6CI4TANCNFSM6AAAAAAQLFKMCU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mrjbq7 avatar Sep 13 '22 14:09 mrjbq7

@mrjbq7 Yes, but the instructions are just not yet finalized.

trufanov-nok avatar Sep 13 '22 15:09 trufanov-nok

we need a working install routine....and not more and more description

"pip install ta-lib" should be enough, and not this =§/"%"%%

369Martin369 avatar Sep 13 '22 15:09 369Martin369

Installing TA-Lib is typically simple following the instructions, except on Windows.

We may be able to distribute binary wheels, but those might have some numpy version complications too.

mrjbq7 avatar Sep 14 '22 16:09 mrjbq7

Any update on this? I'm facing same issues on windows 10, python 3.10

DaemonStark avatar Oct 09 '22 18:10 DaemonStark

@DaemonStark what is the same issue you are facing?

mrjbq7 avatar Oct 20 '22 16:10 mrjbq7

I had issues on Mac Big Sur until I reinstalled command line tools and updated clang ...

% sudo rm -rf /Library/Developer/CommandLineTools % sudo xcode-select --install % clang --version Apple clang version 12.0.5 (clang-1205.0.22.11)

THEN... $ pip3 install ta-lib Collecting ta-lib Using cached TA-Lib-0.4.25.tar.gz (271 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: numpy in /usr/local/lib/python3.10/site-packages (from ta-lib) (1.24.0) Building wheels for collected packages: ta-lib Building wheel for ta-lib (pyproject.toml) ... done Created wheel for ta-lib: filename=TA_Lib-0.4.25-cp310-cp310-macosx_11_0_x86_64.whl size=450718 sha256=d793bcd939d8b4c43efa00359ae45207e18d5d622a3d794f8da1fef12279d23b Stored in directory: /Users/xxxxxx/Library/Caches/pip/wheels/ac/12/d0/2ea05cfb5b9c4bbf47b45dd93ff5baed86ddb85c748166cb6f Successfully built ta-lib Installing collected packages: ta-lib Successfully installed ta-lib-0.4.25

SomethingUseful avatar Jan 03 '23 07:01 SomethingUseful

The original post at the top was about using poetry to install whatever talib-binary is, so I'm going to close this issue.

mrjbq7 avatar Apr 07 '23 16:04 mrjbq7

Closing old issue.

mrjbq7 avatar Jan 20 '24 19:01 mrjbq7