pandas-ta: Pandas TA strategy method goes into infinite loop: Windows Freeze Support Error
@twopirllc I was trying to run the below code on a dataframe
df.ta.strategy("Momentum")
print(df)
It goes into infinite loop and consumes all CPU on my windows 10 laptop. Then I need to kill all VSCodium and python exes. Could you please help?
_Originally posted by @rahulmr in https://github.com/twopirllc/pandas-ta/issues/138#issuecomment-751864255_
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 20 (6 by maintainers)
You can close this issue if you do not want to investigate further, as I have got the solution which is as below: source code
pwsh.exe console output
Again tried with python 3.9.1 and still getting same issue. Control + C is also not working. Anyways this is not high priority for me. I will concentrate more on the other stuff. Will continue there. Let me know if you are able to reproduce this issue at your end. I can try to uploaded a video if I get time.
Thank you for these posts, and especially thank you for your workaround @rahulmr !!
@rahulmr,
Excellent deductive work on figuring out the Issue. I have seen that wrapping it in
__main__before could solve the Issue. Glad that it works though!Regards, KJ
Great it is working on my docker container Details here:
Let me try it on Linux container. And then I will add the updates.
This is great - some kind of tricky issue for me.
It is working from python prompt.
No it is not relevant here. That issue is actually not an issue but help I need on how to work with pandas_ta. We will discuss it there.