ZOracleDA with Zope 2.4 and Python 2.1
In Win32 plataform, I am updating to Zope 2.4 version and Python 2.1 version, but the ZOracleDA product does not correctly with these versions. I think that this product only runs correctly with the zope 2.1.6 and python 1.5. I have seen that in the ZOdbcDA product the "sql.pyd" library has been changed for use it with zope 2.4 and python 2.1. Anybody knows to how do to run the ZOracleDA product in the Zope 2.4 version and Python 2.1 version in Win32 plataform? I think that the problem is in the library "buffer" and "oci_". I have these libraries for zope 2.1.6 and python 1.5, but I have not theses libraries for the new versions. Also, I have been trying to compile the ZOracleDA's sources with gcc-2.95.2/mingw32 (for win32) as it says in "http://starship.python.net/crew/kernr/mingw32/Notes.html", but I only obtain errors. Anybody can help me? Thank you very much.
I suggest switching to DCOracle2 at http://www.zope.org/Members/matt/dco2 since it includes prebuilt versions for Python 2.1 on Windows (against Oracle 8i client libraries). If you unzip it in {ZOPE_HOME}/lib/python/Products, you can rename the target directory from DCO2 to ZOracleDA, run the install.py file inside to extract the proper binary, and you can be back. Juan Javier Carrera Obrero wrote:
In Win32 plataform, I am updating to Zope 2.4 version and Python 2.1 version, but the ZOracleDA product does not correctly with these versions. I think that this product only runs correctly with the zope 2.1.6 and python 1.5. I have seen that in the ZOdbcDA product the "sql.pyd" library has been changed for use it with zope 2.4 and python 2.1.
Anybody knows to how do to run the ZOracleDA product in the Zope 2.4 version and Python 2.1 version in Win32 plataform?
I think that the problem is in the library "buffer" and "oci_". I have these libraries for zope 2.1.6 and python 1.5, but I have not theses libraries for the new versions. Also, I have been trying to compile the ZOracleDA's sources with gcc-2.95.2/mingw32 (for win32) as it says in "http://starship.python.net/crew/kernr/mingw32/Notes.html", but I only obtain errors.
Anybody can help me?
Thank you very much.
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
I have installed the DCOracle2-Beta5 product in my Zope 2.4 with Python 2.1 for Win32 plataform. However, when I run the install.py file with Python 2.1 version (and the win32 extensions installed), it shows the next error: "ERROR: DCOracle2 failed to load The most likely reason DCOracle2 failed to load is a platform binary mismatch between your version of Oracle and the version of Oracle the pre-built binary was compiled against, Oracle 8i. You can either rebuild DCOracle2 from source, or install Oracle 8i client libraries on your computer. You may be able to obtain Oracle client libraries at http://technet.oracle.com The python error message is: exceptions.ImportError: DLL load failed: Uno de los dispositivos vinculados al sistema no funciona." However, I am using the Oracle8i Enterprise Edition Release 8.1.5.0.0. Also, I have tried compile the source files, but it generates a error because it does not found the "oci.h" file. This file is not in the packaged DCO2-beta5.zip file. Could you help me about this problem? Thank you very much.
----- Original Message ----- From: "Juan Javier Carrera Obrero" <jcarrera@uco.es>
I have installed the DCOracle2-Beta5 product in my Zope 2.4 with Python 2.1 for Win32 plataform. However, when I run the install.py file with Python 2.1 version (and the win32 extensions installed), it shows the next error:
"ERROR: DCOracle2 failed to load
The most likely reason DCOracle2 failed to load is a platform binary mismatch between your version of Oracle and the version of Oracle the pre-built binary was compiled against, Oracle 8i. You can either rebuild DCOracle2 from source, or install Oracle 8i client libraries on your computer. You may be able to obtain Oracle client libraries at http://technet.oracle.com
The python error message is: exceptions.ImportError: DLL load failed: Uno de los dispositivos vinculados al sistema no funciona."
However, I am using the Oracle8i Enterprise Edition Release 8.1.5.0.0.
Juan, This more and more seems like an Oracle Client issue: - Do you have several Oracle Products Installed? - In which order were they installed? - Do you have several Oracle Homes? - What is the order of the Oracle Homes? - Which Oracle Home is detected First?
Also, I have tried compile the source files, but it generates a error because it does not found the "oci.h" file. This file is not in the packaged DCO2-beta5.zip file.
This file is included when you Install the Oracle Development packages (i.e. OCI development, etc...) there is an option in the Oracle Client CD to install this. Note(s) to Matt: ================ 1) What version of the Oracle Client are you using to build DCO2? 2) I have Zope 2.4.0 and separately I have ActiveState python 2.1.1. The install.py file looks at the Active State python rather that the on supplied for Zope, and thus fails for my python, even though the modules should be binary compatible for both 2.1 and 2.1.1. I also suggest changing the check to include "2.1.1" for now. 3) I also suggest clarifying the installation document to add a manual installation section and here say something like "if you want to make a manual installation, copy the appropiate module for your platform from the 'binaries' subdirectory to the 'DCOracle2' subdirectory (i.e. side by side with the 'DCOracle2.py' file) and rename it to 'dco2.pyd'" 4) What are you using on windows to compile the module? from the projects files I guess "Visual C-something" from Microsoft. Can I use other compilers (cygwin, the free borland stuff, etc)? if visual-c something, what version? Sincerely, /dario - -------------------------------------------------------------------- Dario Lopez-Kästen Systems Developer Chalmers Univ. of Technology dario@ita.chalmers.se ICQ will yield no hits IT Systems & Services
Dario Lopez-Kästen wrote:
Note(s) to Matt: ================ 1) What version of the Oracle Client are you using to build DCO2?
For NT, I'm fairly sure its 8.1.7 (I run NT out of VMWare so its not convenient to fire it up and check) The Solaris link is against 8.1.6 I think, and the Linux link is against either 8.1.5 or 8.1.7.
2) I have Zope 2.4.0 and separately I have ActiveState python 2.1.1. The install.py file looks at the Active State python rather that the on supplied for Zope, and thus fails for my python, even though the modules should be binary compatible for both 2.1 and 2.1.1. I also suggest changing the check to include "2.1.1" for now.
Noted. Anything I can do to try to prevent a profusion of permutations though, I'll do.
3) I also suggest clarifying the installation document to add a manual installation section and here say something like "if you want to make a manual installation, copy the appropiate module for your platform from the 'binaries' subdirectory to the 'DCOracle2' subdirectory (i.e. side by side with the 'DCOracle2.py' file) and rename it to 'dco2.pyd'"
Yeah, the install.py file was a last-minute thing with Beta 5, where I simply got appalled at making 6 different binary release
4) What are you using on windows to compile the module? from the projects files I guess "Visual C-something" from Microsoft. Can I use other compilers (cygwin, the free borland stuff, etc)? if visual-c something, what version?
I'm using VC++ 6.0, but the code should be compilable with any compiler -- there's a few #ifdef win32 or similar bits but they work around things in libc that win32 doesn't have compatibility wrappers for. I know my gettimeofday() replacement is lame -- I had a better replacement for win32 which had microsecond (rather than second) granuarity but since it's only used for the trace table I dont get worried about losing where I put it.
participants (3)
-
Dario Lopez-Kästen -
Juan Javier Carrera Obrero -
Matthew T. Kromer