Comments (5)
2.6 is easy I think. I´ll investigate the others.
Original comment by [email protected]
on 13 Aug 2011 at 3:39
- Changed state: Accepted
from py-leveldb.
Just committed changes to support Python 2.4, 2.5 and 2.6. Will attempt
3.0/3.1/3.2 later, and leaving the issue open until then.
Original comment by [email protected]
on 15 Aug 2011 at 9:08
from py-leveldb.
[deleted comment]
from py-leveldb.
Not working for python 2.4 since it lookis Py_ssize_t only get defined after
python 2.5.
$ python setup.py build
running build
running build_py
package init file '__init__.py' not found (or not a regular file)
package init file '__init__.py' not found (or not a regular file)
running build_ext
building 'leveldb' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC
-I/usr/include/python2.4 -c leveldb_ext.cc -o
build/temp.linux-x86_64-2.4/leveldb_ext.o -I./leveldb-read-only/include -fPIC
-Wall -g2 -D_GNU_SOURCE -O2 -DNDEBUG
leveldb_ext.h:39: error: '˜Py_ssize_t' does not name a type
leveldb_ext.h:42: error: 'Py_ssize_t' does not name a type
error: command 'gcc' failed with exit status 1
the patch below worked...on Linux version 2.6.18-128.7.1.el5(gcc version 4.1.2)
$ svn diff
Index: leveldb_ext.h
===================================================================
--- leveldb_ext.h (revision 38)
+++ leveldb_ext.h (working copy)
@@ -26,6 +26,10 @@
PyObject* leveldb_repair_db(PyObject* o, PyObject* args);
PyObject* leveldb_destroy_db(PyObject* o, PyObject* args);
+#if (PY_VERSION_HEX < 0x02050000)
+typedef size_t Py_ssize_t ;
+#endif
+
typedef struct {
PyObject_HEAD
Original comment by [email protected]
on 20 Dec 2011 at 6:56
from py-leveldb.
My bad. There was a regression. Should be working fine now.
Original comment by [email protected]
on 20 Dec 2011 at 10:22
- Changed state: Fixed
from py-leveldb.
Related Issues (20)
- add setuptools support HOT 3
- Return None from LevelDB.Get rather than raising KeyError (performance) HOT 5
- build fails due to __init__.py not found HOT 3
- Allow comparator name to be specified HOT 18
- RangeIter doesn't accept None for key_from or key_to HOT 2
- RepairDB segfaults HOT 9
- RepairDB does not accept comparators HOT 1
- Support for CompactRange() HOT 1
- 求增加连接python-leveldb 32位 for windows
- Does not build due to missing snappy header HOT 2
- Build fails with latest version of snappy and pyleveldb HOT 2
- Segmentation fault ? It was py-leveldb bug ? or levelDB bug? HOT 2
- Need a method to close/unlock the database HOT 3
- Memory leak when using WriteBatch HOT 1
- Request to update setup.py/pypi HOT 4
- Installation requires ez_setup HOT 3
- leveldb cannot be installed HOT 4
- ..
- can't iterate over the db keys & values
- Fails to build on OS X 10.9.5 with Xcode 6.1.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py-leveldb.