Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: DB

ZMySQLDA on solaris10

 

 

Zope db RSS feed   Index | Next | Previous | View Threaded


alessandro.comunian at unine

Feb 22, 2007, 3:30 AM

Post #1 of 4 (1485 views)
Permalink
ZMySQLDA on solaris10

Dear all,
Since some day I am trying to install ZMySQLDA on a sunblade1500 (Solaris10)
workstation, but running my zope instance in debug mode "off" I always get
errors like (from .../log/event.log):

------
2007-02-22T12:11:20 ERROR Zope Couldn't install ZMySQLDA
Traceback (most recent call last):
File "/opt/Plone-2.5.2/lib/python/OFS/Application.py", line 755, in
install_product
global_dict, global_dict, silly)
File "/home/wwhypda/plone/instance_test01/Products/ZMySQLDA/__init__.py",
line 91, in ?
import DA
File "/home/wwhypda/plone/instance_test01/Products/ZMySQLDA/DA.py", line 92,
in ?
from db import DB
File "/home/wwhypda/plone/instance_test01/Products/ZMySQLDA/db.py", line 89,
in ?
import _mysql
ImportError: ld.so.1: python: fatal: relocation error:
file /home/wwhypda/plone/instance_test01/lib/python/_mysql.so: symbol
mysql_errno: referenced symbol not found
------

I have:

- MySQL 5.0.27 from binaries for solaris10
- Plone version installed: 2.5.2
- MySQL-python-1.2.1_p2 installed using the Python version that comes with
Plone (2.4.4)
- ZMySQLDA 2.0.8 (also tried 2.0.9b3)

Have you some suggestion, please?
Thank you in advance!
Bests,

Alessandro



_______________________________________________
Zope-DB mailing list
Zope-DB[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-db


dieter at handshake

Feb 22, 2007, 11:51 AM

Post #2 of 4 (1411 views)
Permalink
Re: ZMySQLDA on solaris10 [In reply to]

Comunian Alessandro wrote at 2007-2-22 12:30 +0100:
> ...
> import _mysql
>ImportError: ld.so.1: python: fatal: relocation error:
>file /home/wwhypda/plone/instance_test01/lib/python/_mysql.so: symbol
>mysql_errno: referenced symbol not found

You MySQL-python does not fit with your MySQL version:

MySQL-python (that is "_mysql.so") expects the MySQL client
library to define a symbol "mysql_errno" and either
the client library is not linked at all to "_mysql" or
it does not define the symbol.

Check whether you can find a more up to date version of "MySQL-python"
(one that promissed to work with your MySQL version).

--
Dieter
_______________________________________________
Zope-DB mailing list
Zope-DB[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-db


alessandro.comunian at unine

Mar 12, 2007, 7:01 AM

Post #3 of 4 (1374 views)
Permalink
Re: ZMySQLDA on solaris10 [In reply to]

Hello,

In order to avoid the problems related to "up to date" software, I tried again
to install ZMySQLda-2.0.8 installing almost "needed" software from sources
(following the suggestion from Dieter) but in my zope instance the events.log
show the following error (analogous to the previous one):

...
------
2007-03-12T14:30:22 ERROR Application Couldn't install ZMySQLDA
Traceback (most recent call last):
File "/home/wwhypda/Zope-Plone/lib/python/OFS/Application.py", line 752, in
install_product
global_dict, global_dict, silly)
File
"/home/wwhypda/Zope-Plone/instance02_test/Products/ZMySQLDA/__init__.py",
line 91, in ?
import DA
File "/home/wwhypda/Zope-Plone/instance02_test/Products/ZMySQLDA/DA.py",
line 92, in ?
from db import DB
File "/home/wwhypda/Zope-Plone/instance02_test/Products/ZMySQLDA/db.py",
line 89, in ?
import _mysql
File "build/bdist.solaris-2.10-sun4u/egg/_mysql.py", line 7, in ?
File "build/bdist.solaris-2.10-sun4u/egg/_mysql.py", line 6, in
__bootstrap__
ImportError: ld.so.1: python: fatal: relocation error:
file /home/wwhypda/.python-eggs/MySQL_python-1.2.2-py2.4-solaris-2.10-sun4u.egg-tmp/_mysql.so:
symbol mysql_set_character_set: referenced symbol not found
------
...

The installed "related" softwares are:
- MySQL 5.0.33
- Python 2.4.4
- Zope 2.10.2
- Plone 2.5.2-1
- MySQL-python-1.2.2

Did somebody have some suggestion about how-to solve my problem?
Thank you in advance,
Bests,

Alessandro





On Thursday 22 February 2007 20:51, Dieter Maurer wrote:
> Comunian Alessandro wrote at 2007-2-22 12:30 +0100:
> > ...
> > import _mysql
> >ImportError: ld.so.1: python: fatal: relocation error:
> >file /home/wwhypda/plone/instance_test01/lib/python/_mysql.so: symbol
> >mysql_errno: referenced symbol not found
>
> You MySQL-python does not fit with your MySQL version:
>
> MySQL-python (that is "_mysql.so") expects the MySQL client
> library to define a symbol "mysql_errno" and either
> the client library is not linked at all to "_mysql" or
> it does not define the symbol.
>
> Check whether you can find a more up to date version of "MySQL-python"
> (one that promissed to work with your MySQL version).
_______________________________________________
Zope-DB mailing list
Zope-DB[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-db


dieter at handshake

Mar 12, 2007, 11:49 AM

Post #4 of 4 (1367 views)
Permalink
Re: ZMySQLDA on solaris10 [In reply to]

Comunian Alessandro wrote at 2007-3-12 15:01 +0100:
> ...
>ImportError: ld.so.1: python: fatal: relocation error:
>file /home/wwhypda/.python-eggs/MySQL_python-1.2.2-py2.4-solaris-2.10-sun4u.egg-tmp/_mysql.so:
>symbol mysql_set_character_set: referenced symbol not found

I expect that your "MySQL-python" does not fit with your "MySQL" version
(because I expect that "mysql_set_character_set" is expected to come
from the MySQL client libraries).



--
Dieter
_______________________________________________
Zope-DB mailing list
Zope-DB[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-db

Zope db RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.