griddb / python_client

GridDB Python Client
Apache License 2.0
51 stars 61 forks source link

Installation of python client through pip broken #32

Closed Imisrael closed 1 month ago

Imisrael commented 2 months ago

Installing griddb-python client through pip seems to be broken. I have swig and all other requirements installed.

I have tried on Ubuntu 23 and Ubuntu 22 as well as Debian 12. They all produce the following error:

$ python3 -m pip install griddb-python
Collecting griddb-python
  Downloading griddb_python-0.7.6.tar.gz (52 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 52.8/52.8 kB 1.1 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Installing collected packages: griddb-python
  DEPRECATION: griddb-python is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for griddb-python ... error
  error: subprocess-exited-with-error

  × Running setup.py install for griddb-python did not run successfully.
  │ exit code: 1
  ╰─> [426 lines of output]
      running install
      /home/israel/development/python/venv/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_ext
      building '_griddb_python' extension
      swigging src/griddb.i to src/griddb_wrap.cpp
      swig -python -DSWIGWORDSIZE64 -c++ -outdir . -Isrc -o src/griddb_wrap.cpp src/griddb.i
      creating build
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/src
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Iinclude -Isrc -I/home/israel/development/python/venv/include -I/usr/include/python3.11 -c src/AggregationResult.cpp -o build/temp.linux-x86_64-cpython-311/src/AggregationResult.o -std=c++0x
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Iinclude -Isrc -I/home/israel/development/python/venv/include -I/usr/include/python3.11 -c src/Container.cpp -o build/temp.linux-x86_64-cpython-311/src/Container.o -std=c++0x
      In file included from src/Container.cpp:17:
      src/Container.h: In constructor ‘griddb::Container::Container(GSContainer*, GSContainerInfo*)’:
      src/Container.h:30:18: warning: ‘griddb::Container::mContainer’ will be initialized after [-Wreorder]
         30 |     GSContainer *mContainer;
            |                  ^~~~~~~~~~
      src/Container.h:29:22: warning:   ‘GSContainerInfo* griddb::Container::mContainerInfo’ [-Wreorder]
         29 |     GSContainerInfo* mContainerInfo;
            |                      ^~~~~~~~~~~~~~
      src/Container.cpp:22:5: warning:   when initialized here [-Wreorder]
         22 |     Container::Container(GSContainer *container, GSContainerInfo* containerInfo) : mContainer(container),
            |     ^~~~~~~~~
      src/Container.cpp:34:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
         34 |         for (int i = 0; i< containerInfo->columnCount; i++) {
            |                         ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/Container.cpp: In destructor ‘griddb::Container::~Container()’:
      src/Container.cpp:53:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
         53 |         for (int i = 0; i< mContainerInfo->columnCount;i++) {
            |                         ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/Container.cpp: In member function ‘int griddb::Container::get_column_index(const char*)’:
      src/Container.cpp:367:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        367 |         for (int i = 0; i < mContainerInfo->columnCount; i++) {
            |                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from src/Row.h:20,
                       from src/Container.h:20:
      include/gridstore.h: In member function ‘void griddb::Container::multi_put(griddb::Row**, int)’:
      include/gridstore.h:1654:34: warning: ‘rowObjs’ may be used uninitialized [-Wmaybe-uninitialized]
       1654 |                 gsPutMultipleRows(container, rowObjs, rowCount, exists)
            |                                  ^
      include/gridstore.h:1637:36: note: by argument 2 of type ‘const void* const*’ to ‘GSResult gsPutMultipleRows(GSContainer*, const void* const*, size_t, GSBool*)’ declared here
       1637 | GS_DLL_PUBLIC GSResult GS_API_CALL gsPutMultipleRows(
            |                                    ^~~~~~~~~~~~~~~~~
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Iinclude -Isrc -I/home/israel/development/python/venv/include -I/usr/include/python3.11 -c src/ContainerInfo.cpp -o build/temp.linux-x86_64-cpython-311/src/ContainerInfo.o -std=c++0x
      src/ContainerInfo.cpp: In member function ‘void griddb::ContainerInfo::init(const GSChar*, GSContainerType, const GSColumnInfo*, int, bool, griddb::ExpirationInfo*)’:
      src/ContainerInfo.cpp:89:48: warning: narrowing conversion of ‘propsCount’ from ‘int’ to ‘size_t’ {aka ‘long unsigned int’} [-Wnarrowing]
         89 |         mContainerInfo = {containerName, type, propsCount, columnInfoList, rowKeyAssigned};
            |                                                ^~~~~~~~~~
      src/ContainerInfo.cpp: In destructor ‘griddb::ContainerInfo::~ContainerInfo()’:
      src/ContainerInfo.cpp:105:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        105 |             for(int i = 0; i < mContainerInfo.columnCount; i++) {
            |                            ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/ContainerInfo.cpp: In member function ‘void griddb::ContainerInfo::set_column_info_list(ColumnInfoList)’:
      src/ContainerInfo.cpp:227:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        227 |             for(int i = 0; i < mContainerInfo.columnCount; i++) {
            |                            ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/ContainerInfo.cpp:240:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        240 |             for (int i = 0; i < columnInfoList.size; i++) {
            |                             ~~^~~~~~~~~~~~~~~~~~~~~
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Iinclude -Isrc -I/home/israel/development/python/venv/include -I/usr/include/python3.11 -c src/PartitionController.cpp -o build/temp.linux-x86_64-cpython-311/src/PartitionController.o -std=c++0x
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Iinclude -Isrc -I/home/israel/development/python/venv/include -I/usr/include/python3.11 -c src/Query.cpp -o build/temp.linux-x86_64-cpython-311/src/Query.o -std=c++0x
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Iinclude -Isrc -I/home/israel/development/python/venv/include -I/usr/include/python3.11 -c src/QueryAnalysisEntry.cpp -o build/temp.linux-x86_64-cpython-311/src/QueryAnalysisEntry.o -std=c++0x
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Iinclude -Isrc -I/home/israel/development/python/venv/include -I/usr/include/python3.11 -c src/Row.cpp -o build/temp.linux-x86_64-cpython-311/src/Row.o -std=c++0x
      src/Row.cpp: In member function ‘void griddb::Row::del_array_field()’:
      src/Row.cpp:81:43: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
         81 |                         for (int j = 0; j < mFields[i].value.asArray.length; j++) {
            |                                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/Row.cpp: In member function ‘void griddb::Row::set_from_row(GSRow*)’:
      src/Row.cpp:185:39: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
        185 |         if (containerInfo.columnCount != mCount) {
            |             ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      src/Row.cpp: In member function ‘void griddb::Row::set_for_row(GSRow*, GSContainerInfo*)’:
      src/Row.cpp:199:44: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
        199 |             if (containerInfo->columnCount != mCount) {
            |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      src/Row.cpp:211:43: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
        211 |             if (containerInfo.columnCount != mCount) {
            |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      src/Row.cpp: In member function ‘void griddb::Row::set_for_field(GSRow*, int)’:
      src/Row.cpp:287:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        287 |             for(int j = 0; j < field->value.asArray.length; j++) {
            |                            ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/Row.cpp:237:16: warning: unused variable ‘nullValue’ [-Wunused-variable]
        237 |         GSBool nullValue = GS_TRUE;
            |                ^~~~~~~~~
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Iinclude -Isrc -I/home/israel/development/python/venv/include -I/usr/include/python3.11 -c src/RowKeyPredicate.cpp -o build/temp.linux-x86_64-cpython-311/src/RowKeyPredicate.o -std=c++0x
      src/RowKeyPredicate.cpp: In member function ‘void griddb::RowKeyPredicate::get_distinct_keys(griddb::Field**, size_t*)’:
      src/RowKeyPredicate.cpp:374:15: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct griddb::Field’; use assignment or value-initialization instead [-Wclass-memaccess]
        374 |         memset(keyFields, 0, size * sizeof (Field));
            |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from src/RowKeyPredicate.h:23,
                       from src/RowKeyPredicate.cpp:17:
      src/Row.h:27:8: note: ‘struct griddb::Field’ declared here
         27 | struct Field {
            |        ^~~~~
      src/RowKeyPredicate.cpp:375:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        375 |         for(int i =0;i< size; i++) {
            |                      ~^~~~~~
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Iinclude -Isrc -I/home/israel/development/python/venv/include -I/usr/include/python3.11 -c src/RowSet.cpp -o build/temp.linux-x86_64-cpython-311/src/RowSet.o -std=c++0x
      In file included from src/RowSet.cpp:17:
      src/RowSet.h: In constructor ‘griddb::RowSet::RowSet(GSRowSet*, GSContainerInfo*, GSRow*)’:
      src/RowSet.h:48:14: warning: ‘griddb::RowSet::timestamp_output_with_float’ will be initialized after [-Wreorder]
         48 |         bool timestamp_output_with_float;
            |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/RowSet.h:41:13: warning:   ‘GSType* griddb::RowSet::typeList’ [-Wreorder]
         41 |     GSType* typeList;
            |             ^~~~~~~~
      src/RowSet.cpp:23:5: warning:   when initialized here [-Wreorder]
         23 |     RowSet::RowSet(GSRowSet *rowSet, GSContainerInfo *containerInfo, GSRow *gsRow) :
            |     ^~~~~~
      src/RowSet.cpp: In member function ‘bool griddb::RowSet::has_next()’:
      src/RowSet.cpp:37:14: warning: unused variable ‘hasNextRow’ [-Wunused-variable]
         37 |         bool hasNextRow = false;
            |              ^~~~~~~~~~
      src/RowSet.cpp: In member function ‘void griddb::RowSet::get_column_names(char***, int*)’:
      src/RowSet.cpp:168:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        168 |             for(int i = 0; i < mContainerInfo->columnCount; i++){
            |                            ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/RowSet.cpp: In member function ‘GSType* griddb::RowSet::getGSTypeList()’:
      src/RowSet.cpp:180:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        180 |             for (int i = 0; i < mContainerInfo->columnCount; i++){
            |                             ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Iinclude -Isrc -I/home/israel/development/python/venv/include -I/usr/include/python3.11 -c src/Store.cpp -o build/temp.linux-x86_64-cpython-311/src/Store.o -std=c++0x
      src/Store.cpp: In member function ‘void griddb::Store::multi_put(griddb::Row***, const int*, const char**, size_t)’:
      src/Store.cpp:164:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        164 |         for (int i= 0; i < containerCount; i++) {
            |                        ~~^~~~~~~~~~~~~~~~
      src/Store.cpp:195:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        195 |         for (int i = 0; i < containerCount; i++) {
            |                         ~~^~~~~~~~~~~~~~~~
      src/Store.cpp: In member function ‘void griddb::Store::multi_get(const GSRowKeyPredicateEntry* const*, size_t, std::vector<griddb::Row*>*, size_t**, char***, size_t*)’:
      src/Store.cpp:248:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        248 |         for (int i = 0; i< *containerCount; i++) {
            |                         ~^~~~~~~~~~~~~~~~~
      src/Store.cpp:258:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        258 |             for (int j = 0;j < rowKeyEntry->rowCount; j++){
            |                            ~~^~~~~~~~~~~~~~~~~~~~~~~
      src/Store.cpp:252:29: warning: unused variable ‘containerInfo’ [-Wunused-variable]
        252 |             GSContainerInfo containerInfo;
            |                             ^~~~~~~~~~~~~
      src/Store.cpp:253:20: warning: unused variable ‘bExists’ [-Wunused-variable]
        253 |             GSChar bExists;
            |                    ^~~~~~~
      src/Store.cpp:267:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        267 |         for (int i = 0; i< *containerCount; i++) {
            |                         ~^~~~~~~~~~~~~~~~~
      src/Store.cpp:268:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
        268 |             for (int j = 0; j < (*listRowContainerCount)[i]; j++){
            |                             ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/Store.cpp: In member function ‘void griddb::Store::multi_put(griddb::Row***, const int*, const char**, size_t)’:
      src/Store.cpp:192:41: warning: ‘entryList’ may be used uninitialized [-Wmaybe-uninitialized]
        192 |         ret = gsPutMultipleContainerRows(mStore, entryList, containerCount);
            |               ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from src/TimeSeriesProperties.h:20,
                       from src/ContainerInfo.h:22,
                       from src/Store.h:20,
                       from src/Store.cpp:17:
      include/gridstore.h:1527:36: note: by argument 2 of type ‘const GSContainerRowEntry*’ {aka ‘const GSContainerRowEntryTag*’} to ‘GSResult gsPutMultipleContainerRows(GSGridStore*, const GSContainerRowEntry*, size_t)’ declared here
       1527 | GS_DLL_PUBLIC GSResult GS_API_CALL gsPutMultipleContainerRows(
            |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Iinclude -Isrc -I/home/israel/development/python/venv/include -I/usr/include/python3.11 -c src/StoreFactory.cpp -o build/temp.linux-x86_64-cpython-311/src/StoreFactory.o -std=c++0x
      In file included from src/StoreFactory.cpp:17:
      src/StoreFactory.h:43:62: warning: converting to non-pointer type ‘int32_t’ {aka ‘int’} from NULL [-Wconversion-null]
         43 |         Store* get_store(const char* host=NULL, int32_t port=NULL, const char* cluster_name=NULL,
            |                                                              ^~~~
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Iinclude -Isrc -I/home/israel/development/python/venv/include -I/usr/include/python3.11 -c src/TimeSeriesProperties.cpp -o build/temp.linux-x86_64-cpython-311/src/TimeSeriesProperties.o -std=c++0x
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Iinclude -Isrc -I/home/israel/development/python/venv/include -I/usr/include/python3.11 -c src/TimestampUtils.cpp -o build/temp.linux-x86_64-cpython-311/src/TimestampUtils.o -std=c++0x
      x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -Iinclude -Isrc -I/home/israel/development/python/venv/include -I/usr/include/python3.11 -c src/griddb_wrap.cpp -o build/temp.linux-x86_64-cpython-311/src/griddb_wrap.o -std=c++0x
      In file included from src/griddb_wrap.cpp:3469:
      src/StoreFactory.h:43:62: warning: converting to non-pointer type ‘int32_t’ {aka ‘int’} from NULL [-Wconversion-null]
         43 |         Store* get_store(const char* host=NULL, int32_t port=NULL, const char* cluster_name=NULL,
            |                                                              ^~~~
      src/griddb_wrap.cpp: In function ‘char* convertObjToStr(PyObject*)’:
      src/griddb_wrap.cpp:3932:28: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
       3932 |     return PyUnicode_AsUTF8(string);
            |            ~~~~~~~~~~~~~~~~^~~~~~~~
            |                            |
            |                            const char*
      src/griddb_wrap.cpp: In function ‘bool convertObjectToGSTimestamp(PyObject*, GSTimestamp*)’:
      src/griddb_wrap.cpp:3991:62: warning: unused variable ‘microSecond’ [-Wunused-variable]
       3991 |     int year, month, day, hour, minute, second, milliSecond, microSecond;
            |                                                              ^~~~~~~~~~~
      src/griddb_wrap.cpp:4006:11: warning: unused variable ‘floatTimestamp’ [-Wunused-variable]
       4006 |     float floatTimestamp;
            |           ^~~~~~~~~~~~~~
      src/griddb_wrap.cpp: In function ‘bool convertObjectToBlob(PyObject*, size_t*, void**)’:
      src/griddb_wrap.cpp:4076:13: warning: unused variable ‘tmpBlobData’ [-Wunused-variable]
       4076 |     GSChar* tmpBlobData;
            |             ^~~~~~~~~~~
      src/griddb_wrap.cpp: In function ‘bool convertObjectToFieldWithType(griddb::Field&, PyObject*, GSType)’:
      src/griddb_wrap.cpp:4150:17: warning: unused variable ‘mydata’ [-Wunused-variable]
       4150 |         GSChar *mydata;
            |                 ^~~~~~
      src/griddb_wrap.cpp:4151:15: warning: unused variable ‘blobData’ [-Wunused-variable]
       4151 |         void *blobData;
            |               ^~~~~~~~
      src/griddb_wrap.cpp:4152:13: warning: unused variable ‘year’ [-Wunused-variable]
       4152 |         int year, month, day, hour, minute, second, milliSecond;
            |             ^~~~
      src/griddb_wrap.cpp:4152:19: warning: unused variable ‘month’ [-Wunused-variable]
       4152 |         int year, month, day, hour, minute, second, milliSecond;
            |                   ^~~~~
      src/griddb_wrap.cpp:4152:26: warning: unused variable ‘day’ [-Wunused-variable]
       4152 |         int year, month, day, hour, minute, second, milliSecond;
            |                          ^~~
      src/griddb_wrap.cpp:4152:31: warning: unused variable ‘hour’ [-Wunused-variable]
       4152 |         int year, month, day, hour, minute, second, milliSecond;
            |                               ^~~~
      src/griddb_wrap.cpp:4152:37: warning: unused variable ‘minute’ [-Wunused-variable]
       4152 |         int year, month, day, hour, minute, second, milliSecond;
            |                                     ^~~~~~
      src/griddb_wrap.cpp:4152:45: warning: unused variable ‘second’ [-Wunused-variable]
       4152 |         int year, month, day, hour, minute, second, milliSecond;
            |                                             ^~~~~~
      src/griddb_wrap.cpp:4152:53: warning: unused variable ‘milliSecond’ [-Wunused-variable]
       4152 |         int year, month, day, hour, minute, second, milliSecond;
            |                                                     ^~~~~~~~~~~
      src/griddb_wrap.cpp:4153:14: warning: unused variable ‘s’ [-Wunused-variable]
       4153 |         char s[30];
            |              ^
      src/griddb_wrap.cpp:4155:16: warning: unused variable ‘retConvertTimestamp’ [-Wunused-variable]
       4155 |         GSBool retConvertTimestamp;
            |                ^~~~~~~~~~~~~~~~~~~
      src/griddb_wrap.cpp:4156:15: warning: unused variable ‘pyobjToStr’ [-Wunused-variable]
       4156 |         char* pyobjToStr;
            |               ^~~~~~~~~~
      src/griddb_wrap.cpp:4157:15: warning: unused variable ‘buffer’ [-Wunused-variable]
       4157 |         char* buffer;
            |               ^~~~~~
      src/griddb_wrap.cpp:4158:19: warning: unused variable ‘objectsRepresentation’ [-Wunused-variable]
       4158 |         PyObject* objectsRepresentation;
            |                   ^~~~~~~~~~~~~~~~~~~~~
      src/griddb_wrap.cpp:4162:21: warning: unused variable ‘tmpLongDouble’ [-Wunused-variable]
       4162 |         long double tmpLongDouble;
            |                     ^~~~~~~~~~~~~
      src/griddb_wrap.cpp:4165:14: warning: unused variable ‘inBorderVal’ [-Wunused-variable]
       4165 |         bool inBorderVal = false;
            |              ^~~~~~~~~~~
      src/griddb_wrap.cpp:4166:14: warning: unused variable ‘inRange’ [-Wunused-variable]
       4166 |         bool inRange = false;
            |              ^~~~~~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_new_ContainerInfo__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
      src/griddb_wrap.cpp:6771:7: warning: unused variable ‘val2’ [-Wunused-variable]
       6771 |   int val2 ;
            |       ^~~~
      src/griddb_wrap.cpp:6780:7: warning: unused variable ‘i20’ [-Wunused-variable]
       6780 |   int i20 ;
            |       ^~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_new_ContainerInfo__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
      src/griddb_wrap.cpp:6937:7: warning: unused variable ‘val2’ [-Wunused-variable]
       6937 |   int val2 ;
            |       ^~~~
      src/griddb_wrap.cpp:6942:7: warning: unused variable ‘i20’ [-Wunused-variable]
       6942 |   int i20 ;
            |       ^~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_new_ContainerInfo__SWIG_2(PyObject*, Py_ssize_t, PyObject**)’:
      src/griddb_wrap.cpp:7083:7: warning: unused variable ‘val2’ [-Wunused-variable]
       7083 |   int val2 ;
            |       ^~~~
      src/griddb_wrap.cpp:7086:7: warning: unused variable ‘i20’ [-Wunused-variable]
       7086 |   int i20 ;
            |       ^~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_new_ContainerInfo__SWIG_3(PyObject*, Py_ssize_t, PyObject**)’:
      src/griddb_wrap.cpp:7221:7: warning: unused variable ‘val2’ [-Wunused-variable]
       7221 |   int val2 ;
            |       ^~~~
      src/griddb_wrap.cpp:7222:7: warning: unused variable ‘i20’ [-Wunused-variable]
       7222 |   int i20 ;
            |       ^~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_ContainerInfo_get_column_info_list(PyObject*, PyObject*)’:
      src/griddb_wrap.cpp:7761:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
       7761 |     for (int i = 0; i < size; i++) {
            |                     ~~^~~~~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_ContainerInfo_set_column_info_list(PyObject*, PyObject*)’:
      src/griddb_wrap.cpp:7842:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
       7842 |       for (int i = 0; i < size; i++) {
            |                       ~~^~~~~~
      src/griddb_wrap.cpp:7862:18: error: cannot convert ‘bool’ to ‘PyObject*’ {aka ‘_object*’} in return
       7862 |           return false;
            |                  ^~~~~
      src/griddb_wrap.cpp:7822:10: warning: unused variable ‘vbool’ [-Wunused-variable]
       7822 |     bool vbool;
            |          ^~~~~
      src/griddb_wrap.cpp:7906:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
       7906 |     for (int i = 0; i < size; i++) {
            |                     ~~^~~~~~
      src/griddb_wrap.cpp:7924:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
       7924 |     for (int i = 0; i < size; i++) {
            |                     ~~^~~~~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_QueryAnalysisEntry_get(PyObject*, PyObject*)’:
      src/griddb_wrap.cpp:8762:24: warning: unused variable ‘queryAnalysis12’ [-Wunused-variable]
       8762 |   GSQueryAnalysisEntry queryAnalysis12 ;
            |                        ^~~~~~~~~~~~~~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_Container_put(PyObject*, PyObject*)’:
      src/griddb_wrap.cpp:10939:14: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      10939 |     if (leng != containerInfo->columnCount) {
            |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_Container_get(PyObject*, PyObject*)’:
      src/griddb_wrap.cpp:11285:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      11285 |         for (int j = 0; j < arg2->value.asArray.length; j++) {
            |                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/griddb_wrap.cpp:11398:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      11398 |         for (int j = 0; j < arg2->value.asArray.length; j++) {
            |                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_Container_remove(PyObject*, PyObject*)’:
      src/griddb_wrap.cpp:11564:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      11564 |         for (int j = 0; j < arg2->value.asArray.length; j++) {
            |                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/griddb_wrap.cpp:11672:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      11672 |         for (int j = 0; j < arg2->value.asArray.length; j++) {
            |                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_PartitionController_get_container_names__SWIG_0(PyObject*, Py_ssize_t, PyObject**)’:
      src/griddb_wrap.cpp:12125:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      12125 |     for (int i4 = 0; i4 < size4; i4++) {
            |                      ~~~^~~~~~~
      src/griddb_wrap.cpp:12077:7: warning: unused variable ‘i4’ [-Wunused-variable]
      12077 |   int i4 ;
            |       ^~
      src/griddb_wrap.cpp:12078:10: warning: unused variable ‘size4’ [-Wunused-variable]
      12078 |   size_t size4 ;
            |          ^~~~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_PartitionController_get_container_names__SWIG_1(PyObject*, Py_ssize_t, PyObject**)’:
      src/griddb_wrap.cpp:12196:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      12196 |     for (int i4 = 0; i4 < size4; i4++) {
            |                      ~~~^~~~~~~
      src/griddb_wrap.cpp:12153:7: warning: unused variable ‘i4’ [-Wunused-variable]
      12153 |   int i4 ;
            |       ^~
      src/griddb_wrap.cpp:12154:10: warning: unused variable ‘size4’ [-Wunused-variable]
      12154 |   size_t size4 ;
            |          ^~~~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_RowKeyPredicate_get_range(PyObject*, PyObject*)’:
      src/griddb_wrap.cpp:12559:9: warning: unused variable ‘length’ [-Wunused-variable]
      12559 |     int length = 2;
            |         ^~~~~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_RowKeyPredicate_set_distinct_keys(PyObject*, PyObject*)’:
      src/griddb_wrap.cpp:12721:24: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      12721 |       for (int i = 0; i< arg3; i++) {
            |                       ~^~~~~~
      src/griddb_wrap.cpp:12737:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      12737 |         for (int i = 0; i< arg3; i++) {
            |                         ~^~~~~~
      src/griddb_wrap.cpp:12756:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      12756 |         for (int i = 0; i< arg3; i++) {
            |                         ~^~~~~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_RowKeyPredicate_get_distinct_keys(PyObject*, PyObject*)’:
      src/griddb_wrap.cpp:12825:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      12825 |     for (num = 0; num < size2; num++) {
            |                   ~~~~^~~~~~~
      src/griddb_wrap.cpp:12832:16: error: ordered comparison of pointer with integer zero (‘size_t*’ {aka ‘long unsigned int*’} and ‘int’)
      12832 |       if (arg3 > 0) {
            |           ~~~~~^~~
      src/griddb_wrap.cpp:12833:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      12833 |         for (int i = 0; i< *arg3; i++) {
            |                         ~^~~~~~~
      src/griddb_wrap.cpp:12850:16: error: ordered comparison of pointer with integer zero (‘size_t*’ {aka ‘long unsigned int*’} and ‘int’)
      12850 |       if (arg3 > 0) {
            |           ~~~~~^~~
      src/griddb_wrap.cpp:12851:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      12851 |         for (int i = 0; i< *arg3; i++) {
            |                         ~^~~~~~~
      src/griddb_wrap.cpp:12785:7: warning: unused variable ‘i2’ [-Wunused-variable]
      12785 |   int i2 ;
            |       ^~
      src/griddb_wrap.cpp:12786:10: warning: unused variable ‘size2’ [-Wunused-variable]
      12786 |   size_t size2 ;
            |          ^~~~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_Store_fetch_all(PyObject*, PyObject*)’:
      src/griddb_wrap.cpp:13434:17: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      13434 |       while (i2 < arg3) {
            |              ~~~^~~~~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_Store_multi_put(PyObject*, PyObject*)’:
      src/griddb_wrap.cpp:13528:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      13528 |       while (j < arg5) {
            |              ~~^~~~~~
      src/griddb_wrap.cpp:13568:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      13568 |         for (int m = 0; m < infoListTmp.size; m++) {
            |                         ~~^~~~~~~~~~~~~~~~~~
      src/griddb_wrap.cpp:13616:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      13616 |       for (int i = 0; i < arg5; i++) {
            |                       ~~^~~~~~
      src/griddb_wrap.cpp:13635:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      13635 |       for (int i = 0; i < arg5; i++) {
            |                       ~~^~~~~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_Store_multi_get(PyObject*, PyObject*)’:
      src/griddb_wrap.cpp:13762:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      13762 |     for (int i = 0; i < *arg7; i++) {
            |                     ~~^~~~~~~
      src/griddb_wrap.cpp:13765:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      13765 |       for (int j = 0; j < (*arg5)[i]; j++) {
            |                       ~~^~~~~~~~~~~~
      src/griddb_wrap.cpp:13789:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      13789 |       for (int i20 = 0; i20 < arg3; i20++) {
            |                         ~~~~^~~~~~
      src/griddb_wrap.cpp:13806:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      13806 |       for (int i = 0; i < *arg7; i++) {
            |                       ~~^~~~~~~
      src/griddb_wrap.cpp:13807:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      13807 |         for (int j = 0; j < (*arg5)[i]; j++) {
            |                         ~~^~~~~~~~~~~~
      src/griddb_wrap.cpp:13823:29: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      13823 |       for (int i20 = 0; i20 < arg3; i20++) {
            |                         ~~~~^~~~~~
      src/griddb_wrap.cpp:13840:25: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      13840 |       for (int i = 0; i < *arg7; i++) {
            |                       ~~^~~~~~~
      src/griddb_wrap.cpp:13841:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      13841 |         for (int j = 0; j < (*arg5)[i]; j++) {
            |                         ~~^~~~~~~~~~~~
      src/griddb_wrap.cpp:13682:7: warning: unused variable ‘i20’ [-Wunused-variable]
      13682 |   int i20 ;
            |       ^~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_StoreFactory_get_store__SWIG_7(PyObject*, Py_ssize_t, PyObject**)’:
      src/griddb_wrap.cpp:14781:48: warning: converting to non-pointer type ‘int32_t’ {aka ‘int’} from NULL [-Wconversion-null]
      14781 |     result = (griddb::Store *)(arg1)->get_store((char const *)arg2);
            |                               ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_StoreFactory_get_store__SWIG_8(PyObject*, Py_ssize_t, PyObject**)’:
      src/griddb_wrap.cpp:14823:48: warning: converting to non-pointer type ‘int32_t’ {aka ‘int’} from NULL [-Wconversion-null]
      14823 |     result = (griddb::Store *)(arg1)->get_store();
            |                               ~~~~~~~~~~~~~~~~~^~
      src/griddb_wrap.cpp: In function ‘PyObject* _wrap_StoreFactory_set_properties(PyObject*, PyObject*)’:
      src/griddb_wrap.cpp:15110:7: warning: unused variable ‘i20’ [-Wunused-variable]
      15110 |   int i20 = 0 ;
            |       ^~~
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> griddb-python

note: This is an issue with the package mentioned above, not pip.

building from source still works though

knonomura commented 2 months ago

Thank you for your report.

For the latest GridDB Python Client (0.8.5), I provide only the package(whl) for Python 3.10 on PyPI.

There is the source code for GridDB Python Client (0.7.6, old version) on PyPI, but it can't be built with GCC 10 or 11.

Could you use the source code on GitHub ?

Imisrael commented 1 month ago

Oh yes, I missed that it requires 3.10! It works for me now, and yes, building from source also works if not using version 10 of python 3.

Thanks!