TA-Lib / ta-lib-python

Python wrapper for TA-Lib (http://ta-lib.org/).
http://ta-lib.github.io/ta-lib-python
Other
9.56k stars 1.75k forks source link

Python 3.11 support #602

Closed martin0 closed 1 year ago

martin0 commented 1 year ago

Hi,

What is the likelihood of supporting Python 3.11 soon?

Kind regards Martin

mrjbq7 commented 1 year ago

Does it not?

On Tue, Jul 4, 2023 at 11:36 AM martin0 @.***> wrote:

Hi,

What is the likelihood of supporting Python 3.11 soon?

Kind regards Martin

— Reply to this email directly, view it on GitHub https://github.com/TA-Lib/ta-lib-python/issues/602, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAF5A4ABQTTDC2OFGO7KDLXORWEHANCNFSM6AAAAAAZ6CUS74 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mrjbq7 commented 1 year ago

It builds and tests on python 3.11https://github.com/TA-Lib/ta-lib-python/actions/runs/4692690802/jobs/8318715762On Jul 4, 2023, at 11:36 AM, martin0 @.***> wrote: Hi, What is the likelihood of supporting Python 3.11 soon? Kind regards Martin

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

martin0 commented 1 year ago

Thanks for such a quick response... I am going from a little bit of info, which may be incomplete... at https://pypi.org/project/TA-Lib/ the Programming Language classifiers stops at Python 3.9 at https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib there is no wheel for 3.11 that I see. My platform is Windows 11.

Thanks again Martin

mrjbq7 commented 1 year ago

I don’t maintain those wheels, in the future we might. However it works fine on 3.11 and I believe also 3.12.

On Tue, Jul 4, 2023 at 11:43 AM martin0 @.***> wrote:

Thanks for such a quick response... I am going from a little bit of info, which may be incomplete... at https://pypi.org/project/TA-Lib/ the Programming Language classifiers stops at Python 3.9 at https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib there is no wheel for 3.11 that I see. My platform is Windows 11.

Thanks again Martin

— Reply to this email directly, view it on GitHub https://github.com/TA-Lib/ta-lib-python/issues/602#issuecomment-1620656449, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAF5A4J57XT7ZHK7NZCA4LXORW4PANCNFSM6AAAAAAZ6CUS74 . You are receiving this because you commented.Message ID: @.***>

martin0 commented 1 year ago

Do you have any advise on how I make the wheel myself?

mrjbq7 commented 1 year ago

You don’t need to build a wheel, just install 64-but version of TA-Lib C library and then install this module. The README has some details.

I agree that it would be nicer to package the C library with this install, but we have hesitated to do that for various reasons. In the future this is likely to improve.

On Tue, Jul 4, 2023 at 11:45 AM martin0 @.***> wrote:

Do you have any advise on how I make the wheel myself?

— Reply to this email directly, view it on GitHub https://github.com/TA-Lib/ta-lib-python/issues/602#issuecomment-1620658145, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAF5AZFASXGHJAEXMZNEQDXORXGZANCNFSM6AAAAAAZ6CUS74 . You are receiving this because you commented.Message ID: @.***>

martin0 commented 1 year ago

I have previously unzipped the ta-lib-0.4.0-msvc.zip file But i need something to bridge to Python. I thought that's what the whl file did.

py -m pip install TA-lib fails as per the attached log file.

talib_install.log

specifically "LINK : fatal error LNK1181: cannot open input file 'ta_libc_cdr.lib'"

I see that file is in C:\ta-lib\c\backup\lib How do I tell py -m pip install TA-lib where to look?

mrjbq7 commented 1 year ago

Follow the README.

You need to build the 64-bit library first, probably. (The binary download is 32-bit). Then install this module which is the bridge to python.

On Tue, Jul 4, 2023 at 12:00 PM martin0 @.***> wrote:

I have previously unzipped the ta-lib-0.4.0-msvc.zip file But i need something to bridge to Python. I thought that's what the whl file did.

py -m pip install TA-lib fails as per the attached log file.

talib_install.log https://github.com/TA-Lib/ta-lib-python/files/11952069/talib_install.log

— Reply to this email directly, view it on GitHub https://github.com/TA-Lib/ta-lib-python/issues/602#issuecomment-1620669951, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAF5A6BPIHJHLWGUDCP4JLXORY7LANCNFSM6AAAAAAZ6CUS74 . You are receiving this because you commented.Message ID: @.***>

ling1042133624 commented 1 year ago

this works fine.

python -m pip install .\Ta_lib-0.4.25-cp311-cp311-win_amd64.whl

https://drive.google.com/file/d/1j5hniPPSAy8UtLGFDEaNNyYr78oLj3dC/view?usp=sharing

I changed the access permissions, now everyone can download this resource~