QuickWiki tutorial - cannot import name create_engine

1,004 views
Skip to first unread message

cnu

unread,
Jun 16, 2007, 5:20:36 PM6/16/07
to pylons-discuss
Hi,
I am new to pylons and was trying out the quickwiki tutorial in the
docs(http://pylonshq.com/docs/0.9.5/quick_wiki.html).
After I edit the websetup.py file and when I try to execute $ paster
setup-app development.ini it shows up the following error.


$ paster setup-app development.ini
Traceback (most recent call last):
File "/usr/bin/paster", line 8, in <module>
load_entry_point('PasteScript==1.3.4', 'console_scripts', 'paster')
()
File "/usr/lib/python2.5/site-packages/PasteScript-1.3.4-py2.5.egg/
paste/script/command.py", line 76, in run
invoke(command, command_name, options, args[1:])
File "/usr/lib/python2.5/site-packages/PasteScript-1.3.4-py2.5.egg/
paste/script/command.py", line 115, in invoke
exit_code = runner.run(args)
File "/usr/lib/python2.5/site-packages/PasteScript-1.3.4-py2.5.egg/
paste/script/appinstall.py", line 65, in run
return super(AbstractInstallCommand, self).run(new_args)
File "/usr/lib/python2.5/site-packages/PasteScript-1.3.4-py2.5.egg/
paste/script/command.py", line 210, in run
result = self.command()
File "/usr/lib/python2.5/site-packages/PasteScript-1.3.4-py2.5.egg/
paste/script/appinstall.py", line 452, in command
self, config_file, section,
self.sysconfig_install_vars(installer))
File "/usr/lib/python2.5/site-packages/PasteScript-1.3.4-py2.5.egg/
paste/script/appinstall.py", line 579, in setup_config
mod = import_string.try_import_module(mod_name)
File "/usr/lib/python2.5/site-packages/Paste-1.3-py2.5.egg/paste/
util/import_string.py", line 81, in try_import_module
return import_module(module_name)
File "/usr/lib/python2.5/site-packages/Paste-1.3-py2.5.egg/paste/
util/import_string.py", line 67, in import_module
mod = __import__(s)
File "/home/cnu/projects/python/pylons/QuickWiki/quickwiki/
websetup.py", line 2, in <module>
from pylons.database import create_engine
ImportError: cannot import name create_engine

Even when I try to "from pylons.database import create_engine" in the
python shell, it show up the ImportError.
Am I missing something?

cnu

unread,
Jun 17, 2007, 1:16:33 AM6/17/07
to pylons-discuss
On Jun 17, 2:20 am, cnu <srinivas...@gmail.com> wrote:
> Hi,
> from pylons.database importcreate_engine
> ImportError: cannot import namecreate_engine
>
> Even when I try to "from pylons.database importcreate_engine" in the

> python shell, it show up the ImportError.
> Am I missing something?

My mistake. I didnt install sqlalchemy.
Works now.

Reply all
Reply to author
Forward
0 new messages