histogram_table = sqlalchemy.Table("histogram", \
sqlalchemy.Column("html_name", sqlalchemy.String, \
sqlalchemy.ForeignKey("document.html_name")), \
sqlalchemy.Column("word", sqlalchemy.String), \
sqlalchemy.Column("count", sqlalchemy.Integer) \
)
should have been
histogram_table = sqlalchemy.Table("histogram",engine, \
sqlalchemy.Column("html_name", sqlalchemy.String, \
sqlalchemy.ForeignKey("document.html_name")), \
sqlalchemy.Column("word", sqlalchemy.String), \
sqlalchemy.Column("count", sqlalchemy.Integer) \
)
On 4/1/06, Jonathan Hayward http://JonathansCorner.com <
[EMAIL PROTECTED]> wrote:
When I try to run my program I get:
Traceback (most recent call last):
File "/server1/users/jonathan/creations/inventions/software/insight/alchemy", line 5797, in ?
init()
File "/server1/users/jonathan/creations/inventions/software/insight/alchemy", line 5469, in init
database_init()
File "/server1/users/jonathan/creations/inventions/software/insight/alchemy", line 4978, in database_init
sqlalchemy.Column("count", sqlalchemy.Integer) \
File "build/bdist.linux-i686/egg/sqlalchemy/schema.py", line 74, in __call__
File "build/bdist.linux-i686/egg/sqlalchemy/schema.py", line 52, in __getattr__
AttributeError: tables
Line 4978 in bold is:
histogram_table = sqlalchemy.Table("histogram", \
sqlalchemy.Column("html_name", sqlalchemy.String, \
sqlalchemy.ForeignKey("document.html_name")), \
sqlalchemy.Column("word", sqlalchemy.String), \
sqlalchemy.Column("count", sqlalchemy.Integer) \
)
What's Python complaining about?
--
++ Jonathan Hayward, [EMAIL PROTECTED]
** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com
** If you'd like a Google Mail ( gmail.com) account, please tell me!
--
++ Jonathan Hayward, [EMAIL PROTECTED]
** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com
** If you'd like a Google Mail ( gmail.com) account, please tell me!