[Zope] Loading ZMySQLda on Solaris 7

Andy Dustman andy@dustman.net
Wed, 31 Jan 2001 16:43:36 -0500 (EST)


On Tue, 30 Jan 2001, Lee Marzke wrote:

> 
> Hi,
> 
> After having no problems at all with Zope 2.3, and Mysql on Linux RedHad6.1
> I tried getting this to work on a Solaris 7 SPARC machine with no luck.
> 
> Im using:
> 
> Solaris 7 (SunOS 5.7 )
> GCC 2.95.1
> Zope 2.3.0 
> ZMySQLDA 1.2 
> MySQL 3.22.32  compiled from source
> Python 1.5.2, Python 1.6, Python2.0  all compiled with thread support.
> 
> When I try to load a ZMySQL object in Zope I keep getting the following
> error:  Any ideas?

Was MySQLdb/_mysql compiled against the version of Python that you are
using with Zope? In general, modules compiled against Python 1.5.2 won't
load with Python 2.0, and vice versa. Interestingly, you seem to have
installed _mysql in multiple places.
 
> Thanks,
> 
> 
> ImportError: ld.so.1: python: fatal: relocation error: file
> /sw/scm/usr/lib/python1.5/site-packages/_mysql.so: symbol PyTuple_New:
> referenced symbol not found
> 
> 
> Traceback (innermost last):
>   File
> "/sw/scm/usr/Zope-2.3.0-solaris-2.6-sparc/lib/python/OFS/Application.py", line
> 530, in import_products
>     product=__import__(pname, global_dict, global_dict, silly)
>   File
> "/sw/scm/usr/Zope-2.3.0-solaris-2.6-sparc/lib/python/Products/ZMySQLDA/__init__.
> py", line 106, in ?
>     import sys, os, Globals, DA
>   File
> "/sw/scm/usr/Zope-2.3.0-solaris-2.6-sparc/lib/python/Products/ZMySQLDA/DA.py",
> line 108, in ?
>     from db import DB
>   File "/usr/share/zope/lib/python/Products/ZMySQLDA/db.py", line 106, in ?
> ImportError: ld.so.1: /sw/scm/usr/Zope-2.3.0-solaris-2.6-sparc/bin/python:
> fatal: relocation error: file
> /sw/scm/usr/Zope-2.3.0-solaris-2.6-sparc/lib/python/Products/ZMySQLDA/_mysqlmodu
> le.so: symbol PyObject_Init: referenced symbol not found
> 
> 
> 
> ee Marzke <lmarzke@kns.com>             30-Jan-01, 15:10:04
> Kulicke & Soffa Industries
> 2101 Blair Mill Rd                       +1 215 784-6217
> Willow Grove, PA 19090                   +1 215 784-6014 fax
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 

-- 
Andy Dustman         PGP: 0xC72F3F1D
    @       .net     http://dustman.net/andy
"Normally with carbonara you use eggs, but I used lobster brains instead."
    -- Masahiko Kobe (Iron Chef Italian): 30-year-old Giant Lobster Battle