will look into this, thanks.

On Jan 5, 2:59 am, Michael Toomim <too...@gmail.com> wrote:
> This actually looks like a problem in interfacing web2py with the
> newest ipython, version .10.  I am getting this error too.
>
> It happens while you're typing the python, before you execute it.  For
> instance, type:
>
> In [1]: for i in range(5):
>
> and you will get the error printed to the screen before you type the
> second line of code.  It looks like this:
>
> In [21]: for i in range(5):
> <ERROR: 'dict' object has no attribute 'len'>    print i
> <ERROR: 'dict' object has no attribute 'len'>
> <ERROR: 'dict' object has no attribute 'len'>
> 0
> 1
> 2
> 3
> 4
>
> The pylons people found and fixed this bug here:
>
> http://groups.google.com/group/pylons-discuss/browse_thread/thread/31...
>
> Perhaps a similar change will fix it for web2py.
>
> On Jan 1, 8:36 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
>
>
>
>
> > The -M import models. Somewere in one of your models there you call
> > theattributelenght of adictobject(obj.len) and it does not exist.
>
> > Massimo
>
> > On Dec 31 2009, 8:31 pm, Sujan Shakya <suzan.sha...@gmail.com> wrote:
>
> > > When I run "python web2py.py -M -S mywiki", I get the followingerror:
>
> > > In [9]: for i in range(5): print i
> > > <ERROR: 'dict'objecthasnoattribute'len'>
> > > 0
> > > 1
> > > 2
> > > 3
> > > 4
>
> > > When I run "python web2py.py -S mywiki", the above code works though.
>
> > > Does anyone know the fix for this ?
>
> > > Thanks.
>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to