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

libc6 version dependency error. Downgrade to libc6=2.32-0ubuntu3 to install on Ubuntu

Open DaneGrinder opened this issue 4 years ago • 4 comments

Hi

It just took me hours to install and pip install ta-lib on Ubuntu 20.04. Granted, I am returning to Linux after years on Mac so it might not be a problem for most people, but it seems that I needed to downgrade my libc6

$ sudo apt install libc6=2.32-0ubuntu3 libc-bin=2.32-0ubuntu3

Edit: Just saw now that this is already in the read.me. I was following https://mrjbq7.github.io/ta-lib/install.html ~~and install python-dev~~

~~$ sudo apt-get install python3-dev~~

to get it running.

If this is a common process to install it on Ubuntu (Linux) it might be worth mentioning in the installation guide.

Thanks guys

DaneGrinder avatar Sep 06 '21 13:09 DaneGrinder

I have not heard anyone needing to downgrade libc before, I'll keep that in mind... if anyone else can confirm similar issues, then we can add a note in the README!

mrjbq7 avatar Sep 08 '21 15:09 mrjbq7

Sounds good.

I'm sorry I closed the terminal I was working in before I could copy/paste the actual error out of there but I do remember I was running version libc6=2.33-0ubuntu5 and got the dependency error that it was dependent on libc6=2.32-0ubuntu3, if that can be of any help to you.

I did nothing other than normal update/upgrade of my Ubuntu so my guess is that people running up to date Ubuntu 20.04 and above (20.10 I believe) would all encounter this error.

Other than that, thank you very much for the great library

DaneGrinder avatar Sep 09 '21 08:09 DaneGrinder

Changed the title to reflect the issue better so it's easier for people to come across.

DaneGrinder avatar Sep 09 '21 08:09 DaneGrinder

Latest Ubuntu version is 21.04 and thre will be 21.10 in a month (released twice a year on 4th and 10th month and has version YY.MM). 21.04 has libc6 2.33-0ubuntu5 onboard.
I really doubt that ta-lib may have a dependency on libc6. The library shall be build on your system with ./configure --prefix=/usr && make && sudo make install according to the Installation doc. At this point it links to a libc6 currently installed in your system. I just successfully build it on my system. Also as I understand the C-part of TA-Lib's wrapper which is installed via pip install talib is compiled by cython during installation. So it's linked to the same system libc6 too. There is no any prebuild binaries that might have some libc6 requirements and no libc version checks in the code.

trufanov-nok avatar Sep 09 '21 12:09 trufanov-nok