From 54019f7ea0b84102d3d5f409959d2627900db7db Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Tue, 9 Jul 2024 14:49:11 -0700 Subject: [PATCH] README: adding note about PyInstaller --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 824aa71b9..1197e53aa 100644 --- a/README.md +++ b/README.md @@ -311,6 +311,24 @@ And then re-run configure: $ ./configure ``` +--- + +If you're having trouble using [PyInstaller](https://pyinstaller.org) and +get an error that looks like this: + +``` +...site-packages\PyInstaller\loader\pyimod03_importers.py", line 493, in exec_module + exec(bytecode, module.__dict__) + File "talib\__init__.py", line 72, in +ModuleNotFoundError: No module named 'talib.stream' +``` + +Then, perhaps you can use the ``--hidden-import`` argument to fix this: + +``` +$ pyinstaller --hidden-import talib.stream "replaceToYourFileName.py" +``` + ## Function API Similar to TA-Lib, the Function API provides a lightweight wrapper of the