| Код | import time import re import kinterbasdb as dbdriver
IDSN = "localhost:C:\src\alerts.fdb"
iconn = dbdriver.connect(IDSN, "sysdba", "masterkey") icur = iconn.cursor()
|
| Цитата | C:\Program Files\Python25\Lib\site-packages\kinterbasdb\__init__.py:570: DeprecationWarning: The non-keyword-argument form of the connect() function is deprecated. Use connect(dsn=..., user=..., password=...) rather than connect(..., ..., ...) DeprecationWarning Traceback (most recent call last): File "C:\workspace\4_1\tmp\src\tmp.py", line 41, in <module> iconn = dbdriver.connect(IDSN, "sysdba", "masterkey") File "C:\Program Files\Python25\Lib\site-packages\kinterbasdb\__init__.py", line 435, in connect return Connection(*args, **keywords_args) File "C:\Program Files\Python25\Lib\site-packages\kinterbasdb\__init__.py", line 612, in __init__ b.dsn, b.dpb, b.dialect, timeout kinterbasdb.OperationalError: (-902, 'isc_attach_database: \n I/O error for file "C:\\src\x07lerts.fdb"\n Error while trying to open file\n \xd1\xe8\xed\xf2\xe0\xea\xf1\xe8\xf7\xe5\xf1\xea\xe0\xff \xee\xf8\xe8\xe1\xea\xe0 \xe2 \xe8\xec\xe5\xed\xe8 \xf4\xe0\xe9\xeb\xe0, \xe8\xec\xe5\xed\xe8 \xef\xe0\xef\xea\xe8 \xe8\xeb\xe8 \xec\xe5\xf2\xea\xe5 \xf2\xee\xec\xe0.')
|
|