Open anarahmadov opened 10 months ago
My Dockerfile contains these.
FROM python:3.10-alpine WORKDIR /app ## Install gcc and other dependencies, needed for image manipulations RUN apk add --no-cache gcc g++ musl-dev libffi-dev openssl-dev make openblas-dev COPY requirements.txt requirements.txt RUN pip install --no-cache-dir -r requirements.txt COPY ./app /app/app RUN echo -e '#!/bin/sh' > run.sh RUN echo 'uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload --log-level debug' >> run.sh RUN chmod +x run.sh CMD ["./run.sh"]
I have faced below error. Could you please someone help with that?
Encountered error while trying to install package. 29.71 ╰─> python-rocksdb
29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1797:31: Constructing Python tuple not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 check_status(self.ptr.status()) 29.69 29.69 cpdef seek(self, key): 29.69 cdef Slice c_key = bytes_to_slice(key) 29.69 with nogil: 29.69 self.ptr.Seek(c_key) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1803:25: Discarding owned Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 check_status(self.ptr.status()) 29.69 29.69 cpdef seek(self, key): 29.69 cdef Slice c_key = bytes_to_slice(key) 29.69 with nogil: 29.69 self.ptr.Seek(c_key) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1803:25: Calling gil-requiring function not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 check_status(self.ptr.status()) 29.69 29.69 cpdef seek(self, key): 29.69 cdef Slice c_key = bytes_to_slice(key) 29.69 with nogil: 29.69 self.ptr.Seek(c_key) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1803:20: Accessing Python attribute not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 check_status(self.ptr.status()) 29.69 29.69 cpdef seek(self, key): 29.69 cdef Slice c_key = bytes_to_slice(key) 29.69 with nogil: 29.69 self.ptr.Seek(c_key) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1803:25: Constructing Python tuple not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 check_status(self.ptr.status()) 29.69 29.69 cpdef seek(self, key): 29.69 cdef Slice c_key = bytes_to_slice(key) 29.69 with nogil: 29.69 self.ptr.Seek(c_key) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1803:26: Converting to Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 check_status(self.ptr.status()) 29.69 29.69 cpdef seek_for_prev(self, key): 29.69 cdef Slice c_key = bytes_to_slice(key) 29.69 with nogil: 29.69 self.ptr.SeekForPrev(c_key) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1809:32: Discarding owned Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 check_status(self.ptr.status()) 29.69 29.69 cpdef seek_for_prev(self, key): 29.69 cdef Slice c_key = bytes_to_slice(key) 29.69 with nogil: 29.69 self.ptr.SeekForPrev(c_key) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1809:32: Calling gil-requiring function not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 check_status(self.ptr.status()) 29.69 29.69 cpdef seek_for_prev(self, key): 29.69 cdef Slice c_key = bytes_to_slice(key) 29.69 with nogil: 29.69 self.ptr.SeekForPrev(c_key) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1809:20: Accessing Python attribute not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 check_status(self.ptr.status()) 29.69 29.69 cpdef seek_for_prev(self, key): 29.69 cdef Slice c_key = bytes_to_slice(key) 29.69 with nogil: 29.69 self.ptr.SeekForPrev(c_key) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1809:32: Constructing Python tuple not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 check_status(self.ptr.status()) 29.69 29.69 cpdef seek_for_prev(self, key): 29.69 cdef Slice c_key = bytes_to_slice(key) 29.69 with nogil: 29.69 self.ptr.SeekForPrev(c_key) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1809:33: Converting to Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 @cython.internal 29.69 cdef class KeysIterator(BaseIterator): 29.69 cdef object get_ob(self): 29.69 cdef Slice c_key 29.69 with nogil: 29.69 c_key = self.ptr.key() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1820:32: Coercion from Python not allowed without the GIL 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 @cython.internal 29.69 cdef class KeysIterator(BaseIterator): 29.69 cdef object get_ob(self): 29.69 cdef Slice c_key 29.69 with nogil: 29.69 c_key = self.ptr.key() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1820:32: Calling gil-requiring function not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 @cython.internal 29.69 cdef class KeysIterator(BaseIterator): 29.69 cdef object get_ob(self): 29.69 cdef Slice c_key 29.69 with nogil: 29.69 c_key = self.ptr.key() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1820:28: Accessing Python attribute not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 @cython.internal 29.69 cdef class KeysIterator(BaseIterator): 29.69 cdef object get_ob(self): 29.69 cdef Slice c_key 29.69 with nogil: 29.69 c_key = self.ptr.key() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1820:32: Constructing Python tuple not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 @cython.internal 29.69 cdef class ValuesIterator(BaseIterator): 29.69 cdef object get_ob(self): 29.69 cdef Slice c_value 29.69 with nogil: 29.69 c_value = self.ptr.value() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1829:36: Coercion from Python not allowed without the GIL 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 @cython.internal 29.69 cdef class ValuesIterator(BaseIterator): 29.69 cdef object get_ob(self): 29.69 cdef Slice c_value 29.69 with nogil: 29.69 c_value = self.ptr.value() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1829:36: Calling gil-requiring function not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 @cython.internal 29.69 cdef class ValuesIterator(BaseIterator): 29.69 cdef object get_ob(self): 29.69 cdef Slice c_value 29.69 with nogil: 29.69 c_value = self.ptr.value() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1829:30: Accessing Python attribute not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 @cython.internal 29.69 cdef class ValuesIterator(BaseIterator): 29.69 cdef object get_ob(self): 29.69 cdef Slice c_value 29.69 with nogil: 29.69 c_value = self.ptr.value() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1829:36: Constructing Python tuple not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef class ItemsIterator(BaseIterator): 29.69 cdef object get_ob(self): 29.69 cdef Slice c_key 29.69 cdef Slice c_value 29.69 with nogil: 29.69 c_key = self.ptr.key() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1839:32: Coercion from Python not allowed without the GIL 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef class ItemsIterator(BaseIterator): 29.69 cdef object get_ob(self): 29.69 cdef Slice c_key 29.69 cdef Slice c_value 29.69 with nogil: 29.69 c_key = self.ptr.key() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1839:32: Calling gil-requiring function not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef class ItemsIterator(BaseIterator): 29.69 cdef object get_ob(self): 29.69 cdef Slice c_key 29.69 cdef Slice c_value 29.69 with nogil: 29.69 c_key = self.ptr.key() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1839:28: Accessing Python attribute not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef class ItemsIterator(BaseIterator): 29.69 cdef object get_ob(self): 29.69 cdef Slice c_key 29.69 cdef Slice c_value 29.69 with nogil: 29.69 c_key = self.ptr.key() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1839:32: Constructing Python tuple not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef object get_ob(self): 29.69 cdef Slice c_key 29.69 cdef Slice c_value 29.69 with nogil: 29.69 c_key = self.ptr.key() 29.69 c_value = self.ptr.value() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1840:36: Coercion from Python not allowed without the GIL 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef object get_ob(self): 29.69 cdef Slice c_key 29.69 cdef Slice c_value 29.69 with nogil: 29.69 c_key = self.ptr.key() 29.69 c_value = self.ptr.value() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1840:36: Calling gil-requiring function not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef object get_ob(self): 29.69 cdef Slice c_key 29.69 cdef Slice c_value 29.69 with nogil: 29.69 c_key = self.ptr.key() 29.69 c_value = self.ptr.value() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1840:30: Accessing Python attribute not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef object get_ob(self): 29.69 cdef Slice c_key 29.69 cdef Slice c_value 29.69 with nogil: 29.69 c_key = self.ptr.key() 29.69 c_value = self.ptr.value() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1840:36: Constructing Python tuple not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 if not self.it.ptr.Valid(): 29.69 raise StopIteration() 29.69 29.69 cdef object ret = self.it.get_ob() 29.69 with nogil: 29.69 self.it.ptr.Prev() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1878:28: Discarding owned Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 if not self.it.ptr.Valid(): 29.69 raise StopIteration() 29.69 29.69 cdef object ret = self.it.get_ob() 29.69 with nogil: 29.69 self.it.ptr.Prev() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1878:28: Calling gil-requiring function not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 if not self.it.ptr.Valid(): 29.69 raise StopIteration() 29.69 29.69 cdef object ret = self.it.get_ob() 29.69 with nogil: 29.69 self.it.ptr.Prev() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1878:23: Accessing Python attribute not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 if not self.it.ptr.Valid(): 29.69 raise StopIteration() 29.69 29.69 cdef object ret = self.it.get_ob() 29.69 with nogil: 29.69 self.it.ptr.Prev() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1878:28: Constructing Python tuple not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef cpp_bool c_flush_before_backup 29.69 29.69 c_flush_before_backup = flush_before_backup 29.69 29.69 with nogil: 29.69 st = self.engine.CreateNewBackup(db.db, c_flush_before_backup) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1910:44: Coercion from Python not allowed without the GIL 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef cpp_bool c_flush_before_backup 29.69 29.69 c_flush_before_backup = flush_before_backup 29.69 29.69 with nogil: 29.69 st = self.engine.CreateNewBackup(db.db, c_flush_before_backup) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1910:44: Calling gil-requiring function not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef cpp_bool c_flush_before_backup 29.69 29.69 c_flush_before_backup = flush_before_backup 29.69 29.69 with nogil: 29.69 st = self.engine.CreateNewBackup(db.db, c_flush_before_backup) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1910:28: Accessing Python attribute not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef cpp_bool c_flush_before_backup 29.69 29.69 c_flush_before_backup = flush_before_backup 29.69 29.69 with nogil: 29.69 st = self.engine.CreateNewBackup(db.db, c_flush_before_backup) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1910:44: Constructing Python tuple not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef cpp_bool c_flush_before_backup 29.69 29.69 c_flush_before_backup = flush_before_backup 29.69 29.69 with nogil: 29.69 st = self.engine.CreateNewBackup(db.db, c_flush_before_backup) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1910:47: Converting to Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef cpp_bool c_flush_before_backup 29.69 29.69 c_flush_before_backup = flush_before_backup 29.69 29.69 with nogil: 29.69 st = self.engine.CreateNewBackup(db.db, c_flush_before_backup) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1910:52: Converting to Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 c_backup_id = backup_id 29.69 c_db_dir = path_to_string(db_dir) 29.69 c_wal_dir = path_to_string(wal_dir) 29.69 29.69 with nogil: 29.69 st = self.engine.RestoreDBFromBackup( 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1924:48: Coercion from Python not allowed without the GIL 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 c_backup_id = backup_id 29.69 c_db_dir = path_to_string(db_dir) 29.69 c_wal_dir = path_to_string(wal_dir) 29.69 29.69 with nogil: 29.69 st = self.engine.RestoreDBFromBackup( 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1924:48: Calling gil-requiring function not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 c_backup_id = backup_id 29.69 c_db_dir = path_to_string(db_dir) 29.69 c_wal_dir = path_to_string(wal_dir) 29.69 29.69 with nogil: 29.69 st = self.engine.RestoreDBFromBackup( 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1924:28: Accessing Python attribute not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 c_backup_id = backup_id 29.69 c_db_dir = path_to_string(db_dir) 29.69 c_wal_dir = path_to_string(wal_dir) 29.69 29.69 with nogil: 29.69 st = self.engine.RestoreDBFromBackup( 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1924:48: Constructing Python tuple not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 c_db_dir = path_to_string(db_dir) 29.69 c_wal_dir = path_to_string(wal_dir) 29.69 29.69 with nogil: 29.69 st = self.engine.RestoreDBFromBackup( 29.69 c_backup_id, 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1925:16: Converting to Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 c_wal_dir = path_to_string(wal_dir) 29.69 29.69 with nogil: 29.69 st = self.engine.RestoreDBFromBackup( 29.69 c_backup_id, 29.69 c_db_dir, 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1926:16: Converting to Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 with nogil: 29.69 st = self.engine.RestoreDBFromBackup( 29.69 c_backup_id, 29.69 c_db_dir, 29.69 c_wal_dir) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1927:16: Converting to Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 c_db_dir = path_to_string(db_dir) 29.69 c_wal_dir = path_to_string(wal_dir) 29.69 29.69 with nogil: 29.69 st = self.engine.RestoreDBFromLatestBackup(c_db_dir, c_wal_dir) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1940:54: Coercion from Python not allowed without the GIL 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 c_db_dir = path_to_string(db_dir) 29.69 c_wal_dir = path_to_string(wal_dir) 29.69 29.69 with nogil: 29.69 st = self.engine.RestoreDBFromLatestBackup(c_db_dir, c_wal_dir) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1940:54: Calling gil-requiring function not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 c_db_dir = path_to_string(db_dir) 29.69 c_wal_dir = path_to_string(wal_dir) 29.69 29.69 with nogil: 29.69 st = self.engine.RestoreDBFromLatestBackup(c_db_dir, c_wal_dir) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1940:28: Accessing Python attribute not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 c_db_dir = path_to_string(db_dir) 29.69 c_wal_dir = path_to_string(wal_dir) 29.69 29.69 with nogil: 29.69 st = self.engine.RestoreDBFromLatestBackup(c_db_dir, c_wal_dir) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1940:54: Constructing Python tuple not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 c_db_dir = path_to_string(db_dir) 29.69 c_wal_dir = path_to_string(wal_dir) 29.69 29.69 with nogil: 29.69 st = self.engine.RestoreDBFromLatestBackup(c_db_dir, c_wal_dir) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1940:55: Converting to Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 c_db_dir = path_to_string(db_dir) 29.69 c_wal_dir = path_to_string(wal_dir) 29.69 29.69 with nogil: 29.69 st = self.engine.RestoreDBFromLatestBackup(c_db_dir, c_wal_dir) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1940:65: Converting to Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 check_status(st) 29.69 29.69 def stop_backup(self): 29.69 with nogil: 29.69 self.engine.StopBackup() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1946:34: Discarding owned Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 check_status(st) 29.69 29.69 def stop_backup(self): 29.69 with nogil: 29.69 self.engine.StopBackup() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1946:34: Calling gil-requiring function not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 check_status(st) 29.69 29.69 def stop_backup(self): 29.69 with nogil: 29.69 self.engine.StopBackup() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1946:23: Accessing Python attribute not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 check_status(st) 29.69 29.69 def stop_backup(self): 29.69 with nogil: 29.69 self.engine.StopBackup() 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1946:34: Constructing Python tuple not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef uint32_t c_num_backups_to_keep 29.69 29.69 c_num_backups_to_keep = num_backups_to_keep 29.69 29.69 with nogil: 29.69 st = self.engine.PurgeOldBackups(c_num_backups_to_keep) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1955:44: Coercion from Python not allowed without the GIL 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef uint32_t c_num_backups_to_keep 29.69 29.69 c_num_backups_to_keep = num_backups_to_keep 29.69 29.69 with nogil: 29.69 st = self.engine.PurgeOldBackups(c_num_backups_to_keep) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1955:44: Calling gil-requiring function not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef uint32_t c_num_backups_to_keep 29.69 29.69 c_num_backups_to_keep = num_backups_to_keep 29.69 29.69 with nogil: 29.69 st = self.engine.PurgeOldBackups(c_num_backups_to_keep) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1955:28: Accessing Python attribute not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef uint32_t c_num_backups_to_keep 29.69 29.69 c_num_backups_to_keep = num_backups_to_keep 29.69 29.69 with nogil: 29.69 st = self.engine.PurgeOldBackups(c_num_backups_to_keep) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1955:44: Constructing Python tuple not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef uint32_t c_num_backups_to_keep 29.69 29.69 c_num_backups_to_keep = num_backups_to_keep 29.69 29.69 with nogil: 29.69 st = self.engine.PurgeOldBackups(c_num_backups_to_keep) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1955:45: Converting to Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef backup.BackupID c_backup_id 29.69 29.69 c_backup_id = backup_id 29.69 29.69 with nogil: 29.69 st = self.engine.DeleteBackup(c_backup_id) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1965:41: Coercion from Python not allowed without the GIL 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef backup.BackupID c_backup_id 29.69 29.69 c_backup_id = backup_id 29.69 29.69 with nogil: 29.69 st = self.engine.DeleteBackup(c_backup_id) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1965:41: Calling gil-requiring function not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef backup.BackupID c_backup_id 29.69 29.69 c_backup_id = backup_id 29.69 29.69 with nogil: 29.69 st = self.engine.DeleteBackup(c_backup_id) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1965:28: Accessing Python attribute not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef backup.BackupID c_backup_id 29.69 29.69 c_backup_id = backup_id 29.69 29.69 with nogil: 29.69 st = self.engine.DeleteBackup(c_backup_id) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1965:41: Constructing Python tuple not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 cdef backup.BackupID c_backup_id 29.69 29.69 c_backup_id = backup_id 29.69 29.69 with nogil: 29.69 st = self.engine.DeleteBackup(c_backup_id) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1965:42: Converting to Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 def get_backup_info(self): 29.69 cdef vector[backup.BackupInfo] backup_info 29.69 29.69 with nogil: 29.69 self.engine.GetBackupInfo(cython.address(backup_info)) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1973:37: Discarding owned Python object not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 def get_backup_info(self): 29.69 cdef vector[backup.BackupInfo] backup_info 29.69 29.69 with nogil: 29.69 self.engine.GetBackupInfo(cython.address(backup_info)) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1973:37: Calling gil-requiring function not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 def get_backup_info(self): 29.69 cdef vector[backup.BackupInfo] backup_info 29.69 29.69 with nogil: 29.69 self.engine.GetBackupInfo(cython.address(backup_info)) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1973:23: Accessing Python attribute not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 def get_backup_info(self): 29.69 cdef vector[backup.BackupInfo] backup_info 29.69 29.69 with nogil: 29.69 self.engine.GetBackupInfo(cython.address(backup_info)) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1973:37: Constructing Python tuple not allowed without gil 29.69 29.69 Error compiling Cython file: 29.69 ------------------------------------------------------------ 29.69 ... 29.69 29.69 def get_backup_info(self): 29.69 cdef vector[backup.BackupInfo] backup_info 29.69 29.69 with nogil: 29.69 self.engine.GetBackupInfo(cython.address(backup_info)) 29.69 ^ 29.69 ------------------------------------------------------------ 29.69 29.69 rocksdb/_rocksdb.pyx:1973:44: Converting to Python object not allowed without gil 29.69 Traceback (most recent call last): 29.69 File "<string>", line 2, in <module> 29.69 File "<pip-setuptools-caller>", line 34, in <module> 29.69 File "/tmp/pip-install-vftrviud/python-rocksdb_d7356f826bf4438cb09f7c301618b5c3/setup.py", line 21, in <module> 29.69 setup( 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup 29.69 return distutils.core.setup(**attrs) 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup 29.69 return run_commands(dist) 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands 29.69 dist.run_commands() 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands 29.69 self.run_command(cmd) 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command 29.69 super().run_command(command) 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command 29.69 cmd_obj.run() 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/command/install.py", line 68, in run 29.69 return orig.install.run(self) 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/_distutils/command/install.py", line 698, in run 29.69 self.run_command('build') 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command 29.69 self.distribution.run_command(command) 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command 29.69 super().run_command(command) 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command 29.69 cmd_obj.run() 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 132, in run 29.69 self.run_command(cmd_name) 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command 29.69 self.distribution.run_command(command) 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command 29.69 super().run_command(command) 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command 29.69 cmd_obj.run() 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 84, in run 29.69 _build_ext.run(self) 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 346, in run 29.69 self.build_extensions() 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 466, in build_extensions 29.69 self._build_extensions_serial() 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 492, in _build_extensions_serial 29.69 self.build_extension(ext) 29.69 File "/usr/local/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 246, in build_extension 29.69 _build_ext.build_extension(self, ext) 29.69 File "/tmp/pip-install-vftrviud/python-rocksdb_d7356f826bf4438cb09f7c301618b5c3/.eggs/Cython-3.0.4-py3.10-linux-x86_64.egg/Cython/Distutils/build_ext.py", line 130, in build_extension 29.69 new_ext = cythonize( 29.69 File "/tmp/pip-install-vftrviud/python-rocksdb_d7356f826bf4438cb09f7c301618b5c3/.eggs/Cython-3.0.4-py3.10-linux-x86_64.egg/Cython/Build/Dependencies.py", line 1154, in cythonize 29.69 cythonize_one(*args) 29.69 File "/tmp/pip-install-vftrviud/python-rocksdb_d7356f826bf4438cb09f7c301618b5c3/.eggs/Cython-3.0.4-py3.10-linux-x86_64.egg/Cython/Build/Dependencies.py", line 1321, in cythonize_one 29.69 raise CompileError(None, pyx_file) 29.69 Cython.Compiler.Errors.CompileError: rocksdb/_rocksdb.pyx 29.69 [end of output] 29.69 29.69 note: This error originates from a subprocess, and is likely not a problem with pip. 29.71 error: legacy-install-failure 29.71 29.71 × Encountered error while trying to install package. 29.71 ╰─> python-rocksdb 29.71 29.71 note: This is an issue with the package mentioned above, not pip. 29.71 hint: See above for output from the failure. 30.06 30.06 [notice] A new release of pip is available: 23.0.1 -> 23.3.1 30.06 [notice] To update, run: pip install --upgrade pip
have same problem from image: python:3.9.16-bullseye AS builder
Anyone figure this out???
May be here can help you https://github.com/twmht/python-rocksdb/issues/111#issuecomment-2122433790
My Dockerfile contains these.
I have faced below error. Could you please someone help with that?
Encountered error while trying to install package. 29.71 ╰─> python-rocksdb