hackingthemarkets / candlestick-screener

web-based technical screener for candlestick patterns using Python and Flask
513 stars 288 forks source link

Unable to install #2

Open xandrade opened 4 years ago

xandrade commented 4 years ago

Hey, nice project. Any clue about that is doing on?

Installing collected packages: MarkupSafe, Jinja2, click, itsdangerous, Werkzeug, flask, numpy, TA-Lib, pytz, six, python-dateutil, pandas, idna, urllib3, chardet, certifi, requests, multitasking, yfinance Running setup.py install for TA-Lib ... error ERROR: Command errored out with exit status 1: command: '/mnt/d/DropBox/Python Projects/candlestick-screener/.venv/bin/python3' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-320a7ast/ta-lib/setup.py'"'"'; file='"'"'/tmp/pip-install-320a7ast/ta-lib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-zg71j98o/install-record.txt --single-version-externally-managed --compile --install-headers '/mnt/d/DropBox/Python Projects/candlestick-screener/.venv/include/site/python3.8/TA-Lib' cwd: /tmp/pip-install-320a7ast/ta-lib/ Complete output (27 lines): /tmp/pip-install-320a7ast/ta-lib/setup.py:79: UserWarning: Cannot find ta-lib library, installation may fail. warnings.warn('Cannot find ta-lib library, installation may fail.') running install running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/talib copying talib/test_func.py -> build/lib.linux-x86_64-3.8/talib copying talib/test_pandas.py -> build/lib.linux-x86_64-3.8/talib copying talib/stream.py -> build/lib.linux-x86_64-3.8/talib copying talib/abstract.py -> build/lib.linux-x86_64-3.8/talib copying talib/deprecated.py -> build/lib.linux-x86_64-3.8/talib copying talib/test_abstract.py -> build/lib.linux-x86_64-3.8/talib copying talib/test_stream.py -> build/lib.linux-x86_64-3.8/talib copying talib/test_data.py -> build/lib.linux-x86_64-3.8/talib copying talib/init.py -> build/lib.linux-x86_64-3.8/talib running build_ext building 'talib._ta_lib' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/talib x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/mnt/d/DropBox/Python Projects/candlestick-screener/.venv/lib/python3.8/site-packages/numpy/core/include -I/usr/include -I/usr/local/include -I/opt/include -I/opt/local/include -I/mnt/d/DropBox/Python Projects/candlestick-screener/.venv/include -I/usr/include/python3.8 -c talib/_ta_lib.c -o build/temp.linux-x86_64-3.8/talib/_ta_lib.o talib/_ta_lib.c:601:10: fatal error: ta-lib/ta_defs.h: No such file or directory 601 | #include "ta-lib/ta_defs.h" | ^~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

ERROR: Command errored out with exit status 1: '/mnt/d/DropBox/Python Projects/candlestick-screener/.venv/bin/python3' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-320a7ast/ta-lib/setup.py'"'"'; file='"'"'/tmp/pip-install-320a7ast/ta-lib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-zg71j98o/install-record.txt --single-version-externally-managed --compile --install-headers '/mnt/d/DropBox/Python Projects/candlestick-screener/.venv/include/site/python3.8/TA-Lib' Check the logs for full command output.

andreasemer commented 4 years ago

You need the ta-lib library before you install the requirements, in MacOS you can simply install it with homebrew https://brew.sh

brew install ta-lib

For more information you can read https://mrjbq7.github.io/ta-lib/