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

can not compile ta-lib with Nuitka

Open jonozw opened this issue 3 years ago • 3 comments

  1. Compile binary with Nuitka
  2. Run the binary, it show error:

(talib) X:\stock\code\tastock\tusc.dist>tusc.exe Traceback (most recent call last): File "X:\stock\code\tastock\tusc.dist\tusc.py", line 3, in File "X:\stock\code\tastock\tusc.dist\talib_init_.py", line 72, in ModuleNotFoundError: No module named 'talib.stream'

jonozw avatar Apr 15 '21 08:04 jonozw

I have never tested with that.

Can you provide some instructions on how to compile the Cython bindings using Nuitka?

Thanks,

On Apr 15, 2021, at 1:59 AM, jonozw @.***> wrote:

 Compile binary with Nuitka Run the binary, it show error: (talib) X:\stock\code\tastock\tusc.dist>tusc.exe Traceback (most recent call last): File "X:\stock\code\tastock\tusc.dist\tusc.py", line 3, in File "X:\stock\code\tastock\tusc.dist\talib_init_.py", line 72, in ModuleNotFoundError: No module named 'talib.stream'

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

mrjbq7 avatar Apr 15 '21 14:04 mrjbq7

The instruction to compile python with cython using Nuitka is

nuitka --standalone --plugin-enable=numpy --plugin-enable=pylint-warnings --windows-disable-console hello.py

The compilation was completed without problem.

It is runtime error. "ModuleNotFoundError: No module named 'talib.stream'"

line 72: stream = import("stream", globals(), locals(), stream_func_names, level=1)

Nuitka's repo is: https://github.com/Nuitka/Nuitka

jonozw avatar Apr 16 '21 00:04 jonozw

Same Problem Here

rwayan avatar Apr 20 '21 11:04 rwayan