Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install #2

Open
xandrade opened this issue Aug 23, 2020 · 1 comment
Open

Unable to install #2

xandrade opened this issue Aug 23, 2020 · 1 comment

Comments

@xandrade
Copy link

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
Copy link

andreasemer commented Aug 23, 2020

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants