You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.
when running setup.py as instructed in the readme I am getting this:
/usr/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
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/echoprint_server
copying echoprint_server/lib.py -> build/lib.linux-x86_64-3.8/echoprint_server
copying echoprint_server/__init__.py -> build/lib.linux-x86_64-3.8/echoprint_server
running build_ext
building 'echoprint_server_c' extension
creating build/temp.linux-x86_64-3.8
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/usr/include/python3.8 -c libechoprintserver.c -o build/temp.linux-x86_64-3.8/libechoprintserver.o
libechoprintserver.c: In function ‘echoprint_inverted_index_block_similarity’:
libechoprintserver.c:64:14: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
64 | for(n=0; n < index_block->n_songs; n++)
| ^
libechoprintserver.c:70:11: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
70 | while(j < query_length && i < index_block->n_codes)
| ^
libechoprintserver.c:70:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
70 | while(j < query_length && i < index_block->n_codes)
| ^
libechoprintserver.c:77:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
77 | for(n = 0; n < codeblock_length; n++)
| ^
libechoprintserver.c:98:14: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
98 | for(n=0; n < index_block->n_songs; n++)
| ^
libechoprintserver.c: In function ‘echoprint_inverted_index_query’:
libechoprintserver.c:159:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
159 | for(b = 0; b < index->n_blocks; b++)
| ^
libechoprintserver.c:160:43: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
160 | max_block_n_songs = max_block_n_songs > index->blocks[b].n_songs ?
| ^
libechoprintserver.c:161:7: warning: operand of ?: changes signedness from ‘int’ to ‘uint32_t’ {aka ‘unsigned int’} due to unsignedness of other operand [-Wsign-compare]
161 | max_block_n_songs : index->blocks[b].n_songs;
| ^~~~~~~~~~~~~~~~~
libechoprintserver.c:165:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
165 | for(n = 0; n < n_results; n++)
| ^
libechoprintserver.c:174:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
174 | for(b = 0; b < index->n_blocks; b++)
| ^
libechoprintserver.c:178:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
178 | for(i = 0; i < index->blocks[b].n_songs; i++)
| ^
libechoprintserver.c:183:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
183 | if(ith_pos < n_results)
| ^
libechoprintserver.c:195:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
195 | for(n = 0; n < n_results; n++)
| ^
libechoprintserver.c: In function ‘_load_echoprint_inverted_index_block’:
libechoprintserver.c:221:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
221 | for(n = 0; n < block->n_codes; n++)
| ^
libechoprintserver.c: In function ‘echoprint_inverted_index_free’:
libechoprintserver.c:254:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
254 | for(n = 0; n < index->n_blocks; n++)
| ^
libechoprintserver.c: In function ‘echoprint_inverted_index_block_serialize’:
libechoprintserver.c:289:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
289 | for(n = 0; n < block->n_codes; n++)
| ^
libechoprintserver.c: In function ‘echoprint_inverted_index_block_similarity’:
libechoprintserver.c:100:11: warning: ‘den’ may be used uninitialized in this function [-Wmaybe-uninitialized]
100 | float den;
| ^~~
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/usr/include/python3.8 -c echoprint_server_python.c -o build/temp.linux-x86_64-3.8/echoprint_server_python.o
echoprint_server_python.c: In function ‘initechoprint_server_c’:
echoprint_server_python.c:63:17: warning: implicit declaration of function ‘Py_InitModule3’ [-Wimplicit-function-declaration]
63 | PyObject *m = Py_InitModule3(
| ^~~~~~~~~~~~~~
echoprint_server_python.c:63:17: warning: initialization of ‘PyObject *’ {aka ‘struct _object *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
echoprint_server_python.c:66:5: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
66 | return;
| ^~~~~~
echoprint_server_python.c:61:16: note: declared here
61 | PyMODINIT_FUNC initechoprint_server_c(void)
| ^~~~~~~~~~~~~~~~~~~~~~
echoprint_server_python.c: In function ‘echoprint_py_load_inverted_index’:
echoprint_server_python.c:97:9: warning: implicit declaration of function ‘PyString_Check’; did you mean ‘PyMapping_Check’? [-Wimplicit-function-declaration]
97 | if(!PyString_Check(py_path))
| ^~~~~~~~~~~~~~
| PyMapping_Check
echoprint_server_python.c:102:27: warning: implicit declaration of function ‘PyString_AsString’ [-Wimplicit-function-declaration]
102 | index_file_paths[n] = PyString_AsString(
| ^~~~~~~~~~~~~~~~~
echoprint_server_python.c:102:25: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
102 | index_file_paths[n] = PyString_AsString(
| ^
echoprint_server_python.c: In function ‘echoprint_py_inverted_index_size’:
echoprint_server_python.c:129:10: warning: implicit declaration of function ‘PyInt_FromLong’; did you mean ‘PyLong_FromLong’? [-Wimplicit-function-declaration]
129 | return PyInt_FromLong((long) echoprint_inverted_index_get_n_songs(index));
| ^~~~~~~~~~~~~~
| PyLong_FromLong
echoprint_server_python.c:129:10: warning: returning ‘int’ from a function with return type ‘PyObject *’ {aka ‘struct _object *’} makes pointer from integer without a cast [-Wint-conversion]
129 | return PyInt_FromLong((long) echoprint_inverted_index_get_n_songs(index));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echoprint_server_python.c: In function ‘echoprint_py_query_inverted_index’:
echoprint_server_python.c:150:13: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
150 | if(strcmp(PyString_AsString(arg_sim_fun), "jaccard") == 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.8/Python.h:30,
from echoprint_server_python.c:22:
/usr/include/string.h:137:32: note: expected ‘const char *’ but argument is of type ‘int’
137 | extern int strcmp (const char *__s1, const char *__s2)
| ~~~~~~~~~~~~^~~~
echoprint_server_python.c:152:18: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
152 | else if(strcmp(PyString_AsString(arg_sim_fun), "set_int") == 0)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.8/Python.h:30,
from echoprint_server_python.c:22:
/usr/include/string.h:137:32: note: expected ‘const char *’ but argument is of type ‘int’
137 | extern int strcmp (const char *__s1, const char *__s2)
| ~~~~~~~~~~~~^~~~
echoprint_server_python.c:154:18: warning: passing argument 1 of ‘strcmp’ makes pointer from integer without a cast [-Wint-conversion]
154 | else if(strcmp(PyString_AsString(arg_sim_fun),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/python3.8/Python.h:30,
from echoprint_server_python.c:22:
/usr/include/string.h:137:32: note: expected ‘const char *’ but argument is of type ‘int’
137 | extern int strcmp (const char *__s1, const char *__s2)
| ~~~~~~~~~~~~^~~~
echoprint_server_python.c:177:9: warning: implicit declaration of function ‘PyInt_Check’; did you mean ‘PySet_Check’? [-Wimplicit-function-declaration]
177 | if(!PyInt_Check(code_obj))
| ^~~~~~~~~~~
| PySet_Check
echoprint_server_python.c:185:23: warning: implicit declaration of function ‘PyInt_AsLong’; did you mean ‘PyLong_AsLong’? [-Wimplicit-function-declaration]
185 | code = (uint32_t) PyInt_AsLong(code_obj);
| ^~~~~~~~~~~~
| PyLong_AsLong
echoprint_server_python.c:201:5: error: unknown type name ‘PyStringObject’; did you mean ‘PySliceObject’?
201 | PyStringObject* score_k = (PyStringObject*)PyString_FromString("score");
| ^~~~~~~~~~~~~~
| PySliceObject
echoprint_server_python.c:201:32: error: ‘PyStringObject’ undeclared (first use in this function); did you mean ‘PySliceObject’?
201 | PyStringObject* score_k = (PyStringObject*)PyString_FromString("score");
| ^~~~~~~~~~~~~~
| PySliceObject
echoprint_server_python.c:201:32: note: each undeclared identifier is reported only once for each function it appears in
echoprint_server_python.c:201:47: error: expected expression before ‘)’ token
201 | PyStringObject* score_k = (PyStringObject*)PyString_FromString("score");
| ^
echoprint_server_python.c:206:21: error: ‘index_k’ undeclared (first use in this function); did you mean ‘index’?
206 | PyStringObject* index_k = (PyStringObject*)PyString_FromString("index");
| ^~~~~~~
| index
echoprint_server_python.c:206:47: error: expected expression before ‘)’ token
206 | PyStringObject* index_k = (PyStringObject*)PyString_FromString("index");
| ^
echoprint_server_python.c:207:5: error: unknown type name ‘PyIntObject’; did you mean ‘PySetObject’?
207 | PyIntObject* index_v = (PyIntObject*)PyInt_FromLong((long) output_indices[n]);
| ^~~~~~~~~~~
| PySetObject
echoprint_server_python.c:207:29: error: ‘PyIntObject’ undeclared (first use in this function); did you mean ‘PySetObject’?
207 | PyIntObject* index_v = (PyIntObject*)PyInt_FromLong((long) output_indices[n]);
| ^~~~~~~~~~~
| PySetObject
echoprint_server_python.c:207:41: error: expected expression before ‘)’ token
207 | PyIntObject* index_v = (PyIntObject*)PyInt_FromLong((long) output_indices[n]);
| ^
echoprint_server_python.c: In function ‘echoprint_py_inverted_index_create_block’:
echoprint_server_python.c:245:12: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
245 | path_out = PyString_AsString(arg_output_path);
| ^
echoprint_server_python.c:263:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
263 | for(m = 0; m < song_length; m++)
| ^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
happens on ubuntu 20.04.3 - any Idea what could be wrong here?
The text was updated successfully, but these errors were encountered:
when running setup.py as instructed in the readme I am getting this:
happens on ubuntu 20.04.3 - any Idea what could be wrong here?
The text was updated successfully, but these errors were encountered: