Hi there! I'm new to Pylons and Python, though I've used PHP, Rails, PostgreSQL etc a little bit in the past.
I'm currently working through the Definitive Guide to Pylons, and I've run into problems in Chapter 8 (Starting the SimpleSite tutorial, http://pylonsbook.com/en/1.0/starting-the-simplesite-tutorial.html ). When I run paster setup-app development.ini, I get the following error: $ paster setup-app development.ini 08:51:16,056 INFO [simplesite.websetup] Adding homepage... Traceback (most recent call last): File "/home/username/pylonsenv/bin/paster", line 8, in <module> load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')() File "/home/username/pylonsenv/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py", line 84, in run invoke(command, command_name, options, args[1:]) File "/home/username/pylonsenv/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py", line 123, in invoke exit_code = runner.run(args) File "/home/username/pylonsenv/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/appinstall.py", line 68, in run return super(AbstractInstallCommand, self).run(new_args) File "/home/username/pylonsenv/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py", line 218, in run result = self.command() File "/home/username/pylonsenv/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/appinstall.py", line 456, in command self, config_file, section, self.sysconfig_install_vars(installer)) File "/home/username/pylonsenv/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/appinstall.py", line 591, in setup_config mod = import_string.try_import_module(mod_name) File "/home/username/pylonsenv/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/util/import_string.py", line 81, in try_import_module return import_module(module_name) File "/home/username/pylonsenv/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/util/import_string.py", line 67, in import_module mod = __import__(s) File "/home/username/SimpleSite/simplesite/websetup.py", line 26, in <module> meta.Session.commit() File "/home/username/pylonsenv/lib/python2.5/site-packages/SQLAlchemy-0.5.4p2-py2.5.egg/sqlalchemy/orm/scoping.py", line 121, in do return getattr(self.registry(), name)(*args, **kwargs) File "/home/username/pylonsenv/lib/python2.5/site-packages/SQLAlchemy-0.5.4p2-py2.5.egg/sqlalchemy/orm/session.py", line 673, in commit self.transaction.commit() File "/home/username/pylonsenv/lib/python2.5/site-packages/SQLAlchemy-0.5.4p2-py2.5.egg/sqlalchemy/orm/session.py", line 378, in commit self._prepare_impl() File "/home/username/pylonsenv/lib/python2.5/site-packages/SQLAlchemy-0.5.4p2-py2.5.egg/sqlalchemy/orm/session.py", line 362, in _prepare_impl self.session.flush() File "/home/username/pylonsenv/lib/python2.5/site-packages/SQLAlchemy-0.5.4p2-py2.5.egg/sqlalchemy/orm/session.py", line 1354, in flush self._flush(objects) File "/home/username/pylonsenv/lib/python2.5/site-packages/SQLAlchemy-0.5.4p2-py2.5.egg/sqlalchemy/orm/session.py", line 1432, in _flush flush_context.execute() File "/home/username/pylonsenv/lib/python2.5/site-packages/SQLAlchemy-0.5.4p2-py2.5.egg/sqlalchemy/orm/unitofwork.py", line 257, in execute UOWExecutor().execute(self, tasks) File "/home/username/pylonsenv/lib/python2.5/site-packages/SQLAlchemy-0.5.4p2-py2.5.egg/sqlalchemy/orm/unitofwork.py", line 720, in execute self.execute_save_steps(trans, task) File "/home/username/pylonsenv/lib/python2.5/site-packages/SQLAlchemy-0.5.4p2-py2.5.egg/sqlalchemy/orm/unitofwork.py", line 735, in execute_save_steps self.save_objects(trans, task) File "/home/username/pylonsenv/lib/python2.5/site-packages/SQLAlchemy-0.5.4p2-py2.5.egg/sqlalchemy/orm/unitofwork.py", line 726, in save_objects task.mapper._save_obj(task.polymorphic_tosave_objects, trans) File "/home/username/pylonsenv/lib/python2.5/site-packages/SQLAlchemy-0.5.4p2-py2.5.egg/sqlalchemy/orm/mapper.py", line 1230, in _save_obj connection = uowtransaction.transaction.connection(self) File "/home/username/pylonsenv/lib/python2.5/site-packages/SQLAlchemy-0.5.4p2-py2.5.egg/sqlalchemy/orm/session.py", line 260, in connection engine = self.session.get_bind(bindkey, **kwargs) File "/home/username/pylonsenv/lib/python2.5/site-packages/SQLAlchemy-0.5.4p2-py2.5.egg/sqlalchemy/orm/session.py", line 890, in get_bind ', '.join(context))) sqlalchemy.exc.UnboundExecutionError: Could not locate a bind configured on mapper Mapper|Tag|tag or this Session I've tried making various small changes to model.__init__.py and websetup.py, but got the same error each time. I'm not entirely sure how to interpret it. This kind of error seems to be fairly common, but I haven't found identical errors or solutions on Google or anywhere yet. Any help would be much appreciated. Richard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
