New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running "python setup.py install" returns an error. [PYFB23] #47
Comments
Commented by: @pmakowski you should post this kind of question on the support list mailto:firebird-python@yahoogroups.com I guess that you don't have Firebird client library on your system |
Commented by: Baskin Tapkan (baskint) sent the below email (awaiting moderator's approval). Thanks for the tip. Hello, Hope everyone is doing well. Having this problem of not being able to connect to an existing embedded Firebird database using Python. I work regularly on a Windows 7 x64-bit, Python 2.7 (switched to 2.6 for kinterbasdb w/o success, then switch back). I also have a licensed copy of Firebird Maestro. Tried three different library packages: firebirdsql (relatively new, but does not seem to have support for embedded) (http://pypi.python.org/pypi/firebirdsql) kinterbasdb (last update was in 2010, seemed to install) ( fdb (could not install either on Windows or MacOS).(http://pypi.python.org/pypi/fdb) have the bellow code (basically trying to invoke the sample code on the documentation: # import firebirdsql # the server is named test.fsdb cur = con.cursor() # execute the select statement # retrieve all rows in a sequence and print the sequence TEST.FDB file is in the same directory as I am running the script. With firebirdsql package, I receive below: c:\src\python\pyfirebirdsql>python fsdb_test.py Looks like support for embedded is missing for firebirdsql. With kinterbasdb, I get this: c:\src\python\pyfirebirdsql>python fsdb_test.py This is 32 bit vs 64-bit issue looks like. I made sure I used both 64-bit editions of Python 2.7 and kinterbasdb-3.3.0. Still getting this message. Created an embedded folder as described here in the Python27\Lib\site-packages\kinterbasdb\embedded and copied the three DLLS (unblocked on Windows). Could not even install fdb using below command: c:\src\python\fdb-0.9.1>python http://setup.py build Just to see if embedded works, I switched to .NET (sigh) and able to connect to the same database using the below: class Program
} For .NET, I followed the detailed and easy-to-follow instructions found here. http://nazmialtun.blogspot.com/2012/01/using-embedded-firebird-database-in-net.html Any help, expertise with the above would be appreciated. Thanks! Baskin Tapkan |
Submitted by: Baskin Tapkan (baskint)
Have tried running the "python http://setup.py install" command on two different systems. I am getting the below error on both. Would you please help? Thanks.
c:\src\python\fdb-0.9.1>python http://setup.py install
Traceback (most recent call last):
File "http://setup.py", line 7, in <module>
from fdb import __version__
File "c:\src\python\fdb-0.9.1\fdb\__init__.py", line 23, in <module>
from fdb.fbcore import *
File "c:\src\python\fdb-0.9.1\fdb\http://fbcore.py", line 26, in <module>
from . import ibase
File "c:\src\python\fdb-0.9.1\fdb\http://ibase.py", line 39, in <module>
fb_library = WinDLL(fb_library_name)
File "C:\Python27\lib\ctypes\__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
TypeError: expected string or Unicode object, NoneType found
The text was updated successfully, but these errors were encountered: