TA-Lib / ta-lib-python

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

can not compile ta-lib with Nuitka #413

Open jonozw opened 3 years ago

jonozw commented 3 years ago
  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'

mrjbq7 commented 3 years ago

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\talibinit.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.

jonozw commented 3 years ago

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

rwayan commented 3 years ago

Same Problem Here