Error traceback Traceback (most recent call last): File "C:\web2py\gluon\restricted.py", line 178, in restricted exec ccode in environment File "C:/web2py/applications/xxx/models/db.py", line 6, in <module> from gluon.contrib.memcache import MemcacheClient ImportError: cannot import name MemcacheClient
In file: C:\web2py\applications\xxx/models/db.py # -*- coding: utf-8 -*- if request.env.web2py_runtime_gae: db = DAL('gae') else: db = DAL('sqlite://storage.sqlite') from gluon.contrib.memcache import MemcacheClient memcache_servers=['127.0.0.1:11211'] mem=MemcacheClient(request,memcache_servers,debug=1) On 11 авг, 16:17, mdipierro <mdipie...@cs.depaul.edu> wrote: > is there a traceback? > > On Aug 11, 7:51 am, Ozz <ozhi...@gmail.com> wrote: > > > > > hi! > > > web2py 1.82.1 > > > trying to get working: > > > ===== > > from gluon.contrib.memcache import MemcacheClient > > memcache_servers=['127.0.0.1:11211'] > > mem=MemcacheClient(request,memcache_servers,debug=1) > > ===== > > > from gluon.contrib.memcache import MemcacheClient > > showa the error "can not find the name MemcacheClient" > > > version 1.79.2 works fine > > > what am i doing wrong? > > > wbr, > > Sergey Ozhigin