[Zope] zope2.13.12 & ZMySQLDA

Sascha Gottfried sascha.gottfried.registrierung at googlemail.com
Tue Jan 24 15:44:49 UTC 2012


Almost everything you need to know for a start is here - stop googling. 
To keep it easy use this installation method first.
http://docs.zope.org/zope2/releases/2.13/INSTALL.html#id2

1) Install virtualenv
2) Create a virtualized Python environment using virtualenv named my_zope
3) optionally - active your virtualenv
4) install Zope2 egg with this command:

(my_zope) d:\dev\my_zope>Scripts\easy_install.exe -i 
http://download.zope.org/Zope2/index/2.13.12 Zope2


5) install  Products.ZSQLMethods

(my_zope) d:\dev\my_zope>Scripts\easy_install.exe Products.ZSQLMethods


6) install Products.ZMySQLDA

(my_zope) d:\dev\my_zope>Scripts\easy_install.exe Products.ZMySQLDA


7) create a Zope instance outside the virtualenv environment
http://docs.zope.org/zope2/releases/2.13/INSTALL.html#creating-a-zope-instance

Using easy_install every egg package installs its dependencies. That 
means that package Products.ZMySQLDA installs mysql-python package for 
you. Use this power to get up and running quickly.
Learn more about python packages here:
http://guide.python-distribute.org/

Learn more about using buildout and recipes if you are comfortable with 
these topics above:
http://www.buildout.org/docs/index.html
http://pypi.python.org/pypi/plone.recipe.zope2instance

Good luck!

Am 23.01.2012 16:27, schrieb Giampiero Benvenuti:
> Hello,
>
>
> thank you for your help!
>
> I'm quite new with the eggs installation and I don't have any clue on 
> how to proceed. Could you please give me some tips or direction where 
> I can find a simple how to?
> I did google it quite a lot, but I couldn't find a precise answer.
>
> Thanks a lot,
>
> Giampiero
>
>
> On Jan 23, 2012, at 1:09 PM, Sascha Gottfried wrote:
>
>> Hi Giampiero,
>>
>> you need to provide "Products.ZSQLMethods" to your Zope instance. You 
>> get the egg package here:
>> http://pypi.python.org/pypi/Products.ZSQLMethods
>>
>> Good luck,
>> Sascha
>>
>> Am 23.01.2012 12:19, schrieb Giampiero Benvenuti:
>>> Hello,
>>>
>>> I'm running zope2.13.12, python 2.7.1 and I'm trying to install 
>>> ZMySQLDA 3.1.1.
>>> In the zope_event log I get this error:
>>>
>>> ------
>>> 2012-01-23T12:11:17 ERROR Application Couldn't install ZMySQLDA
>>> Traceback (most recent call last):
>>>  File 
>>> "/home/giampiero4/webapps/zope/lib/python2.7/Zope2-2.13.12-py2.7.egg/OFS/Application.py", 
>>> line 658, in install_product
>>>    global_dict, global_dict, silly)
>>>  File 
>>> "/home/giampiero4/webapps/zope/instance/Products/ZMySQLDA/__init__.py", 
>>> line 90, in <module>
>>>    import DA
>>>  File 
>>> "/home/giampiero4/webapps/zope/instance/Products/ZMySQLDA/DA.py", 
>>> line 92, in <module>
>>>    from db import DBPool, DB
>>>  File 
>>> "/home/giampiero4/webapps/zope/instance/Products/ZMySQLDA/db.py", 
>>> line 114, in <module>
>>>    from joinTM import joinTM
>>>  File 
>>> "/home/giampiero4/webapps/zope/instance/Products/ZMySQLDA/joinTM.py", line 
>>> 3, in <module>
>>>    from Shared.DC.ZRDB.TM import TM
>>> ImportError: No module named ZRDB.TM
>>> ------
>>>
>>> Can someone help me out with this issue?
>>>
>>> Thanks a lot,
>>>
>>> Giampiero
>>> _______________________________________________
>>> Zope maillist  -  Zope at zope.org
>>> https://mail.zope.org/mailman/listinfo/zope
>>> **   No cross posts or HTML encoding!  **
>>> (Related lists -
>>> https://mail.zope.org/mailman/listinfo/zope-announce
>>> https://mail.zope.org/mailman/listinfo/zope-dev )
>>
>> _______________________________________________
>> Zope maillist  -  Zope at zope.org
>> https://mail.zope.org/mailman/listinfo/zope
>> **   No cross posts or HTML encoding!  **
>> (Related lists -
>> https://mail.zope.org/mailman/listinfo/zope-announce
>> https://mail.zope.org/mailman/listinfo/zope-dev )
>



More information about the Zope mailing list