[egenix-users] Installing mxODBC outside Zope instance

M.-A. Lemburg mal at egenix.com
Mon Oct 11 17:33:00 CEST 2004


Igor Elbert wrote:
> Hello,
> 
> Our Zope installation procedure requires that we install Zope into a
> standard location and than install ours and third-party products and libs
> into another directory. We have no problems doing that with Oracle and other
> ODBC adapters but with mxODBC we are getting the following error:

This is a known problem in mxODBC Zope DA 1.0.8 which will be
fixed in the next patch level release. Until then, the work-around
you used will work just fine.

The problem is that the paths for the PDF documentation are hard-coded
into the Zope DA product. As a result, installing the Zope DA to
an instance directory causes the traceback you are seeing.

> 2004-10-08T15:30:42 PANIC(300) z2 Startup exception
> Traceback (innermost last):
>   File z2.py, line 2, in ?
>   File C:\Program Files\Zope/lib/python\Zope\__init__.py, line 38, in
> startup
>     (Object: startup)
>   File C:\Program Files\Zope/lib/python\Zope\App\startup.py, line 38, in
> startup
>   File C:\Program Files\Zope/lib/python\OFS\Application.py, line 485, in
> import_products
>   File C:\Program Files\Zope/lib/python\OFS\Application.py, line 502, in
> import_product
>   File Products\mxODBCZopeDA\__init__.py, line 6, in ?
>   File Products\mxODBCZopeDA\ZopeDA.py, line 9, in ?
>     (Object: DatabaseConnectionPool)
>   File C:\Program Files\Zope/lib/python\App\ImageFile.py, line 30, in
> __init__
> IOError: [Errno 2] No such file or directory: 'C:\\Program
> Files\\Zope\\lib\\python\\Products/mxODBCZopeDA/mxODBC.pdf'
> 
> If I create directory Products/mxODBCZopeDA inside the standard Zope
> installation and put the pdf files there mxODBC works just fine except for
> the warning:
> """
> After loading Product 'mxODBCZopeDA' from 'C:\\tracker\\Zope\\Products',
> I skipped the one in 'C:\\Program Files\\Zope/lib/python\\Products'.
> """
> 
> Windows XP Pro, Zope 2.6.2 (binary release, python 2.1, win32-x86), python
> 2.1.3, win32
> 
> Please advise.
> 
> Thanks,
> Igor
> 
> This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
> 
> 
> _______________________________________________________________________
> eGenix.com User Mailing List                     http://www.egenix.com/
> http://lists.egenix.com/mailman/listinfo/egenix-users

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Oct 11 2004)
 >>> Python/Zope Consulting and Support ...        http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::



More information about the egenix-users mailing list