Sorry for the late answer. For version 1.82.1 traceback: c:\web2py>python web2py.py -S XXX -N WARNING:root:no file locking web2py Enterprise Web Framework Created by Massimo Di Pierro, Copyright 2007-2010 Version 1.82.1 (2010-08-05 01:00:12) Database drivers available: SQLite3, MySQL WARNING:root:import IPython error, use default python shell Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from gluon.contrib.memcache import MemcacheClient Traceback (most recent call last): File "<console>", line 1, in <module> ImportError: cannot import name MemcacheClient >>>
In version 1.83.2 it seems to work well. wbr, Sergey Ozhigin On 12 авг, 17:43, mdipierro <mdipie...@cs.depaul.edu> wrote: > I am going to need your help debugging this: > > start a shell: > > python web2py.py -S yourapp -N > > and type > > >>> from gluon.contrib.memcacheimport MemcacheClient > > please send me the traceback > > On Aug 12, 9:01 am, Ozz <ozhi...@gmail.com> wrote: > > > > > still waiting for answer... > > need help :) > > > On 11 авг, 16:39, Ozz <ozhi...@gmail.com> wrote: > > > > 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.memcacheimport 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.memcacheimport 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.memcacheimport MemcacheClient > > > > > memcache_servers=['127.0.0.1:11211'] > > > > > mem=MemcacheClient(request,memcache_servers,debug=1) > > > > > ===== > > > > > > from gluon.contrib.memcacheimport MemcacheClient > > > > > showa the error "can not find the name MemcacheClient" > > > > > > version 1.79.2 works fine > > > > > > what am i doing wrong? > > > > > > wbr, > > > > > Sergey Ozhigin