Cliff Quinn | 22 May 06:35
Favicon

Still can't install mxODBCZopeDA on plone 3.1.1 buildout

I’ve been trying for two weeks and have put a lot of time into trying to get mxodbc running on the above buildout on a Ubuntu 6.06 server on an i686 machine. I’m really frustrated, but must be very close.

 

I have, according to previous instructions found here, done these things in buildout.cfg:

 

In buildout section:

 

[buildout]

parts =

       mxodbc

 

##added src/collective.recipe.mxodbc after downloading from http://svn.plone.org/svn /collective.recipe.mxodbc/ into the src directory

develop =

        src/collective.recipe.mxodbc

 

##added collective.recipe.mxodbc for the mxodbc egg

eggs =

        collective.recipe.mxodbc

##And had to add mxodbc-licenses.zip to the build dir

 

 

##added for mxodbc to:

[instance]

extra-paths =

    ${mxodbc:location}

 

##added this part as per http://www.egenix.com/mailman-archives/egenix-users/2008-May/114382.html

##with real key number

[mxodbc]

recipe = collective.recipe.mxodbc

license-key = 0000-0000-0000-0000-0000-0000

 

##added for mxodbc

[zopepy]

extra-paths =

    ${mxodbc:location}

 

I’ve downloaded the mxODBCZopeDA package from your site, and put it in the buildout/products directory.

 

This seems to all compile ok when I run bin/buildout, but when I run the site I get the following error message:

  File "Products/mxODBCZopeDA/ZopeDA.py", line 246, in find_subpackages

ImportError: no usable mxODBC subpackage found: iODBC: libiodbc.so.2: cannot open shared object file: No such file or directory; unixODBC: initialization of module mxODBC failed (mx.ODBC.unixODBC.LicenseError:mx.ODBC.license is not a license for product version 3.0.1)

 

There is a license.py and.txt in the parts/mxodbc/mx/ODBC apparently placed there by the buildout

 

Can you please help me figure this out – I’ve spent waay too much time on this.

 

Cliff

____________________________________________________

Cliff Quinn, IT Manager

IslandWood

4450 Blakely Avenue NE

Bainbridge Island WA 98110

206.855.4300

www.IslandWood.org

 

The mission of IslandWood is to provide exceptional learning experiences and to inspire lifelong environmental and community stewardship.

 


_______________________________________________________________________
eGenix.com User Mailing List                     http://www.egenix.com/
https://www.egenix.com/mailman/listinfo/egenix-users
Martijn Pieters | 22 May 11:17
Favicon

Re: Still can't install mxODBCZopeDA on plone 3.1.1 buildout

On Thu, May 22, 2008 at 6:35 AM, Cliff Quinn <cliffq <at> islandwood.org> wrote:
> I've downloaded the mxODBCZopeDA package from your site, and put it in the
> buildout/products directory.

Alternatively you could use the plone.recipe.distros for this (usually
the section is already there, look for [productdistros], add the
download url to the urls option). This has nothing to do with your
problem, however.

> This seems to all compile ok when I run bin/buildout, but when I run the
> site I get the following error message:
>
> …
>
>   File "Products/mxODBCZopeDA/ZopeDA.py", line 246, in find_subpackages
>
> ImportError: no usable mxODBC subpackage found: iODBC: libiodbc.so.2: cannot
> open shared object file: No such file or directory; unixODBC: initialization
> of module mxODBC failed (mx.ODBC.unixODBC.LicenseError:mx.ODBC.license is
> not a license for product version 3.0.1)
>
> There is a license.py and.txt in the parts/mxodbc/mx/ODBC apparently placed
> there by the buildout

Indeed, the recipe places them there from the zip file, but it doesn't
do any sanity checking on them. The license header should read
something like:

    --------------------------------------------------------------------
    PRODUCT:  mxODBC - Python ODBC Interface
    --------------------------------------------------------------------
    VERSION:  3.0
    --------------------------------------------------------------------
    LICENSE:  1 CPU License
              for one (1) CPU

That's from the docstring in license.py. Other than that, I have no
idea how to troubleshoot this.

--

-- 
Martijn Pieters

_______________________________________________________________________
eGenix.com User Mailing List                     http://www.egenix.com/
https://www.egenix.com/mailman/listinfo/egenix-users
M.-A. Lemburg | 22 May 12:13
Favicon

Re: Still can't install mxODBCZopeDA on plone 3.1.1 buildout

On 2008-05-22 06:35, Cliff Quinn wrote:
> I've been trying for two weeks and have put a lot of time into trying to
> get mxodbc running on the above buildout on a Ubuntu 6.06 server on an
> i686 machine. I'm really frustrated, but must be very close.

Have you tried installing the mxODBC Zope DA as per the standard
instructions in the manual using the simple unzip product installation
procedure ? Or is there a reason you have to use buildout for this ?

 > ...
 >
> This seems to all compile ok when I run bin/buildout, but when I run the
> site I get the following error message:
> 
> ...
> 
>   File "Products/mxODBCZopeDA/ZopeDA.py", line 246, in find_subpackages
> 
> ImportError: no usable mxODBC subpackage found: iODBC: libiodbc.so.2:
> cannot open shared object file: No such file or directory; unixODBC:
> initialization of module mxODBC failed
> (mx.ODBC.unixODBC.LicenseError:mx.ODBC.license is not a license for
> product version 3.0.1)

The above basically says that:

  * you don't have iODBC installed (which is fine - you only need one
    ODBC manager installed)

  * you do have unixODBC installed, but the mxODBC Zope DA picks up
    the wrong mx/ package directory

Note that mxODBC Zope DA ships with mxODBC 2.1. You get the above
license message in case you have installed the stand-alone egenix-mxodbc
distribution as well - which you shouldn't, since the Zope DA already
comes with everything you need to run the DA (ie. egenix-mx-base and
egenix-mxodbc).

> There is a license.py and.txt in the parts/mxodbc/mx/ODBC apparently
> placed there by the buildout
> 
>  
> 
> Can you please help me figure this out - I've spent waay too much time
> on this.

I'm really sorry that you're having so much trouble in getting
zc.buildout to work.

I've had another look at Martijn's buildbot recipe:

http://svn.plone.org/svn/collective/buildout/collective.recipe.mxodbc/trunk/collective/recipe/mxodbc/__init__.py

It turns out that the recipe addresses a different use case:

The recipe installs the *stand-alone* mxODBC version (and corresponding
license). This can be used in Zope and Plone just fine, but doesn't
include the mxODBC Zope DA that you are trying to install.

The Zope DA product is packaged in egenix-mxodbc-zopeda and comes
with everything you need to run the Zope DA.

Please do try the standard installation procedure first. It is
really easy to get a Zope 2 product installed using that approach.

If you do need to use buildout, you should be able to add the mxODBC
Zope DA product using the approach described here for Zope 2 products:

http://plone.org/documentation/tutorial/buildout/installing-a-third-party-product

There's only one catch to this: because our products still support
Zope versions prior to Zope 2.7 (which changed the layout of
Zope products), there is a directory move step in the installation
which buildout will probably have trouble with.

You may need to recreate an archive from the ones you download
from our site, that includes the moved product directory to make
it work with plone.recipe.distros recipe.

It should also be possible to write Plone recipe specifically for
the mxODBC Zope DA, using Martijn's recipe as basis.

For the next release of the Zope DA, we'll change the layout to make
it a drop-in installation again and also look into providing eggs.
Hopefully, that makes using it with buildout easier.

I'm sorry, but we cannot change the layout of the Zope DA 1.0
release since we have existing customers who rely on it.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, May 22 2008)
 >>> 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,MacOSX for free ! ::::

    eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
     D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
            Registered at Amtsgericht Duesseldorf: HRB 46611

_______________________________________________________________________
eGenix.com User Mailing List                     http://www.egenix.com/
https://www.egenix.com/mailman/listinfo/egenix-users


Gmane