6 Oct 10:23
Firebird linux client => windows SQL server problem
From: Petr Jakeš <petr.jakes <at> tpc.cz>
Subject: Firebird linux client => windows SQL server problem
Newsgroups: gmane.comp.python.sqlobject
Date: 2008-10-06 08:25:01 GMT
Subject: Firebird linux client => windows SQL server problem
Newsgroups: gmane.comp.python.sqlobject
Date: 2008-10-06 08:25:01 GMT
Hi,
I have encountered following problem:
Firebird db is running on the windows server.
the connection string is following:
db_filename = 'd|\\sgdata\\test\\sysdat01.gdb'
connection_string = 'firebird://winsrv.xxx.xx:3050/' + db_filename
connection = connectionForURI(connection_string)
From the windows machine as a client everything works fine.
From the linux machine as a client:
Traceback (most recent call last):
File "romana_Import_01.py", line 65, in <module>
jenKdyzText()
File "romana_Import_01.py", line 49, in jenKdyzText
for radek in Cenktgm01.select():
File "/usr/local/lib/python2.5/site-packages/SQLObject-0.10.1-py2.5.egg/sqlobject/sresults.py", line 179, in __iter__
return iter(list(self.lazyIter()))
File "/usr/local/lib/python2.5/site-packages/SQLObject-0.10.1-py2.5.egg/sqlobject/sresults.py", line 187, in lazyIter
return conn.iterSelect(self)
File "/usr/local/lib/python2.5/site-packages/SQLObject-0.10.1-py2.5.egg/sqlobject/dbconnection.py", line 394, in iterSelect
return select.IterationClass(self, self.getConnection(),
File "/usr/local/lib/python2.5/site-packages/SQLObject-0.10.1-py2.5.egg/sqlobject/dbconnection.py", line 259, in getConnection
conn = self.makeConnection()
File "/usr/local/lib/python2.5/site-packages/SQLObject-0.10.1-py2.5.egg/sqlobject/firebird/firebirdconnection.py", line 84, in makeConnection
**extra
File "/usr/local/lib/python2.5/site-packages/kinterbasdb/__init__.py", line 433, in connect
return Connection(*args, **keywords_args)
File "/usr/local/lib/python2.5/site-packages/kinterbasdb/__init__.py", line 610, in __init__
b.dsn, b.dpb, b.dialect, timeout
kinterbasdb.OperationalError: (-902, 'isc_attach_database: \n I/O error for file "/d|\\sgdata\\test\\sysdat01.gdb"\n Error while trying to open file\n N\xe1zev souboru, adres\xe1\xf8e nebo jmenovka svazku je nespr\xe1vn\xe1.')
[root <at> automat romana]#
It looks like a SQLObject parsing is dooing something wrong and windows server can not recognize the name of the database file.
Regards
Petr
I have encountered following problem:
Firebird db is running on the windows server.
the connection string is following:
db_filename = 'd|\\sgdata\\test\\sysdat01.gdb'
connection_string = 'firebird://winsrv.xxx.xx:3050/' + db_filename
connection = connectionForURI(connection_string)
From the windows machine as a client everything works fine.
From the linux machine as a client:
Traceback (most recent call last):
File "romana_Import_01.py", line 65, in <module>
jenKdyzText()
File "romana_Import_01.py", line 49, in jenKdyzText
for radek in Cenktgm01.select():
File "/usr/local/lib/python2.5/site-packages/SQLObject-0.10.1-py2.5.egg/sqlobject/sresults.py", line 179, in __iter__
return iter(list(self.lazyIter()))
File "/usr/local/lib/python2.5/site-packages/SQLObject-0.10.1-py2.5.egg/sqlobject/sresults.py", line 187, in lazyIter
return conn.iterSelect(self)
File "/usr/local/lib/python2.5/site-packages/SQLObject-0.10.1-py2.5.egg/sqlobject/dbconnection.py", line 394, in iterSelect
return select.IterationClass(self, self.getConnection(),
File "/usr/local/lib/python2.5/site-packages/SQLObject-0.10.1-py2.5.egg/sqlobject/dbconnection.py", line 259, in getConnection
conn = self.makeConnection()
File "/usr/local/lib/python2.5/site-packages/SQLObject-0.10.1-py2.5.egg/sqlobject/firebird/firebirdconnection.py", line 84, in makeConnection
**extra
File "/usr/local/lib/python2.5/site-packages/kinterbasdb/__init__.py", line 433, in connect
return Connection(*args, **keywords_args)
File "/usr/local/lib/python2.5/site-packages/kinterbasdb/__init__.py", line 610, in __init__
b.dsn, b.dpb, b.dialect, timeout
kinterbasdb.OperationalError: (-902, 'isc_attach_database: \n I/O error for file "/d|\\sgdata\\test\\sysdat01.gdb"\n Error while trying to open file\n N\xe1zev souboru, adres\xe1\xf8e nebo jmenovka svazku je nespr\xe1vn\xe1.')
[root <at> automat romana]#
It looks like a SQLObject parsing is dooing something wrong and windows server can not recognize the name of the database file.
Regards
Petr
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ sqlobject-discuss mailing list sqlobject-discuss <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
I am using SQLObject (this time) with turbogears on Ubuntu with mysql
5.0.51a-3ubuntu5.1 for debian-linux-gnu on x86_64
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
RSS Feed