Hi @stephan-hof ,
Does pyrocksdb supports against rocksdb3.6?, if so it was failed when tried in the following environment.
ubuntu 14.04
gcc 4.8.2
rocksdb 3.6
Cython 0.20
pyrocksdb 0.2.1
Can you please look over the error faced:
root@vmserver:/tmp/rocksdb# sudo pip install git+git://github.com/stephan-hof/pyrocksdb.git@v0.2.1
Downloading/unpacking git+git://github.com/stephan-hof/pyrocksdb.git@v0.2.1
Cloning git://github.com/stephan-hof/pyrocksdb.git (to v0.2.1) to /tmp/pip-wnupVg-build
Running setup.py (path:/tmp/pip-wnupVg-build/setup.py) egg_info for package from git+git://github.com/stephan-hof/pyrocksdb.git@v0.2.1
missing cimport in module 'pair': /usr/local/lib/python2.7/dist-packages/Cython/Includes/libcpp/deque.pxd
Compiling rocksdb/_rocksdb.pyx because it changed.
Cythonizing rocksdb/_rocksdb.pyx
Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/lib/python2.7/dist-packages (from pyrocksdb==0.2.1)
Requirement already satisfied (use --upgrade to upgrade): Cython>=0.20 in /usr/local/lib/python2.7/dist-packages (from pyrocksdb==0.2.1)
Installing collected packages: pyrocksdb
Running setup.py install for pyrocksdb
missing cimport in module 'pair': /usr/local/lib/python2.7/dist-packages/Cython/Includes/libcpp/deque.pxd
building 'rocksdb._rocksdb' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c rocksdb/_rocksdb.cpp -o build/
temp.linux-x86_64-2.7/rocksdb/_rocksdb.o -std=gnu++11 -O3 -Wall -Wextra -Wconversion -fno-strict-aliasing
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from rocksdb/_rocksdb.cpp:368:0:
/usr/include/utilities/backupable_db.h:11:2: warning: #warning This file was moved to rocksdb/utilities/backupable_db.h [-Wcpp]
#warning This file was moved to rocksdb/utilities/backupable_db.h
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_19PyBloomFilterPolicy_6create_filter(__pyx_obj_7rocksdb_8_rocksdb_PyBloomFilterPolicy*, PyOb
ject*)’:
rocksdb/_rocksdb.cpp:5589:99: warning: conversion to ‘int’ from ‘std::vector<rocksdb::Slice>::size_type {aka long unsigned int}’ may alter its value [-Wconversion]
__pyx_v_self->policy->CreateFilter(py_rocks::vector_data(__pyx_v_c_keys), __pyx_v_c_keys.size(), (&__pyx_v_dst));
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_17PlainTableFactory___init__(__pyx_obj_7rocksdb_8_rocksdb_PlainTableFactory*, PyObject*, PyObject*, PyObject*, PyObject*)’:
rocksdb/_rocksdb.cpp:8837:116: error: invalid initialization of reference of type ‘const rocksdb::PlainTableOptions&’ from expression of type ‘uint32_t {aka unsigned int}’
__pyx_v_self->__pyx_base.factory.reset(rocksdb::NewPlainTableFactory(__pyx_t_1, __pyx_t_2, __pyx_t_3, __pyx_t_4));
^
In file included from rocksdb/_rocksdb.cpp:360:0:
/usr/include/rocksdb/table.h:227:22: error: in passing argument 1 of ‘rocksdb::TableFactory* rocksdb::NewPlainTableFactory(const rocksdb::PlainTableOptions&)’
extern TableFactory* NewPlainTableFactory(const PlainTableOptions& options =
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_27TotalOrderPlainTableFactory___init__(__pyx_obj_7rocksdb_8_rocksdb_TotalOrderPlainTableFactory*, PyObject*, PyObject*, PyObject*)’:
rocksdb/_rocksdb.cpp:8993:44: error: ‘NewTotalOrderPlainTableFactory’ is not a member of ‘rocksdb’
__pyx_v_self->__pyx_base.factory.reset(rocksdb::NewTotalOrderPlainTableFactory(__pyx_t_1, __pyx_t_2, __pyx_t_3));
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_10block_size___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:10822:58: error: ‘struct rocksdb::Options’ has no member named ‘block_size’
__pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_self->opts->block_size); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_10block_size_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:10885:23: error: ‘struct rocksdb::Options’ has no member named ‘block_size’
__pyx_v_self->opts->block_size = __pyx_t_1;
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_22block_restart_interval___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:10944:56: error: ‘struct rocksdb::Options’ has no member named ‘block_restart_interval’
__pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->opts->block_restart_interval); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_22block_restart_interval_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:11007:23: error: ‘struct rocksdb::Options’ has no member named ‘block_restart_interval’
__pyx_v_self->opts->block_restart_interval = __pyx_t_1;
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_19whole_key_filtering___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:11430:57: error: ‘struct rocksdb::Options’ has no member named ‘whole_key_filtering’
__pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opts->whole_key_filtering); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 754; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp:444:36: note: in definition of macro ‘__Pyx_PyBool_FromLong’
#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_19whole_key_filtering_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:11493:23: error: ‘struct rocksdb::Options’ has no member named ‘whole_key_filtering’
__pyx_v_self->opts->whole_key_filtering = __pyx_t_1;
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_21target_file_size_base___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:12162:77: warning: conversion to ‘int’ from ‘uint64_t {aka long unsigned int}’ may alter its value [-Wconversion]
__pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->opts->target_file_size_base); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 790; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_21db_stats_log_interval___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:13382:56: error: ‘struct rocksdb::Options’ has no member named ‘db_stats_log_interval’
__pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->opts->db_stats_log_interval); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_21db_stats_log_interval_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:13445:23: error: ‘struct rocksdb::Options’ has no member named ‘db_stats_log_interval’
__pyx_v_self->opts->db_stats_log_interval = __pyx_t_1;
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_23disable_seek_compaction___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:13748:57: error: ‘struct rocksdb::Options’ has no member named ‘disable_seek_compaction’
__pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opts->disable_seek_compaction); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 868; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp:444:36: note: in definition of macro ‘__Pyx_PyBool_FromLong’
#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_23disable_seek_compaction_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:13811:23: error: ‘struct rocksdb::Options’ has no member named ‘disable_seek_compaction’
__pyx_v_self->opts->disable_seek_compaction = __pyx_t_1;
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_14no_block_cache___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:15090:57: error: ‘struct rocksdb::Options’ has no member named ‘no_block_cache’
__pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opts->no_block_cache); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 934; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp:444:36: note: in definition of macro ‘__Pyx_PyBool_FromLong’
#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_14no_block_cache_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:15153:23: error: ‘struct rocksdb::Options’ has no member named ‘no_block_cache’
__pyx_v_self->opts->no_block_cache = __pyx_t_1;
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_20block_size_deviation___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:16920:56: error: ‘struct rocksdb::Options’ has no member named ‘block_size_deviation’
__pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->opts->block_size_deviation); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1024; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_20block_size_deviation_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:16983:23: error: ‘struct rocksdb::Options’ has no member named ‘block_size_deviation’
__pyx_v_self->opts->block_size_deviation = __pyx_t_1;
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_13filter_policy_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:19602:23: error: ‘struct rocksdb::Options’ has no member named ‘filter_policy’
__pyx_v_self->opts->filter_policy = ((struct __pyx_vtabstruct_7rocksdb_8_rocksdb_PyFilterPolicy *)__pyx_v_self->py_filter_policy->__pyx_vtab)->get_policy(__pyx_v_self->py_filter_policy);
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_11block_cache_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:19950:27: error: ‘struct rocksdb::Options’ has no member named ‘block_cache’
__pyx_v_self->opts->block_cache.reset();
^
rocksdb/_rocksdb.cpp:20015:25: error: ‘struct rocksdb::Options’ has no member named ‘block_cache’
__pyx_v_self->opts->block_cache = ((struct __pyx_vtabstruct_7rocksdb_8_rocksdb_PyCache *)__pyx_v_self->py_block_cache->__pyx_vtab)->get_cache(__pyx_v_self->py_block_cache);
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_22block_cache_compressed_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:20194:27: error: ‘struct rocksdb::Options’ has no member named ‘block_cache_compressed’
__pyx_v_self->opts->block_cache_compressed.reset();
^
rocksdb/_rocksdb.cpp:20267:23: error: ‘struct rocksdb::Options’ has no member named ‘block_cache_compressed’
__pyx_v_self->opts->block_cache_compressed = ((struct __pyx_vtabstruct_7rocksdb_8_rocksdb_PyCache *)((struct __pyx_obj_7rocksdb_8_rocksdb_PyCache *)__pyx_v_value)->__pyx_vtab)->get_cache(((struct __pyx_obj_7rocksdb_8_rocksdb_PyCache *)__pyx_v_value));
^
rocksdb/_rocksdb.cpp: In function ‘rocksdb::ReadOptions __pyx_f_7rocksdb_8_rocksdb_2DB_build_read_opts(__pyx_obj_7rocksdb_8_rocksdb_DB*, PyObject*)’:
rocksdb/_rocksdb.cpp:25316:16: error: ‘struct rocksdb::ReadOptions’ has no member named ‘prefix_seek’
__pyx_v_opts.prefix_seek = __pyx_t_2;
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_f_7rocksdb_8_rocksdb_12BaseIterator_set_prefix(__pyx_obj_7rocksdb_8_rocksdb_BaseIterator*, rocksdb::ReadOptions&, __pyx_opt_args_7rocksdb_8_rocksdb_12BaseIterator_set_prefix*)’:
rocksdb/_rocksdb.cpp:26349:16: error: ‘struct rocksdb::ReadOptions’ has no member named ‘prefix’
__pyx_v_opts.prefix = (&__pyx_v_self->c_prefix);
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-wnupVg-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-45kNfa-record/install-record.txt --single-version-externally-managed --compile:
missing cimport in module 'pair': /usr/local/lib/python2.7/dist-packages/Cython/Includes/libcpp/deque.pxd
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/rocksdb
copying rocksdb/errors.py -> build/lib.linux-x86_64-2.7/rocksdb
copying rocksdb/interfaces.py -> build/lib.linux-x86_64-2.7/rocksdb
copying rocksdb/__init__.py -> build/lib.linux-x86_64-2.7/rocksdb
creating build/lib.linux-x86_64-2.7/rocksdb/tests
copying rocksdb/tests/test_options.py -> build/lib.linux-x86_64-2.7/rocksdb/tests
copying rocksdb/tests/test_db.py -> build/lib.linux-x86_64-2.7/rocksdb/tests
copying rocksdb/tests/__init__.py -> build/lib.linux-x86_64-2.7/rocksdb/tests
running egg_info
creating pyrocksdb.egg-info
writing requirements to pyrocksdb.egg-info/requires.txt
writing pyrocksdb.egg-info/PKG-INFO
writing top-level names to pyrocksdb.egg-info/top_level.txt
writing dependency_links to pyrocksdb.egg-info/dependency_links.txt
writing manifest file 'pyrocksdb.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pyrocksdb.egg-info/SOURCES.txt'
writing manifest file 'pyrocksdb.egg-info/SOURCES.txt'
copying rocksdb/_rocksdb.cpp -> build/lib.linux-x86_64-2.7/rocksdb
running build_ext
building 'rocksdb._rocksdb' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/rocksdb
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c rocksdb/_rocksdb.cpp -o build/temp.linux-x86_64-2.7/rocksdb/_rocksdb.o -std=gnu++11 -O3 -Wall -Wextra -Wconversion -fno-strict-aliasing
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from rocksdb/_rocksdb.cpp:368:0:
/usr/include/utilities/backupable_db.h:11:2: warning: #warning This file was moved to rocksdb/utilities/backupable_db.h [-Wcpp]
#warning This file was moved to rocksdb/utilities/backupable_db.h
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_19PyBloomFilterPolicy_6create_filter(__pyx_obj_7rocksdb_8_rocksdb_PyBloomFilterPolicy*, PyObject*)’:
rocksdb/_rocksdb.cpp:5589:99: warning: conversion to ‘int’ from ‘std::vector<rocksdb::Slice>::size_type {aka long unsigned int}’ may alter its value [-Wconversion]
__pyx_v_self->policy->CreateFilter(py_rocks::vector_data(__pyx_v_c_keys), __pyx_v_c_keys.size(), (&__pyx_v_dst));
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_17PlainTableFactory___init__(__pyx_obj_7rocksdb_8_rocksdb_PlainTableFactory*, PyObject*, PyObject*, PyObject*, PyObject*)’:
rocksdb/_rocksdb.cpp:8837:116: error: invalid initialization of reference of type ‘const rocksdb::PlainTableOptions&’ from expression of type ‘uint32_t {aka unsigned int}’
__pyx_v_self->__pyx_base.factory.reset(rocksdb::NewPlainTableFactory(__pyx_t_1, __pyx_t_2, __pyx_t_3, __pyx_t_4));
^
In file included from rocksdb/_rocksdb.cpp:360:0:
/usr/include/rocksdb/table.h:227:22: error: in passing argument 1 of ‘rocksdb::TableFactory* rocksdb::NewPlainTableFactory(const rocksdb::PlainTableOptions&)’
extern TableFactory* NewPlainTableFactory(const PlainTableOptions& options =
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_27TotalOrderPlainTableFactory___init__(__pyx_obj_7rocksdb_8_rocksdb_TotalOrderPlainTableFactory*, PyObject*, PyObject*, PyObject*)’:
rocksdb/_rocksdb.cpp:8993:44: error: ‘NewTotalOrderPlainTableFactory’ is not a member of ‘rocksdb’
__pyx_v_self->__pyx_base.factory.reset(rocksdb::NewTotalOrderPlainTableFactory(__pyx_t_1, __pyx_t_2, __pyx_t_3));
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_10block_size___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:10822:58: error: ‘struct rocksdb::Options’ has no member named ‘block_size’
__pyx_t_1 = __Pyx_PyInt_FromSize_t(__pyx_v_self->opts->block_size); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 717; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_10block_size_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:10885:23: error: ‘struct rocksdb::Options’ has no member named ‘block_size’
__pyx_v_self->opts->block_size = __pyx_t_1;
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_22block_restart_interval___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:10944:56: error: ‘struct rocksdb::Options’ has no member named ‘block_restart_interval’
__pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->opts->block_restart_interval); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 723; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_22block_restart_interval_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:11007:23: error: ‘struct rocksdb::Options’ has no member named ‘block_restart_interval’
__pyx_v_self->opts->block_restart_interval = __pyx_t_1;
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_19whole_key_filtering___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:11430:57: error: ‘struct rocksdb::Options’ has no member named ‘whole_key_filtering’
__pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opts->whole_key_filtering); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 754; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp:444:36: note: in definition of macro ‘__Pyx_PyBool_FromLong’
#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_19whole_key_filtering_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:11493:23: error: ‘struct rocksdb::Options’ has no member named ‘whole_key_filtering’
__pyx_v_self->opts->whole_key_filtering = __pyx_t_1;
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_21target_file_size_base___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:12162:77: warning: conversion to ‘int’ from ‘uint64_t {aka long unsigned int}’ may alter its value [-Wconversion]
__pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->opts->target_file_size_base); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 790; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_21db_stats_log_interval___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:13382:56: error: ‘struct rocksdb::Options’ has no member named ‘db_stats_log_interval’
__pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->opts->db_stats_log_interval); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 850; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_21db_stats_log_interval_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:13445:23: error: ‘struct rocksdb::Options’ has no member named ‘db_stats_log_interval’
__pyx_v_self->opts->db_stats_log_interval = __pyx_t_1;
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_23disable_seek_compaction___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:13748:57: error: ‘struct rocksdb::Options’ has no member named ‘disable_seek_compaction’
__pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opts->disable_seek_compaction); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 868; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp:444:36: note: in definition of macro ‘__Pyx_PyBool_FromLong’
#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_23disable_seek_compaction_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:13811:23: error: ‘struct rocksdb::Options’ has no member named ‘disable_seek_compaction’
__pyx_v_self->opts->disable_seek_compaction = __pyx_t_1;
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_14no_block_cache___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:15090:57: error: ‘struct rocksdb::Options’ has no member named ‘no_block_cache’
__pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->opts->no_block_cache); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 934; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp:444:36: note: in definition of macro ‘__Pyx_PyBool_FromLong’
#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_14no_block_cache_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:15153:23: error: ‘struct rocksdb::Options’ has no member named ‘no_block_cache’
__pyx_v_self->opts->no_block_cache = __pyx_t_1;
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_pf_7rocksdb_8_rocksdb_7Options_20block_size_deviation___get__(__pyx_obj_7rocksdb_8_rocksdb_Options*)’:
rocksdb/_rocksdb.cpp:16920:56: error: ‘struct rocksdb::Options’ has no member named ‘block_size_deviation’
__pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->opts->block_size_deviation); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1024; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_20block_size_deviation_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:16983:23: error: ‘struct rocksdb::Options’ has no member named ‘block_size_deviation’
__pyx_v_self->opts->block_size_deviation = __pyx_t_1;
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_13filter_policy_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:19602:23: error: ‘struct rocksdb::Options’ has no member named ‘filter_policy’
__pyx_v_self->opts->filter_policy = ((struct __pyx_vtabstruct_7rocksdb_8_rocksdb_PyFilterPolicy *)__pyx_v_self->py_filter_policy->__pyx_vtab)->get_policy(__pyx_v_self->py_filter_policy);
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_11block_cache_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:19950:27: error: ‘struct rocksdb::Options’ has no member named ‘block_cache’
__pyx_v_self->opts->block_cache.reset();
^
rocksdb/_rocksdb.cpp:20015:25: error: ‘struct rocksdb::Options’ has no member named ‘block_cache’
__pyx_v_self->opts->block_cache = ((struct __pyx_vtabstruct_7rocksdb_8_rocksdb_PyCache *)__pyx_v_self->py_block_cache->__pyx_vtab)->get_cache(__pyx_v_self->py_block_cache);
^
rocksdb/_rocksdb.cpp: In function ‘int __pyx_pf_7rocksdb_8_rocksdb_7Options_22block_cache_compressed_2__set__(__pyx_obj_7rocksdb_8_rocksdb_Options*, PyObject*)’:
rocksdb/_rocksdb.cpp:20194:27: error: ‘struct rocksdb::Options’ has no member named ‘block_cache_compressed’
__pyx_v_self->opts->block_cache_compressed.reset();
^
rocksdb/_rocksdb.cpp:20267:23: error: ‘struct rocksdb::Options’ has no member named ‘block_cache_compressed’
__pyx_v_self->opts->block_cache_compressed = ((struct __pyx_vtabstruct_7rocksdb_8_rocksdb_PyCache *)((struct __pyx_obj_7rocksdb_8_rocksdb_PyCache *)__pyx_v_value)->__pyx_vtab)->get_cache(((struct __pyx_obj_7rocksdb_8_rocksdb_PyCache *)__pyx_v_value));
^
rocksdb/_rocksdb.cpp: In function ‘rocksdb::ReadOptions __pyx_f_7rocksdb_8_rocksdb_2DB_build_read_opts(__pyx_obj_7rocksdb_8_rocksdb_DB*, PyObject*)’:
rocksdb/_rocksdb.cpp:25316:16: error: ‘struct rocksdb::ReadOptions’ has no member named ‘prefix_seek’
__pyx_v_opts.prefix_seek = __pyx_t_2;
^
rocksdb/_rocksdb.cpp: In function ‘PyObject* __pyx_f_7rocksdb_8_rocksdb_12BaseIterator_set_prefix(__pyx_obj_7rocksdb_8_rocksdb_BaseIterator*, rocksdb::ReadOptions&, __pyx_opt_args_7rocksdb_8_rocksdb_12BaseIterator_set_prefix*)’:
rocksdb/_rocksdb.cpp:26349:16: error: ‘struct rocksdb::ReadOptions’ has no member named ‘prefix’
__pyx_v_opts.prefix = (&__pyx_v_self->c_prefix);
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-wnupVg-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-45kNfa-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-wnupVg-build
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.5.4', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 185, in main
return command.main(cmd_args)
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 161, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 42: ordinal not in range(128)
Hi @stephan-hof , Does pyrocksdb supports against rocksdb3.6?, if so it was failed when tried in the following environment. ubuntu 14.04 gcc 4.8.2 rocksdb 3.6 Cython 0.20 pyrocksdb 0.2.1 Can you please look over the error faced: