Проблемы с установкой TA-Lib на Godaddy Deluxe (CentOS) с Python-3.5.2 (Virtual Env) - PullRequest
0 голосов
/ 26 ноября 2018

Я имею дело с проблемами повторно.Установка Ta-Lib в моей виртуальной среде с Python-3.5.2.

Я столкнулся с двумя различными проблемами и попытался их решить, сначала установив talib-0.4.0, а затем последнюю версию Ta-Lib.Lib как доступный (0.4.17)

Кажется, что старая проблема все еще преследует установки Ta-Lib в среде «Shared Hosting».Ошибки, как показано ниже, и любая помощь будут полезны.Спасибо.

ОШИБКА: - talib / _ta_lib.c: 115334: ошибка: 'TA_RetCode' не объявлен (первое использование в этой функции) talib / _ta_lib.c: 115334: ошибка: ожидается ';»до '__pyx_v_retCode' talib / _ta_lib.c: 115432: предупреждение: назначение из несовместимого типа указателя(первое использование в этой функции) .......... '__pyx_pf_5talib_7_ta_lib_548stream_LINEARREG_ANGLE': talib / _ta_lib.c: 188784: ошибка: необъявленное значение 'TA_RetCode' (первое использование в этой функции)

talib/_ta_lib.c:199675: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:199768: warning: assignment from incompatible pointer type
talib/_ta_lib.c:199817: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:199826: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_610stream_ROCP':
talib/_ta_lib.c:199949: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:199949: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:200042: warning: assignment from incompatible pointer type
talib/_ta_lib.c:200091: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:200100: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_612stream_ROCR':
talib/_ta_lib.c:200223: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:200223: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:200316: warning: assignment from incompatible pointer type
talib/_ta_lib.c:200365: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:200374: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_614stream_ROCR100':
talib/_ta_lib.c:200497: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:200497: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:200590: warning: assignment from incompatible pointer type
talib/_ta_lib.c:200639: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:200648: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_616stream_RSI':
talib/_ta_lib.c:200771: error: 'TA_RetCode' undeclared (first use in this function)


talib/_ta_lib.c:202121: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_624stream_SINH':
talib/_ta_lib.c:202189: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:202189: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:202282: warning: assignment from incompatible pointer type
talib/_ta_lib.c:202331: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:202340: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_626stream_SMA':
talib/_ta_lib.c:202463: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:202463: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:202556: warning: assignment from incompatible pointer type
talib/_ta_lib.c:202605: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:202614: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_628stream_SQRT':
talib/_ta_lib.c:202682: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:202682: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:202775: warning: assignment from incompatible pointer type
talib/_ta_lib.c:202824: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:202833: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_630stream_STDDEV':
talib/_ta_lib.c:202972: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:202972: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:203065: warning: assignment from incompatible pointer type
talib/_ta_lib.c:203114: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:203123: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_632stream_STOCH':
talib/_ta_lib.c:203334: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:203334: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:203434: warning: assignment from incompatible pointer type
talib/_ta_lib.c:203539: warning: assignment from incompatible pointer type
talib/_ta_lib.c:203644: warning: assignment from incompatible pointer type
talib/_ta_lib.c:203766: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:203775: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_634stream_STOCHF':
talib/_ta_lib.c:203968: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:203968: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:204068: warning: assignment from incompatible pointer type
talib/_ta_lib.c:204173: warning: assignment from incompatible pointer type
talib/_ta_lib.c:204278: warning: assignment from incompatible pointer type
talib/_ta_lib.c:204400: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:204409: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_636stream_STOCHRSI':
talib/_ta_lib.c:204594: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:204594: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:204690: warning: assignment from incompatible pointer type
talib/_ta_lib.c:204748: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:204757: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_638stream_SUB':
talib/_ta_lib.c:204886: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:204886: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:204981: warning: assignment from incompatible pointer type
talib/_ta_lib.c:205086: warning: assignment from incompatible pointer type
talib/_ta_lib.c:205167: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:205176: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_640stream_SUM':
talib/_ta_lib.c:205300: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:205300: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:205393: warning: assignment from incompatible pointer type
talib/_ta_lib.c:205442: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:205451: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_642stream_T3':
talib/_ta_lib.c:205590: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:205590: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:205683: warning: assignment from incompatible pointer type
talib/_ta_lib.c:205732: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:205741: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_644stream_TAN':
talib/_ta_lib.c:205809: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:205809: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:205902: warning: assignment from incompatible pointer type
talib/_ta_lib.c:205951: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:205960: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_646stream_TANH':
talib/_ta_lib.c:206028: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:206028: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:206121: warning: assignment from incompatible pointer type
talib/_ta_lib.c:206170: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:206179: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_648stream_TEMA':
talib/_ta_lib.c:206302: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:206302: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:206395: warning: assignment from incompatible pointer type
talib/_ta_lib.c:206444: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:206453: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_650stream_TRANGE':
talib/_ta_lib.c:206582: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:206582: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:206679: warning: assignment from incompatible pointer type
talib/_ta_lib.c:206784: warning: assignment from incompatible pointer type
talib/_ta_lib.c:206889: warning: assignment from incompatible pointer type
talib/_ta_lib.c:207002: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:207011: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_652stream_TRIMA':
talib/_ta_lib.c:207136: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:207136: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:207229: warning: assignment from incompatible pointer type
talib/_ta_lib.c:207278: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:207287: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_654stream_TRIX':
talib/_ta_lib.c:207410: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:207410: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:207503: warning: assignment from incompatible pointer type
talib/_ta_lib.c:207552: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:207561: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_656stream_TSF':
talib/_ta_lib.c:207684: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:207684: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:207777: warning: assignment from incompatible pointer type
talib/_ta_lib.c:207826: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:207835: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_658stream_TYPPRICE':
talib/_ta_lib.c:207964: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:207964: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:208061: warning: assignment from incompatible pointer type
talib/_ta_lib.c:208166: warning: assignment from incompatible pointer type
talib/_ta_lib.c:208271: warning: assignment from incompatible pointer type
talib/_ta_lib.c:208384: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:208393: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_660stream_ULTOSC':
talib/_ta_lib.c:208574: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:208574: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:208671: warning: assignment from incompatible pointer type
talib/_ta_lib.c:208776: warning: assignment from incompatible pointer type
talib/_ta_lib.c:208881: warning: assignment from incompatible pointer type
talib/_ta_lib.c:208994: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:209003: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_662stream_VAR':
talib/_ta_lib.c:209144: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:209144: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:209237: warning: assignment from incompatible pointer type
talib/_ta_lib.c:209286: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:209295: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_664stream_WCLPRICE':
talib/_ta_lib.c:209424: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:209424: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:209521: warning: assignment from incompatible pointer type
talib/_ta_lib.c:209626: warning: assignment from incompatible pointer type
talib/_ta_lib.c:209731: warning: assignment from incompatible pointer type
talib/_ta_lib.c:209844: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:209853: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_666stream_WILLR':
talib/_ta_lib.c:210002: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:210002: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:210099: warning: assignment from incompatible pointer type
talib/_ta_lib.c:210204: warning: assignment from incompatible pointer type
talib/_ta_lib.c:210309: warning: assignment from incompatible pointer type
talib/_ta_lib.c:210422: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:210431: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function '__pyx_pf_5talib_7_ta_lib_668stream_WMA':
talib/_ta_lib.c:210556: error: 'TA_RetCode' undeclared (first use in this function)
talib/_ta_lib.c:210556: error: expected ';' before '__pyx_v_retCode'
talib/_ta_lib.c:210649: warning: assignment from incompatible pointer type
talib/_ta_lib.c:210698: error: '__pyx_v_retCode' undeclared (first use in this function)
talib/_ta_lib.c:210707: error: too many arguments to function '__pyx_f_5talib_7_ta_lib__ta_check_success'
talib/_ta_lib.c: In function 'PyInit__ta_lib':
talib/_ta_lib.c:243887: warning: implicit declaration of function 'TA_GetVersionString'
talib/_ta_lib.c:243887: warning: passing argument 1 of 'PyBytes_FromString' makes pointer from integer without a cast
/home/USERNAME/.local/include/python3.5m/bytesobject.h:52: note: expected 'const char *' but argument is of type 'int'
talib/_ta_lib.c: At top level:
talib/_ta_lib.c:253063: error: expected ')' before 'value'
talib/_ta_lib.c:253156: error: expected ')' before 'value'
talib/_ta_lib.c:253218: error: expected ')' before 'value'
talib/_ta_lib.c:253249: error: expected ')' before 'value'
talib/_ta_lib.c:253280: error: expected ')' before 'value'
talib/_ta_lib.c:253652: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__Pyx_PyInt_As_TA_RetCode'
talib/_ta_lib.c:254030: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__Pyx_PyInt_As_TA_FuncUnstId'
talib/_ta_lib.c:254408: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__Pyx_PyInt_As_TA_CandleSettingType'
talib/_ta_lib.c:254597: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__Pyx_PyInt_As_TA_RangeType'
error: command 'gcc' failed with exit status 1

----------------------------------------

Команда "/ home / ИМЯ ПОЛЬЗОВАТЕЛЯ / pyenv / pyenv / bin / python3 -u -c" импортирует setuptools, tokenize; файл = '/ tmp / pip-install-800kp2v4 / ta-lib / setup.py'; f = getattr (tokenize,' open ', open) ( file ); code = f.read (). replace (' \ r \ n ',' \ n '); f.close(); exec (скомпилировать (код, файл , 'exec')) "install --record /tmp/pip-record-1xb4a5vw/install-record.txt - одиночный-версия-управляемый извне--compile --install-headers /home/USERNAME/pyenv/pyenv/include/site/python3.5/ta-lib "не удалось с кодом ошибки 1 в / tmp / pip-install-800kp2v4 / ta-lib / (pyenv) USERNAME @ sg3plcpnl0207 [~ / pyenv / pyenv / bin] $ ^ C (pyenv) USERNAME @ sg3plcpnl0207 [~ / pyenv / pyenv / bin] $ ^ C (pyenv) USERNAME @ sg3plcpnl0207 [~ / pyenv / pyenv / bin] $ __ $'__Pyx_PyInt_As_TA_RangeType'

error: command 'gcc' failed with exit status 1

----------------------------------------

> Команда "/ home / USERNAME / pyenv / pyenv / bin / python3 -u -c" импортирует setuptools, tokenize; файл = '/tmp / pip-install-800kp2v4 / ta-lib / setup.py '; f = getattr (tokenize,' open ', open) ( file ); code = f.read (). replace ('\ r \ n ',' \ n '); f.close (); exec (скомпилировать (код, file ,' exec ')) "install --record / tmp / pip-record-1xb4a5vw/install-record.txt --single-version-внешне управляемый --compile --install-headers /home/fzutljptf41p/pyenv/pyenv/include/site/python3.5/ta-lib "завершился ошибкой с кодом ошибки 1 в/ tmp / pip-install-800kp2v4 / ta-lib /

Использовался процесс (перевод через веб-браузер) https://blog.csdn.net/caib1109/article/details/78119615

...