Opa, Luis. Agora que eu li sua mensagem.

É, realizei aqui as alterações que informou, mas não funcionou.
Uma pergunta, por um acaso vc trabalha no SERPRO?

Segue o log:

2008-08-14T10:43:51 ERROR Zope Could not import Products.ZMySQLDA
Traceback (most recent call last):
  File "/opt/Plone-2.5.5/lib/python/OFS/Application.py", line 708, in
import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File "/opt/Plone-2.5.5/lib/python/Products/ZMySQLDA/__init__.py", line 91,
in ?
    import DA
  File "/opt/Plone-2.5.5/lib/python/Products/ZMySQLDA/DA.py", line 92, in ?
    from db import DB
  File "/opt/Plone-2.5.5/lib/python/Products/ZMySQLDA/db.py", line 89, in ?
    import _mysql
  File "build/bdist.linux-i686/egg/_mysql.py", line 7, in ?
  File "build/bdist.linux-i686/egg/_mysql.py", line 4, in __bootstrap__
  File
"/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 840, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File
"/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 1310, in get_resource_filename
    self._extract_resource(manager, self._eager_to_zip(name))
  File
"/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 1331, in _extract_resource
    real_path = manager.get_cache_path(
  File
"/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 921, in get_cache_path
    self.extraction_error()
  File
"/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 887, in extraction_error
    raise err
ExtractionError: Can't extract file(s) to egg cache

The following error occurred while trying to extract file(s) to the Python
egg
cache:

  [Errno 20] Not a directory:
'/opt/Plone-2.5.5/zeocluster/.python-eggs/MySQL_python-1.2.2-py2.4-linux-i686.egg-tmp'

The Python egg cache directory is currently set to:

  /opt/Plone-2.5.5/zeocluster/.python-eggs

Perhaps your account does not have write access to this directory?  You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.

2008-08-14T10:44:36 ERROR Zope Couldn't install ZMySQLDA
Traceback (most recent call last):
  File "/opt/Plone-2.5.5/lib/python/OFS/Application.py", line 755, in
install_product
    global_dict, global_dict, silly)
  File "/opt/Plone-2.5.5/lib/python/Products/ZMySQLDA/__init__.py", line 91,
in ?
    import DA
  File "/opt/Plone-2.5.5/lib/python/Products/ZMySQLDA/DA.py", line 92, in ?
    from db import DB
  File "/opt/Plone-2.5.5/lib/python/Products/ZMySQLDA/db.py", line 89, in ?
    import _mysql
  File "build/bdist.linux-i686/egg/_mysql.py", line 7, in ?
  File "build/bdist.linux-i686/egg/_mysql.py", line 4, in __bootstrap__
  File
"/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 840, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File
"/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 1310, in get_resource_filename
    self._extract_resource(manager, self._eager_to_zip(name))
  File
"/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 1331, in _extract_resource
    real_path = manager.get_cache_path(
  File
"/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 921, in get_cache_path
    self.extraction_error()
  File
"/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
line 887, in extraction_error
    raise err
ExtractionError: Can't extract file(s) to egg cache

The following error occurred while trying to extract file(s) to the Python
egg
cache:

  [Errno 20] Not a directory:
'/opt/Plone-2.5.5/zeocluster/.python-eggs/MySQL_python-1.2.2-py2.4-linux-i686.egg-tmp'

The Python egg cache directory is currently set to:

  /opt/Plone-2.5.5/zeocluster/.python-eggs

Perhaps your account does not have write access to this directory?  You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.

2008/8/14 Luiz Guilherme Aldabalde <[EMAIL PROTECTED]>

>
> Carlos,
>
> Eu solucionei este caso mudando o PYTHON_EGG_CACHE.
>
> Criar um diretório, como por exemplo : 
> /opt/Plone-2.5.5/zeocluster/.python-eggs
>
>
> Deposi incluir as seguintes linhas no zope.conf:
>
> <environment>
>     PYTHON_EGG_CACHE /opt/Plone-2.5.5/zeocluster/.python-eggs
>
> </environment>
>
> Comigo funcionou. mas a razão do fato ter ocorrido não ficou clara .
>
> Abraços,
> Luiz Guilherme
>
>
> 2008/8/14 Mateus Henriques <[EMAIL PROTECTED]>
>
>    Carlos,
>>
>> Vc colocou o ZMySQLDA no diretorio correto?
>>
>> /instancia_zope/lib/python
>>
>> Um abraço.
>>
>> ----- Original Message -----
>> From: "Carlos Eduardo"
>> To: zope-pt@yahoogrupos.com.br
>> Subject: Re: [zope-pt] Instalando MySQL no Zope
>> Date: Wed, 13 Aug 2008 16:17:13 -0300
>>
>>  É... consegui instalar o conector. Agora quando copio o produto ZMySQLDA
>> (2.0.8) para a pasta products o mesmo não aparece na lista do Product
>> Management.
>>
>> Olhando o arquivo de log verifiquei que houve erro na importação e na
>> instalação:
>>
>> 2008-08-13T13:48:05 ERROR Zope Could not import Products.ZMySQLDA
>> Traceback (most recent call last):
>>   File "/opt/Plone-2.5.5/lib/python/OFS/Application.py", line 708, in
>> import_product
>>     product=__import__(pname, global_dict, global_dict, silly)
>>   File "/opt/Plone-2.5.5/lib/python/Products/ZMySQLDA/__init__.py", line
>> 91, in ?
>>     import DA
>>   File "/opt/Plone-2.5.5/lib/python/Products/ZMySQLDA/DA.py", line 92, in
>> ?
>>     from db import DB
>>   File "/opt/Plone-2.5.5/lib/python/Products/ZMySQLDA/db.py", line 89, in
>> ?
>>     import _mysql
>>   File "build/bdist.linux-i686/egg/_mysql.py", line 7, in ?
>>   File "build/bdist.linux-i686/egg/_mysql.py", line 4, in __bootstrap__
>>   File
>> "/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
>> line 840, in resource_filename
>>     return get_provider(package_or_requirement).get_resource_filename(
>>   File
>> "/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
>> line 1310, in get_resource_filename
>>     self._extract_resource(manager, self._eager_to_zip(name))
>>   File
>> "/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
>> line 1331, in _extract_resource
>>     real_path = manager.get_cache_path(
>>   File
>> "/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
>> line 921, in get_cache_path
>>     self.extraction_error()
>>   File
>> "/opt/Plone-2.5.5/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
>> line 887, in extraction_error
>>     raise err
>> ExtractionError: Can't extract file(s) to egg cache
>>
>> The following error occurred while trying to extract file(s) to the Python
>> egg
>> cache:
>>
>>   [Errno 13] Permission denied: '/root/.python-eggs'
>>
>> The Python egg cache directory is currently set to:
>>
>>   /root/.python-eggs
>>
>> Perhaps your account does not have write access to this directory?  You
>> can
>> change the cache directory by setting the PYTHON_EGG_CACHE environment
>> variable to point to an accessible directory.
>>
>> Infelizmente não entendi muita coisa neste log, quem puder me ajudar
>> ficarei imensamente agradecido.
>>
>> Mais uma vez agradeço a atenção de todos.
>>
>> Abraços.
>>
>>
>> 2008/8/12 Carlos Eduardo <[EMAIL PROTECTED]>
>>
>>> Poxa vida, obrigado Matheus.
>>>
>>> Eu uso o Fedora aqui no trabalho, vou ver aqui como faço para conseguir
>>> este arquivo por ele.
>>> Qualquer coisa eu mando um e-mail de novo.
>>>
>>> Muito obrigado.
>>>
>>> 2008/8/11 Mateus Henriques <[EMAIL PROTECTED]>
>>>
>>>    Carlos,
>>>>
>>>> Faz o seguinte:
>>>> apt-get install libmysqlclient15-dev
>>>>
>>>> Depois tenta novamente o:
>>>> python setup.py build
>>>>
>>>> e logo em seguida:
>>>> python setup.py install
>>>>
>>>> Espero ter ajudado. Um abraço.
>>>>
>>>>
>>>> ----- Original Message -----
>>>> From: "Carlos Eduardo"
>>>> To: zope-pt@yahoogrupos.com.br
>>>> Subject: [zope-pt] Instalando MySQL no Zope
>>>> Date: Mon, 11 Aug 2008 17:30:43 -0300
>>>>
>>>>  Amigos, boa tarde.
>>>>
>>>> Sou novo neste mundo Zope/Plone, tive um curso básico aqui onde trabalho
>>>> para elaborarmos um portal. Agora eu estava querendo incrementar um pouco
>>>> mais o portal inserindo algumas consultas em banco de dados. Inicialmente
>>>> comecei minha leitura no site www.fabiorizzo.com e li o tópico "Instalando
>>>> o MySQL no Zope/Plone e criando uma pequena aplicação". Pois bem, consigo
>>>> realizar os primeiros passos, que são estes:
>>>>
>>>> $ export mysqlversion="minha versão"
>>>> $ export mysqlclient="mysqlclient_r"
>>>> $ export mysqloptlibs="ssl crypto"
>>>>
>>>> Quando executo o comando:
>>>>
>>>> $ python setup.py build
>>>>
>>>> Milhões de erros são exibidos, copiá-los aqui deixaria o e-mail
>>>> altamente extenso.
>>>>
>>>> Estou utilizando:
>>>> Zope 2.9.8
>>>> Plone 2.5.5
>>>> MySQL 5.1
>>>>
>>>> As versões do conector *MySQL-Python, *confesso que tentei todas, pelo
>>>> menos as disponíveis no endereço
>>>> http://www.zope.org/Members/adustman/Products/MySQLdb
>>>>
>>>> Desculpem a extensão do e-mail.
>>>>
>>>> Aguardo retorno.
>>>>
>>>> Desde já, agradeço a atenção depositada na leitura do e-mail.
>>>>
>>>> Atenciosamente,
>>>> Carlos Eduardo.
>>>>
>>>>
>>>>
>>>> Mateus Zenaide Henriques
>>>> [http://matzen.objectis.net]
>>>> [http://construirsites.com.br]
>>>>
>>>>
>>>> --
>>>>
>>>> [image: rock.com] <http://webmail.rock.com/signup/>
>>>>
>>>
>>>
>>
>>
>> Mateus Zenaide Henriques
>> [http://matzen.objectis.net]
>> [http://construirsites.com.br]
>>
>>
>> --
>>
>> [image: rock.com] <http://webmail.rock.com/signup/>
>>
>
>  
>

Responder a