Hi Pavel,
Thanks enormously it is now installed. I don't know how on earth I missed that!
Must be age or something. Anyway thanks again for your prompt reply.
I do have one further question, if you don't mind.
I have to interface to a Firebird database in which user-defined exceptions are
used to return business rule errors back to the client.
I started out using pyfirebirdsql and everything seemed to be ok until I
deliberately tried to insert a row to a table which would fail the business
rules. pyfirebirdsql carried on seemingly oblivious to the failure and I
couldn't find any reference to trapping the error (no exceptions were
generated, for example). Indeed, I can't find any reference to isc_status which
I believe is how they are reported back to the client (might be wrong about
that though). So I looked at alternatives and found fdb. I note that there are
several references to isc_status in fdb so I need to know if fdb can report
back these exceptions (which are firebird exceptions and probably NOT python
exceptions) and if so how do you use them in a Python program (remember, I am a
newbie at this python stuff). If not is there any plan to include them and
when. This is a deal breaker for me. I can hold off a decision to change for a
while. I want to use python but will have to go back to C++ if not which I
would rather not do.
Sorry for the length of the question.
Regards
Chris
--- In firebird-python@yahoogroups.com, Pavel Cisar <pcisar@...> wrote:
>
> Chris,
>
> It seems you don't have Firebird client library installed, do you? If
> it's installed, then the problem is that FDB can't find it. If you're on
> Windows, try reinstall Firebird and check the option to copy client
> library to Windows/System directory (recommended on Vista/7), or copy it
> there yourself (XP).
>
> best regards
> Pavel Cisar
> IBPhoenix
>
> Dne 23.5.2012 18:53, chrisbaldwin5339 napsal(a):
> >
> > Unfortunately I am very new at Python programming.
> >
> > I have been trying to install fdb 0.7.2 and keep getting the same error.
> >
> > I have used the usual 'python setup.py install' and it keeps returning the
> > following message regardless of which version I try.
> >
> > File "c:\python27\lib\ctypes\__init__.py", line 353, in __init__
> > self._handle = _dlopen(self._name, mode)
> > TypeError: expected string or Unicode object, NonType found
> >
> > Basically, I have been tearing what little hair I have left after 30 years
> > in this business out!
> >
> > Does anyone know where I am going wrong?
> >
> > Regards
> > Chris
>