imartemy1524 / vk_audio

Модуль на python для работы с аудио вк
46 stars 4 forks source link

PIP Установка в pythonanywhere #5

Open XuMePbl4 opened 3 years ago

XuMePbl4 commented 3 years ago

при pip установке на сайте pythonanywhere через BASH ругается на отсутствие модулей и отменяет установку

Building wheels for collected packages: vk-audio Building wheel for vk-audio (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/local/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-lj8wt5tw/setup.py'"'"'; file='"'"'/tmp/pip-req-build-lj8wt5tw/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-za8w3jvo --python-tag cp38 cwd: /tmp/pip-req-build-lj8wt5tw/ Complete output (87 lines): /usr/lib/python3.8/site-packages/setuptools/version.py:1: UserWarning: Module datetime was already imported from /usr/lib/python3.8/datetime.py, but /tmp/pip-req-build-lj8wt5tw is being added to sys.path import pkg_resources running bdist_wheel running build running build_py file vk_api.py (for module vk_api) not found file datetime.py (for module datetime) not found file lxml.py (for module lxml) not found creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/vk_audio copying vk_audio/audio_list.py -> build/lib.linux-x86_64-3.8/vk_audio copying vk_audio/audio.py -> build/lib.linux-x86_64-3.8/vk_audio copying vk_audio/audio_enum_index.py -> build/lib.linux-x86_64-3.8/vk_audio copying vk_audio/audio_obj.py -> build/lib.linux-x86_64-3.8/vk_audio copying vk_audio/init.py -> build/lib.linux-x86_64-3.8/vk_audio copying vk_audio/playlist.py -> build/lib.linux-x86_64-3.8/vk_audio copying vk_audio/vk_audio.py -> build/lib.linux-x86_64-3.8/vk_audio file vk_api.py (for module vk_api) not found file datetime.py (for module datetime) not found file lxml.py (for module lxml) not found running build_ext building 'vk_audio_C_FUNC' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/src creating build/temp.linux-x86_64-3.8/src/C_FUNC gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/python3.8 -c src/C_FUNC/PyProg.cpp -o build/temp.linux-x86_64-3.8/src/C_FUNC/PyProg.o src/C_FUNC/PyProg.cpp:2:0: warning: ignoring #pragma region C_CODE [-Wunknown-pragmas]

pragma region C_CODE

^ src/C_FUNC/PyProg.cpp:3:0: warning: ignoring #pragma warning [-Wunknown-pragmas]

pragma warning(disable : 4996)

^ src/C_FUNC/PyProg.cpp:34:0: warning: ignoring #pragma region not_using_func [-Wunknown-pragmas]

pragma region not_using_func

^ src/C_FUNC/PyProg.cpp:75:0: warning: ignoring #pragma endregion [-Wunknown-pragmas]

pragma endregion

^ src/C_FUNC/PyProg.cpp:236:0: warning: ignoring #pragma endregion [-Wunknown-pragmas]

pragma endregion

^ src/C_FUNC/PyProg.cpp:237:0: warning: ignoring #pragma region python_func [-Wunknown-pragmas]

pragma region python_func

^ src/C_FUNC/PyProg.cpp:327:0: warning: ignoring #pragma endregion [-Wunknown-pragmas]

pragma endregion

^ src/C_FUNC/PyProg.cpp: In function ‘long int stol(std::cxx11::string&)’: src/C_FUNC/PyProg.cpp:22:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] sscanf(str.c_str(), "%d", &i); ^ src/C_FUNC/PyProg.cpp: In function ‘void next_step_t(long int, long int, long int&)’: src/C_FUNC/PyProg.cpp:59:26: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] t = (n * (a + 1) ^ t + a) % n; ^ src/C_FUNC/PyProg.cpp: In function ‘std::cxx11::string Gt(std::cxx11::string&, long int)’: src/C_FUNC/PyProg.cpp:145:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (e.find("audio_api_unavailable") != -1) { ^ src/C_FUNC/PyProg.cpp:171:54: error: invalid initialization of non-const reference of type ‘std::cxx11::string& {aka std::cxx11::basic_string&}’ from an rvalue of type ‘std::cxx11::basic_stringstream::string_type {aka std::__cxx11::basic_string}’ case 'i':i0_kt = Yti(i0_kt, stol(n1_b.str()), user_id_local);break; ^ src/C_FUNC/PyProg.cpp:20:6: note: initializing argument 1 of ‘long int stol(std::cxx11::string&)’ long stol(string& str) { ^ src/C_FUNC/PyProg.cpp:172:54: error: invalid initialization of non-const reference of type ‘std::cxx11::string& {aka std::cxx11::basic_string&}’ from an rvalue of type ‘std::cxx11::basic_stringstream::__string_type {aka std::cxx11::basic_string}’ case 's':i0_kt = Yts(i0_kt, stol(n1_b.str()));break; ^ src/C_FUNC/PyProg.cpp:20:6: note: initializing argument 1 of ‘long int stol(std::cxx11::string&)’ long stol(string& str) { ^ src/C_FUNC/PyProg.cpp:174:54: error: invalid initialization of non-const reference of type ‘std::cxx11::string& {aka std::cxx11::basic_string&}’ from an rvalue of type ‘std::cxx11::basic_stringstream::string_type {aka std::__cxx11::basic_string}’ case 'r':i0_kt = Ytr(i0_kt, stol(n1_b.str()));break; ^ src/C_FUNC/PyProg.cpp:20:6: note: initializing argument 1 of ‘long int stol(std::cxx11::string&)’ long stol(string& str) { ^ src/C_FUNC/PyProg.cpp: In function ‘PyObject decode_with_no_id(PyObject, PyObject, PyObject)’: src/C_FUNC/PyProg.cpp:261:63: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (url != decoded && decoded.find("vkuseraudio") != -1) { ^ src/C_FUNC/PyProg.cpp: In function ‘PyObject parse_json_from_js(PyObject, PyObject, PyObject)’: src/C_FUNC/PyProg.cpp:292:22: warning: comparison with string literal results in unspecified behaviour [-Waddress] if (split != "") { ^ error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for vk-audio Running setup.py clean for vk-audio Failed to build vk-audio Installing collected packages: vk-audio Running setup.py install for vk-audio ... error ERROR: Command errored out with exit status 1: command: /usr/local/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-lj8wt5tw/setup.py'"'"'; file='"'"'/tmp/pip-req-build-lj8wt5tw/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-4vq7_zb8/install-record.txt --single-version-externally-managed --compile --user --prefix= cwd: /tmp/pip-req-build-lj8wt5tw/ Complete output (87 lines): /usr/lib/python3.8/site-packages/setuptools/version.py:1: UserWarning: Module datetime was already imported from /usr/lib/python3.8/datetime.py, but /tmp/pip-req-build-lj8wt5tw is being added to sys.path import pkg_resources running install running build running build_py file vk_api.py (for module vk_api) not found file datetime.py (for module datetime) not found file lxml.py (for module lxml) not found creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/vk_audio copying vk_audio/audio_list.py -> build/lib.linux-x86_64-3.8/vk_audio copying vk_audio/audio.py -> build/lib.linux-x86_64-3.8/vk_audio copying vk_audio/audio_enum_index.py -> build/lib.linux-x86_64-3.8/vk_audio copying vk_audio/audio_obj.py -> build/lib.linux-x86_64-3.8/vk_audio copying vk_audio/init.py -> build/lib.linux-x86_64-3.8/vk_audio copying vk_audio/playlist.py -> build/lib.linux-x86_64-3.8/vk_audio copying vk_audio/vk_audio.py -> build/lib.linux-x86_64-3.8/vk_audio file vk_api.py (for module vk_api) not found file datetime.py (for module datetime) not found file lxml.py (for module lxml) not found running build_ext building 'vk_audio_C_FUNC' extension creating build/temp.linux-x86_64-3.8 creating build/temp.linux-x86_64-3.8/src creating build/temp.linux-x86_64-3.8/src/C_FUNC gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/python3.8 -c src/C_FUNC/PyProg.cpp -o build/temp.linux-x86_64-3.8/src/C_FUNC/PyProg.o src/C_FUNC/PyProg.cpp:2:0: warning: ignoring #pragma region C_CODE [-Wunknown-pragmas]

pragma region C_CODE

 ^
src/C_FUNC/PyProg.cpp:3:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
 #pragma warning(disable : 4996)
 ^
src/C_FUNC/PyProg.cpp:34:0: warning: ignoring #pragma region not_using_func [-Wunknown-pragmas]
 #pragma region not_using_func
 ^
src/C_FUNC/PyProg.cpp:75:0: warning: ignoring #pragma endregion  [-Wunknown-pragmas]
 #pragma endregion
 ^
src/C_FUNC/PyProg.cpp:236:0: warning: ignoring #pragma endregion  [-Wunknown-pragmas]
 #pragma endregion
 ^
src/C_FUNC/PyProg.cpp:237:0: warning: ignoring #pragma region python_func [-Wunknown-pragmas]
 #pragma region python_func
 ^
src/C_FUNC/PyProg.cpp:327:0: warning: ignoring #pragma endregion  [-Wunknown-pragmas]
 #pragma endregion
 ^
src/C_FUNC/PyProg.cpp: In function ‘long int stol(std::__cxx11::string&)’:
src/C_FUNC/PyProg.cpp:22:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
     sscanf(str.c_str(), "%d", &i);
                                 ^
src/C_FUNC/PyProg.cpp: In function ‘void next_step_t(long int, long int, long int&)’:
src/C_FUNC/PyProg.cpp:59:26: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
     t = (n * (a + 1) ^ t + a) % n;
                          ^
src/C_FUNC/PyProg.cpp: In function ‘std::__cxx11::string Gt(std::__cxx11::string&, long int)’:
src/C_FUNC/PyProg.cpp:145:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (e.find("audio_api_unavailable") != -1) {
                                         ^
src/C_FUNC/PyProg.cpp:171:54: error: invalid initialization of non-const reference of type ‘std::__cxx11::string& {aka std::__cxx11::basic_string<char>&}’ from an rvalue of type ‘std::__cxx11::basic_stringstream<char>::__string_type {aka std::__cxx11::basic_string<char>}’
             case 'i':i0_kt = Yti(i0_kt, stol(n1_b.str()), user_id_local);break;
                                                      ^
src/C_FUNC/PyProg.cpp:20:6: note:   initializing argument 1 of ‘long int stol(std::__cxx11::string&)’
 long stol(string& str) {
      ^
src/C_FUNC/PyProg.cpp:172:54: error: invalid initialization of non-const reference of type ‘std::__cxx11::string& {aka std::__cxx11::basic_string<char>&}’ from an rvalue of type ‘std::__cxx11::basic_stringstream<char>::__string_type {aka std::__cxx11::basic_string<char>}’
             case 's':i0_kt = Yts(i0_kt, stol(n1_b.str()));break;
                                                      ^
src/C_FUNC/PyProg.cpp:20:6: note:   initializing argument 1 of ‘long int stol(std::__cxx11::string&)’
 long stol(string& str) {
      ^
src/C_FUNC/PyProg.cpp:174:54: error: invalid initialization of non-const reference of type ‘std::__cxx11::string& {aka std::__cxx11::basic_string<char>&}’ from an rvalue of type ‘std::__cxx11::basic_stringstream<char>::__string_type {aka std::__cxx11::basic_string<char>}’
             case 'r':i0_kt = Ytr(i0_kt, stol(n1_b.str()));break;
                                                      ^
             case 'r':i0_kt = Ytr(i0_kt, stol(n1_b.str()));break;
src/C_FUNC/PyProg.cpp:20:6: note:   initializing argument 1 of ‘long int stol(std::__cxx11::string&)’
 long stol(string& str) {
      ^
src/C_FUNC/PyProg.cpp: In function ‘PyObject* decode_with_no_id(PyObject*, PyObject*, PyObject*)’:
src/C_FUNC/PyProg.cpp:261:63: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (url != decoded && decoded.find("vkuseraudio") != -1) {
                                                               ^
src/C_FUNC/PyProg.cpp: In function ‘PyObject* parse_json_from_js(PyObject*, PyObject*, PyObject*)’:
src/C_FUNC/PyProg.cpp:292:22: warning: comparison with string literal results in unspecified behaviour [-Waddress]
         if (split != "") {
                      ^
error: command 'gcc' failed with exit status 1
----------------------------------------

ERROR: Command errored out with exit status 1: /usr/local/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-lj8wt5tw/setup.py '"'"'; file='"'"'/tmp/pip-req-build-lj8wt5tw/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-4vq7_zb8/install-record.txt --single-version-externally-managed --compile --use r --prefix= Check the logs for full command output.