Re: problem on setup-app
for the meantime, it seems my workaround is set meta.metadata.create_all(checkfirst=False) in setup_app function of websetup.py. thanks. On Thu, Mar 12, 2009 at 7:24 PM, Edel SM sier...@gmail.com wrote: hi to all, im new to pylons and python in general. i encoutered error while running 'paster setup-app development.ini'. this is working fine before i did easyinstall -U packages (Pylons, pysqlite, sqlalchemy, etc) last night. im using activepython 2.5.2 on hardy x86_64. google is not helping me. thank you. here's the traceback: (apy)$ rm -f development.db; paster setup-app development.ini Running setup_config() from plrepo.websetup 19:15:25,351 INFO [sqlalchemy.engine.base.Engine.0x...7890] PRAGMA table_info(_organizations) 19:15:25,351 INFO [sqlalchemy.engine.base.Engine.0x...7890] () 19:15:25,351 INFO [sqlalchemy.engine.base.Engine.0x...7890] ROLLBACK Traceback (most recent call last): File /opt/apps/ubuntu/x64/hardy/apy/bin/paster, line 8, in module load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')() File /opt/apps/ubuntu/x64/hardy/apy/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 /opt/apps/ubuntu/x64/hardy/apy/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 /opt/apps/ubuntu/x64/hardy/apy/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 /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py, line 218, in run result = self.command() File /opt/apps/ubuntu/x64/hardy/apy/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 /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/appinstall.py, line 598, in setup_config mod.setup_app, command, filename, section, vars) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/appinstall.py, line 612, in _call_setup_app func(command, conf, vars) File /disks/mx80-home/edel.ubuntu/kuti.kuti/icdm/prj/pl-repo/plrepo/websetup.py, line 23, in setup_app meta.metadata.create_all(checkfirst=True) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/schema.py, line 1765, in create_all bind.create(self, checkfirst=checkfirst, tables=tables) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/engine/base.py, line 1129, in create self._run_visitor(self.dialect.schemagenerator, entity, connection=connection, **kwargs) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/engine/base.py, line 1158, in _run_visitor visitorcallable(self.dialect, conn, **kwargs).traverse(element) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/sql/visitors.py, line 89, in traverse return traverse(obj, self.__traverse_options__, self._visitor_dict) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/sql/visitors.py, line 200, in traverse return traverse_using(iterate(obj, opts), obj, visitors) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/sql/visitors.py, line 194, in traverse_using meth(target) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/sql/compiler.py, line 795, in visit_metadata collection = [t for t in sql_util.sort_tables(tables) if self._can_create(t)] File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/sql/compiler.py, line 788, in _can_create return not self.checkfirst or not self.dialect.has_table(self.connection, table.name, schema=table.schema) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/databases/sqlite.py, line 443, in has_table row = cursor.fetchone() File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/engine/base.py, line 1668, in fetchone self.connection._handle_dbapi_exception(e, None, None, self.cursor, self.context) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/engine/base.py, line 931, in _handle_dbapi_exception raise exc.DBAPIError.instance(statement, parameters, e, connection_invalidated=is_disconnect)
problem on setup-app
hi to all, im new to pylons and python in general. i encoutered error while running 'paster setup-app development.ini'. this is working fine before i did easyinstall -U packages (Pylons, pysqlite, sqlalchemy, etc) last night. im using activepython 2.5.2 on hardy x86_64. google is not helping me. thank you. here's the traceback: (apy)$ rm -f development.db; paster setup-app development.ini Running setup_config() from plrepo.websetup 19:15:25,351 INFO [sqlalchemy.engine.base.Engine.0x...7890] PRAGMA table_info(_organizations) 19:15:25,351 INFO [sqlalchemy.engine.base.Engine.0x...7890] () 19:15:25,351 INFO [sqlalchemy.engine.base.Engine.0x...7890] ROLLBACK Traceback (most recent call last): File /opt/apps/ubuntu/x64/hardy/apy/bin/paster, line 8, in module load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')() File /opt/apps/ubuntu/x64/hardy/apy/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 /opt/apps/ubuntu/x64/hardy/apy/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 /opt/apps/ubuntu/x64/hardy/apy/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 /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py, line 218, in run result = self.command() File /opt/apps/ubuntu/x64/hardy/apy/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 /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/appinstall.py, line 598, in setup_config mod.setup_app, command, filename, section, vars) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/appinstall.py, line 612, in _call_setup_app func(command, conf, vars) File /disks/mx80-home/edel.ubuntu/kuti.kuti/icdm/prj/pl-repo/plrepo/websetup.py, line 23, in setup_app meta.metadata.create_all(checkfirst=True) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/schema.py, line 1765, in create_all bind.create(self, checkfirst=checkfirst, tables=tables) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/engine/base.py, line 1129, in create self._run_visitor(self.dialect.schemagenerator, entity, connection=connection, **kwargs) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/engine/base.py, line 1158, in _run_visitor visitorcallable(self.dialect, conn, **kwargs).traverse(element) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/sql/visitors.py, line 89, in traverse return traverse(obj, self.__traverse_options__, self._visitor_dict) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/sql/visitors.py, line 200, in traverse return traverse_using(iterate(obj, opts), obj, visitors) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/sql/visitors.py, line 194, in traverse_using meth(target) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/sql/compiler.py, line 795, in visit_metadata collection = [t for t in sql_util.sort_tables(tables) if self._can_create(t)] File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/sql/compiler.py, line 788, in _can_create return not self.checkfirst or not self.dialect.has_table(self.connection, table.name, schema=table.schema) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/databases/sqlite.py, line 443, in has_table row = cursor.fetchone() File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/engine/base.py, line 1668, in fetchone self.connection._handle_dbapi_exception(e, None, None, self.cursor, self.context) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/engine/base.py, line 931, in _handle_dbapi_exception raise exc.DBAPIError.instance(statement, parameters, e, connection_invalidated=is_disconnect) sqlalchemy.exc.ProgrammingError: (ProgrammingError) Cannot operate on a closed cursor. None None (apy)$ -- edel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to
Re: problem on setup-app
On Fri, Mar 13, 2009 at 2:31 AM, Edel SM sier...@gmail.com wrote: for the meantime, it seems my workaround is set meta.metadata.create_all(checkfirst=False) in setup_app function of websetup.py. I wonder if it would be a good idea to have an installation Troubleshooting section and FAQ somewhere? It might be nice to post common gotchas for people when they first get started somewhere... thanks. On Thu, Mar 12, 2009 at 7:24 PM, Edel SM sier...@gmail.com wrote: hi to all, im new to pylons and python in general. i encoutered error while running 'paster setup-app development.ini'. this is working fine before i did easyinstall -U packages (Pylons, pysqlite, sqlalchemy, etc) last night. im using activepython 2.5.2 on hardy x86_64. google is not helping me. thank you. here's the traceback: (apy)$ rm -f development.db; paster setup-app development.ini Running setup_config() from plrepo.websetup 19:15:25,351 INFO [sqlalchemy.engine.base.Engine.0x...7890] PRAGMA table_info(_organizations) 19:15:25,351 INFO [sqlalchemy.engine.base.Engine.0x...7890] () 19:15:25,351 INFO [sqlalchemy.engine.base.Engine.0x...7890] ROLLBACK Traceback (most recent call last): File /opt/apps/ubuntu/x64/hardy/apy/bin/paster, line 8, in module load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')() File /opt/apps/ubuntu/x64/hardy/apy/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 /opt/apps/ubuntu/x64/hardy/apy/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 /opt/apps/ubuntu/x64/hardy/apy/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 /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/command.py, line 218, in run result = self.command() File /opt/apps/ubuntu/x64/hardy/apy/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 /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/appinstall.py, line 598, in setup_config mod.setup_app, command, filename, section, vars) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/paste/script/appinstall.py, line 612, in _call_setup_app func(command, conf, vars) File /disks/mx80-home/edel.ubuntu/kuti.kuti/icdm/prj/pl-repo/plrepo/websetup.py, line 23, in setup_app meta.metadata.create_all(checkfirst=True) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/schema.py, line 1765, in create_all bind.create(self, checkfirst=checkfirst, tables=tables) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/engine/base.py, line 1129, in create self._run_visitor(self.dialect.schemagenerator, entity, connection=connection, **kwargs) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/engine/base.py, line 1158, in _run_visitor visitorcallable(self.dialect, conn, **kwargs).traverse(element) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/sql/visitors.py, line 89, in traverse return traverse(obj, self.__traverse_options__, self._visitor_dict) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/sql/visitors.py, line 200, in traverse return traverse_using(iterate(obj, opts), obj, visitors) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/sql/visitors.py, line 194, in traverse_using meth(target) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/sql/compiler.py, line 795, in visit_metadata collection = [t for t in sql_util.sort_tables(tables) if self._can_create(t)] File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/sql/compiler.py, line 788, in _can_create return not self.checkfirst or not self.dialect.has_table(self.connection, table.name, schema=table.schema) File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/databases/sqlite.py, line 443, in has_table row = cursor.fetchone() File /opt/apps/ubuntu/x64/hardy/apy/lib/python2.5/site-packages/SQLAlchemy-0.5.2-py2.5.egg/sqlalchemy/engine/base.py, line 1668, in fetchone
Error on upgrading from .9.6 when touching Headers in response
in .9.6 setting headers like this worked: response.headers['Content-Type'] = 'application/ms-excel' in .9.7 , anything i do to them is met with this AttributeError: You cannot access Response.unicode_body unless charset is set looking at the new webob docs, i tried doing response.charset = 'utf8' but that didn't work either. so then i tried setting response.content_type , which worked BUT i also needed to set response.headers['Content-Disposition'] response.content_disposition ended up working, but its not documented in webob and these changes in how headers are affected are wholly undocumented in the migration docs --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Error on upgrading from .9.6 when touching Headers in response
to add: response.content_disposition 'works' in that it doesn't cause an error. but it's not respected. i've yet to test headers for 'cache-control' , 'pragma' , and 'expires'. needless to say, this is a very annoying bug/behavior change. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: repoze.what-pylons working sample project
Hello, I'm sorry about the delay, but I've been very busy this week. I've started a project at http://bitbucket.org/Gustavo/whatpylonsproject/overview/ The only thing it misses is a test suite using repoze.who-testutil. I'm stuck with a weird DB problem; I'll ask for help if I'm not able to fix it. I also wish to add more comments to it. Once it's finished, I'll update the HOWTO and post a message on this ML to let you know. Anyway, what was the exact problem you have? Cheers! On Saturday March 7, 2009 07:11:00 Krishgy wrote: Hi Gustavo Narea All, I couldn't make repoze.what working with my application when I am following http://wiki.pylonshq.com/display/pylonscookbook/Authorization+with+repoze.w hat Can you project a simple pylons project with the example? It is possible? Regards, Gopal -- Gustavo Narea xri://=Gustavo. | Tech blog: =Gustavo/(+blog)/tech ~ About me: =Gustavo/about | --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Google Summer of Code '09
On Feb 23, 2009, at 12:00 AM, billy wrote: Do you guys have any plans in participating this year? I've recently got into python, and am very interested in pylons as a web framework so I thought it wouldn't hurt to see if you guys have any intentions on participating so maybe I can get in on a piece of the action :). Pylons has submitted an application to GSoC '09, so we hope to be involved. I've created a page on the wiki to list out ideas for projects: http://wiki.pylonshq.com/display/pylonscookbook/Google+Summer+of+Code If anyone has ideas, please feel free to contribute to this page. You simply need to signup for a login on the wiki to edit the page. -- Philip Jenvey --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---