Re: [Zope] Kinterbasdb + Firebird + Zope Q's
Ahoj Stanislav, Thank you VERY much for the reply. I have copies of ZFirebirdDA and Kinterbasdb. What I can not figure out is how to make python extensions accesable to Zope. For instance when I add the ZFirebirdDA Zope Product I get this import traceback: Traceback (most recent call last): File "C:\PROGRA~1\TelOnyx\lib\python\OFS\Application.py", line 531, in import_product product=__import__(pname, global_dict, global_dict, silly) File "C:\PROGRA~1\TelOnyx\lib\python\Products\ZFireBirdDA\__init__.py", line 91, in ? import DA File "C:\PROGRA~1\TelOnyx\lib\python\Products\ZFireBirdDA\DA.py", line 91, in ? from db import DB File "C:\PROGRA~1\TelOnyx\lib\python\Products\ZFireBirdDA\db.py", line 25, in ? import kinterbasdb, DateTime ImportError: No module named kinterbasdb The KinterbasDB extensions are available as a pyhton distutil but the distutil will not detect my zope server. It will only find my ActivePython interpreter. So I tried compiling the source using the free Borland Compiler but the setup.py file fails. I have never had to use a python extension (I stared programming with python 4 months ago). What are the proper steps for using KinterbasDB (or any python extension) with Zope. �akujem v�m, Derek Basch Portland Oregon USA --- Stanislav Marszalek <smarszalek@digi-trade.cz> wrote:
I use ZOPE with Firebird on Win2000 Prof. with no problem. I can send you ZFirebirdDA with Win32 binary, you just put it into ZOPE's Products directory....
David Marko
__________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
Derek Basch wrote:
The KinterbasDB extensions are available as a pyhton distutil but the distutil will not detect my zope server. It will only find my ActivePython interpreter. So I tried compiling the source using the free Borland Compiler but the setup.py file fails. I have never had to use a python extension (I stared programming with python 4 months ago). What are the proper steps for using KinterbasDB (or any python extension) with Zope.
I suggest going ahead and installing kinterbasdb in your ActivePython, then go look at its site-packages subdirectory (in Lib?). In all likelihood, you'll find a single "_kinterbasdb.dll" or similar file there, or perhaps a subdirectory. Copy this to your Zope's Python's site-packages. Cheers, Evan @ 4-am
[Evan Simpson]
Derek Basch wrote:
The KinterbasDB extensions are available as a pyhton distutil but the distutil will not detect my zope server. It will only find my ActivePython interpreter. So I tried compiling the source using the free Borland Compiler but the setup.py file fails. I have never had to use a python extension (I stared programming with python 4 months ago). What are the proper steps for using KinterbasDB (or any python extension) with Zope.
I suggest going ahead and installing kinterbasdb in your ActivePython, then go look at its site-packages subdirectory (in Lib?). In all likelihood, you'll find a single "_kinterbasdb.dll" or similar file there, or perhaps a subdirectory. Copy this to your Zope's Python's site-packages.
That's what I usually do in cases like this. If it doesn't work for some reason, try running distutil with Zope's Python interpreter and see if it can find Zope's installation. If that fails, you could find ActivePython in the registry and temporarily change it to point to teh Zope interpreter, run distutils, then change it back. But most likely, Evan's suggestion will work. Cheers, Tom P
Evan, Thanks, but I am still a bit confused. You say I should copy the .dll files from ActivePythons site-packages folder to Zopes site-packages folder. I cant seem to find a Zope site-packages folder or any refernce to one??? Thanks, Derek Basch --- Evan Simpson <evan@4-am.com> wrote:
Derek Basch wrote:
The KinterbasDB extensions are available as a pyhton distutil but the distutil will not detect my zope server. It will only find my ActivePython interpreter. So I tried compiling the source using the free Borland Compiler but the setup.py file fails. I have never had to use a python extension (I stared programming with python 4 months ago). What are the proper steps for using KinterbasDB (or any python extension) with Zope.
I suggest going ahead and installing kinterbasdb in your ActivePython, then go look at its site-packages subdirectory (in Lib?). In all likelihood, you'll find a single "_kinterbasdb.dll" or similar file there, or perhaps a subdirectory. Copy this to your Zope's Python's site-packages.
Cheers,
Evan @ 4-am
__________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
participants (3)
-
Derek Basch -
Evan Simpson -
Thomas B. Passin