Hi Arni
I am trying to install leveldb to work with Python 3.
A couple of questions.
I followed the installation steps here:
http://code.google.com/p/py-leveldb/
First thing is that the installation process does not seem to have copied the leveldb shared library to /usr/local/lib - I had to do this manually and also do a setenv to put that directory on my path for python to find. Is this intentional? Anyway I did that manually and it now seems to import so that's not a major problem.
A bigger problem is the following:
Python 3.2.3 (default, May 3 2012, 15:51:42)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import leveldb
>>> db = leveldb.LevelDB('./db')
>>> db.Put('hello', 'world')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'str' does not support the buffer interface
>>>
I can see in the project bugs that someone appears to have fixed this for Python 3, but it still seems to be happening to me. Not sure why.
Are you able to throw any light on it?
Thanks for writing these drivers - it's nice to see Python 3 supported.
thanks heaps
\