Hi,
I installed *redis* on my local machine
I added this (from the book) in a model :
from gluon.contrib.redis_utils import RConn
from gluon.contrib.redis_cache import RedisCache
rconn = RConn('localhost', 6379)
cache.redis = RedisCache(redis_conn=rconn, debug=True)
first import fails and indeed there's no redis_utils in *gluon/contrib*
only a *redis_cache* and a *redis_session* ?
Ticket ID
127.0.0.1.2016-11-15.14-21-05.909b67c8-376a-4dc9-b350-f2501ef24b1c
<type 'exceptions.ImportError'> No module named redis_utils
Version
web2py™ Version 2.12.3-stable+timestamp.2015.08.19.00.18.03
Python Python 2.7.6: /usr/bin/python (prefix: /usr)
Traceback
Traceback (most recent call last):
File "/opt/web2py/gluon/restricted.py", line 227, in restricted
exec ccode in environment
File "/opt/web2py/applications/myapp/models/db.py", line 8, in <module>
from gluon.contrib.redis_utils import RConn
File "/opt/web2py/gluon/custom_import.py", line 108, in custom_importer
return NATIVE_IMPORTER(name, globals, locals, fromlist, level)
ImportError: No module named redis_utils
Error snapshot help
<type 'exceptions.ImportError'>(No module named redis_utils)
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.