TypeError | Python 2.2.3 : C:\WINDOWS\Python22\pythonw.exe Mon Sep 06 02:19:39 2004 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
C:\Work\PythonWeb.org\CVS Branches\PythonWeb.org 0.4\doc\src\lib\command-web-database.py |
55 cursor = conn.cursor() |
56 elif db == 'mysql': |
57 conn = web.database.connect(type='mysql', database='test') |
58 cursor = conn.cursor() |
59 elif db == 'odbc': |
conn undefined, web = <module 'web' from '../../../web\__init__.pyc'>, web.database = <module 'web.database' from '../../../web\database\__init__.pyc'>, web.database.connect = <function connect>, type undefined, database undefined |
? in connect(type='mysql', database='test', dir='', startup='', user='', password='', host='', socket='', port='') |
C:\Work\PythonWeb.org\CVS Branches\PythonWeb.org 0.4\web\database\drivers\mysql.py in __init__(self=<web.database.drivers.mysql.mysqlConnection instance at 0x00ACDE60>, database='test', user='', password='', host='', socket='', port='') |
47 passwd=password, |
48 host=host, |
49 options = ['no-autocommit'], |
50 ) |
51 |
options undefined |
C:\Work\PythonWeb.org\CVS Branches\PythonWeb.org 0.4\web\external\MySQLdb\__init__.py in Connect(*args=(), **kwargs={'db': 'test', 'host': '', 'options': ['no-autocommit'], 'passwd': '', 'user': ''}) |
61 """Factory function for connections.Connection.""" |
62 from connections import Connection |
63 return apply(Connection, args, kwargs) |
64 |
65 connect = Connection = Connect |
apply undefined, Connection = <class 'MySQLdb.connections.Connection'>, args = (), kwargs = {'db': 'test', 'host': '', 'options': ['no-autocommit'], 'passwd': '', 'user': ''} |
C:\Work\PythonWeb.org\CVS Branches\PythonWeb.org 0.4\web\external\MySQLdb\connections.py in __init__(self=<_mysql.connection closed at adc8b0>, *args=(), **kwargs={'db': 'test', 'host': '', 'options': ['no-autocommit'], 'passwd': '', 'user': ''}) |
113 conv[FIELD_TYPE.STRING] = u |
114 conv[FIELD_TYPE.VAR_STRING] = u |
115 self._make_connection(args, kwargs2) |
116 self.converter[types.StringType] = self.string_literal |
117 if hasattr(types, 'UnicodeType'): |
self = <_mysql.connection closed at adc8b0>, self._make_connection = <bound method Connection._make_connection of <_mysql.connection closed at adc8b0>>, args = (), kwargs2 = {'conv': {0: <type 'float'>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter at 0x00AB0C40>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None at 0x00A9A670>, ...}, 'db': 'test', 'host': '', 'options': ['no-autocommit'], 'passwd': '', 'user': ''} |
C:\Work\PythonWeb.org\CVS Branches\PythonWeb.org 0.4\web\external\MySQLdb\connections.py in _make_connection(self=<_mysql.connection closed at adc8b0>, args=(), kwargs={'conv': {0: <type 'float'>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter at 0x00AB0C40>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None at 0x00A9A670>, ...}, 'db': 'test', 'host': '', 'options': ['no-autocommit'], 'passwd': '', 'user': ''}) |
39 |
40 def _make_connection(self, args, kwargs): |
41 apply(super(ConnectionBase, self).__init__, args, kwargs) |
42 |
43 else: |
apply undefined, super undefined, global ConnectionBase = <class 'MySQLdb.connections.ConnectionBase'>, self = <_mysql.connection closed at adc8b0>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at adc8b0>>, args = (), kwargs = {'conv': {0: <type 'float'>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter at 0x00AB0C40>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None at 0x00A9A670>, ...}, 'db': 'test', 'host': '', 'options': ['no-autocommit'], 'passwd': '', 'user': ''} |
TypeError: 'options' is an invalid keyword argument for this function
args =
("'options' is an invalid keyword argument for this function",)