I am using Python 3.
When I try to load a leveldb database within my bottle script I get the error:
leveldb.LevelDBError: IO error: lock ./applytomesessions/LOCK: Resource temporarily unavailable
Below is the code of my test file.
Can anyone help?
thanks
ubuntu@:~/devel$ cat temp.py
#!python3.2
import bottle
import leveldb
ldb = leveldb.LevelDB('./applytomesessions')
@bottle.route('/helloworld')
def helloworld():
return "Hello world"
bottle.run(reloader=True, host='localhost', port=8080)
ubuntu:~/devel$ python3 temp.py
Traceback (most recent call last):
File "temp.py", line 5, in <module>
ldb = leveldb.LevelDB('./applytomesessions')
leveldb.LevelDBError: IO error: lock ./applytomesessions/LOCK: Resource temporarily unavailable
ubuntu@:~/devel$