Yellow ppl,

Estou com problemas na compilacao do MySQL-python-1.2.2 no Mac OS X 10.5.2.

Depois de alguns bugs resolvidos e compilacao bem sucedida do
MySQL-python-1.2.2 o Zope da-me um erro no import do Produto ZMySQLdb
2.0.8.

===============================
- Mac OS X 10.5.2 (intel)
- MySQL 5.0.51a (compiled from source)
- Python 2.4.4
- MySQL-python-1.2.2
- Zope 2.10.5 (compiled from source)
- ZMySQLdb 2.0.8
===============================
Warning na compilacao do MySQL-python-1.2.2:
ld: warning in /usr/local/mysql/lib/mysql/libmysqlclient_r.dylib, file
is not of required architecture
===============================
Erro no import do ZMySQLdb 2.0.8 no Zope 2.10.5:

2008-02-20 11:41:52 ERROR Application Could not import Products.ZMySQLDA
Traceback (most recent call last):
 File "/usr/local/zope2.10.5/lib/python/OFS/Application.py", line
709, in import_product
   product=__import__(pname, global_dict, global_dict, silly)
 File "/usr/local/zope2.10.5/instance1/Products/ZMySQLDA/__init__.py",
line 91, in ?
   import DA
 File "/usr/local/zope2.10.5/instance1/Products/ZMySQLDA/DA.py", line 92, in ?
   from db import DB
 File "/usr/local/zope2.10.5/instance1/Products/ZMySQLDA/db.py", line 89, in ?
   import _mysql
 File "build/bdist.macosx-10.3-fat/egg/_mysql.py", line 7, in ?
 File "build/bdist.macosx-10.3-fat/egg/_mysql.py", line 6, in __bootstrap__
ImportError: Inappropriate file type for dynamic loading
Traceback (most recent call last):
 File "/usr/local/zope2.10.5/lib/python/Zope2/Startup/run.py", line 56, in ?
   run()
 File "/usr/local/zope2.10.5/lib/python/Zope2/Startup/run.py", line 21, in run
   starter.prepare()
 File "/usr/local/zope2.10.5/lib/python/Zope2/Startup/__init__.py",
line 102, in prepare
   self.startZope()
 File "/usr/local/zope2.10.5/lib/python/Zope2/Startup/__init__.py",
line 278, in startZope
   Zope2.startup()
 File "/usr/local/zope2.10.5/lib/python/Zope2/__init__.py", line 47, in startup
   _startup()
 File "/usr/local/zope2.10.5/lib/python/Zope2/App/startup.py", line
45, in startup
   OFS.Application.import_products()
 File "/usr/local/zope2.10.5/lib/python/OFS/Application.py", line
686, in import_products
   import_product(product_dir, product_name, raise_exc=debug_mode)
 File "/usr/local/zope2.10.5/lib/python/OFS/Application.py", line
709, in import_product
   product=__import__(pname, global_dict, global_dict, silly)
 File "/usr/local/zope2.10.5/instance1/Products/ZMySQLDA/__init__.py",
line 91, in ?
   import DA
 File "/usr/local/zope2.10.5/instance1/Products/ZMySQLDA/DA.py", line 92, in ?
   from db import DB
 File "/usr/local/zope2.10.5/instance1/Products/ZMySQLDA/db.py", line 89, in ?
   import _mysql
 File "build/bdist.macosx-10.3-fat/egg/_mysql.py", line 7, in ?
 File "build/bdist.macosx-10.3-fat/egg/_mysql.py", line 6, in __bootstrap__
ImportError: Inappropriate file type for dynamic loading
===============================


Se alguem ja passou por isto sabe de alguma solucao?


Thanks

-- 
Hugo Ramos - [EMAIL PROTECTED]
IT Project Manager

~~~~~~~~~~~~~~ @ ~~~~~~~~~~~~~~
http://www.orkut.com/Profile.aspx?uid=10082105466310142690
http://otuggapoesia.blogspot.com/
http://otugga.blogspot.com/

Responder a