Which version of FormBuild are you using and where did you see that example please? In the latest version there is no helpers module. I'd suggest either installing an older version or updating to version 3 and using the Form class.
pip install --upgrade "FormBuild>=3.0,<=3.0.99" Docs for that version are at http://jimmyg.org/work/code/formbuild/3.0.1/manual.html Incidentally there will be a new, rather different FormBuild in the next few weeks with a stricter model for fields but you are better off with the version mentioned above. HTH, James On Feb 10, 10:35 am, varsh <[email protected]> wrote: > i got error while running my pylons application.it show error in > lib/helpers.py file . > > code of helper.py is as follow > > from formbuild.helpers import field > from formbuild import start_with_layout as form_start, end_with_layout as > form_end > from webhelpers.html.tags import * > from routes import url_for > > error is look like as follow: > > Traceback (most recent call last): > File "/home/varsha_mca3/virtualenv-1.5.1/env/bin/paster", line 8, in > <module> > load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')() > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", > line 84, in run > invoke(command, command_name, options, args[1:]) > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", > line 123, in invoke > exit_code = runner.run(args) > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", > line 218, in run > result = self.command() > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", > line 276, in command > relative_to=base, global_conf=vars) > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", > line 313, in loadapp > **kw) > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", > line 203, in loadapp > return loadobj(APP, uri, name=name, **kw) > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", > line 223, in loadobj > global_conf=global_conf) > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", > line 247, in loadcontext > global_conf=global_conf) > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", > line 270, in _loadconfig > return loader.get_context(object_type, name, global_conf) > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", > line 401, in get_context > section) > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", > line 423, in _context_from_use > object_type, name=use, global_conf=global_conf) > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", > line 353, in get_context > global_conf=global_conf) > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", > line 247, in loadcontext > global_conf=global_conf) > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", > line 277, in _loadegg > return loader.get_context(object_type, name, global_conf) > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", > line 553, in get_context > object_type, name=name) > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/PasteDeploy-1.3.4-py2.6.egg/paste/deploy/loadwsgi.py", > line 579, in find_egg_entry_point > possible.append((entry.load(), protocol, entry.name)) > File > "/home/varsha_mca3/virtualenv-1.5.1/env/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/pkg_resources.py", > line 1954, in load > File > "/home/varsha_mca3/virtualenv-1.5.1/env/pylonsforum/pylonsforum/config/middleware.py", > line 12, in <module> > from pylonsforum.config.environment import load_environment > File > "/home/varsha_mca3/virtualenv-1.5.1/env/pylonsforum/pylonsforum/config/environment.py", > line 10, in <module> > import pylonsforum.lib.helpers > File > "/home/varsha_mca3/virtualenv-1.5.1/env/pylonsforum/pylonsforum/lib/helpers.py", > line 6, in <module> > from formbuild.helpers import field > ImportError: No module named helpers > -- > View this message in > context:http://pylons-discuss.1595796.n2.nabble.com/problem-in-pylons-web-app... > Sent from the pylons-discuss mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
