Subject | pyfirebirdsql: error with trusted authentication |
---|---|
Author | skoczian |
Post date | 2011-08-08T14:47:07Z |
Hello all,
I'm using Firebird 2.5 on Windows 7 with trusted authentication, and I just started to try out pyfirebirdsql on Python 3. Result:
PythonWin 3.2.1 (default, Jul 10 2011, 20:02:51) [MSC v.1500 64 bit (AMD64)] on win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information.
File "<interactive input>", line 1, in <module>
TypeError: 'module' object is not callable
File "<interactive input>", line 1, in <module>
File "C:\Python32\lib\site-packages\firebirdsql\fbcore.py", line 1144, in __init__
self._op_attach()
File "C:\Python32\lib\site-packages\firebirdsql\fbcore.py", line 769, in _op_attach
s = self.str_to_bytes(self.user)
File "C:\Python32\lib\site-packages\firebirdsql\fbcore.py", line 645, in str_to_bytes
return s.encode(self.charset_map.get(self.charset, self.charset))
AttributeError: 'NoneType' object has no attribute 'encode'
Greetings,
Sibylle
I'm using Firebird 2.5 on Windows 7 with trusted authentication, and I just started to try out pyfirebirdsql on Python 3. Result:
PythonWin 3.2.1 (default, Jul 10 2011, 20:02:51) [MSC v.1500 64 bit (AMD64)] on win32.
Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information.
>>> import firebirdsqlTraceback (most recent call last):
>>> conn = firebirdsql(dsn='localhost:versand')
File "<interactive input>", line 1, in <module>
TypeError: 'module' object is not callable
>>> conn = firebirdsql.connect(dsn='localhost:versand')Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "C:\Python32\lib\site-packages\firebirdsql\fbcore.py", line 1144, in __init__
self._op_attach()
File "C:\Python32\lib\site-packages\firebirdsql\fbcore.py", line 769, in _op_attach
s = self.str_to_bytes(self.user)
File "C:\Python32\lib\site-packages\firebirdsql\fbcore.py", line 645, in str_to_bytes
return s.encode(self.charset_map.get(self.charset, self.charset))
AttributeError: 'NoneType' object has no attribute 'encode'
>>>With trusted authentication I should be able to connect without an user name, shouldn't I?
Greetings,
Sibylle