Importing a csv I get <type 'exceptions.NameError'>(name 'step' is not defined)?

84 views
Skip to first unread message

Jakob Hartman

unread,
Jul 16, 2014, 6:12:28 PM7/16/14
to web...@googlegroups.com

<type 'exceptions.NameError'> name 'step' is not defined

Version

web2py™Version 2.9.5-stable+timestamp.2014.03.16.02.35.39
PythonPython 2.7.8: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python (prefix: /Library/Frameworks/Python.framework/Versions/2.7)

Traceback

1.
2.
3.
4.
5.
6.
7.
Traceback (most recent call last):
File "/Users/Jakob/Desktop/web2py/gluon/restricted.py", line 220, in restricted
exec ccode in environment
File "/Users/Jakob/Desktop/web2py/applications/mqr/views/appadmin.html", line 183, in <module>
<
h4>{{=T("DISK")}}</h4>
NameError: name 'step' is not defined

Error snapshot help

<type 'exceptions.NameError'>(name 'step' is not defined)

inspect attributes

Frames

  • File /Users/Jakob/Desktop/web2py/gluon/restricted.py in restricted at line 220 code arguments variables

  • File /Users/Jakob/Desktop/web2py/applications/mqr/views/appadmin.html in <module> at line 183 code arguments variables

    Function argument list

    ()

    Code listing
    174.
    175.
    176.
    177.
    178.
    179.
    180.
    181.
    182.
    183.

    184.
    185.
    186.
    187.
    188.
    189.
    190.
    191.
    192.
    193.
        response.write(T('"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN'))
    response.write('</p>\n <br/><br/>\n <h4>', escape=False)
    response.write(T("%s selected", nrows))
    response.write('</h4>\n ', escape=False)
    if start>0:
    response.write(A(T('previous %s rows') % step,_href=URL('select',args=request.args[0],vars=dict(start=start-step)),_class="btn"))
    pass
    response.write('\n ', escape=False)
    if stop<nrows:
    response.write(A(T('next %s rows') % step,_href=URL('select',args=request.args[0],vars=dict(start=start+step)),_class="btn"))

    pass
    response.write('\n ', escape=False)
    if rows:
    response.write('\n <div style="overflow: auto;" width="80%">\n ', escape=False)
    linkto = lambda f, t, r: URL('update', args=[request.args[0], r, f]) if f else "#"
    response.write('\n ', escape=False)
    upload=URL('download',args=request.args[0])
    response.write('\n ', escape=False)
    response.write(SQLTABLE(rows,linkto,upload,orderby=True,_class='sortable'))
    response.write('\n </div>\n ', escape=False)

Evan Caldwell

unread,
Jun 9, 2015, 6:46:29 PM6/9/15
to web...@googlegroups.com
I'm getting this same error and cannot figure it out. Any help would be much appreciated.

Gmail

unread,
Jun 9, 2015, 11:06:47 PM6/9/15
to web...@googlegroups.com
Trying to go back to that point in time I think it has to do with something in the database that does not agree with how things are that is all that I can recall o wonder if you can go back to previous conversations had 

Sent from my iPhone
--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/YEKheLLD84A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages