francoise | 1 Oct 10:44
Picon

When should I add new Products in "eggs" and "zcml" sections of buildout ?


Hi all,

Some products are added only on the "eggs" section (Products.LinguaPlone,
MySQL-Python).

Others products need to be also added to the "zcml" section (my developped
product, and apparently theme products).

What is the logic for to know when I should add a product to the  "zcml"
section ? For themes only ?

Regards
--

-- 
View this message in context: http://n2.nabble.com/When-should-I-add-new-Products-in-eggs-and-zcml-sections-of-buildout-tp3747760p3747760.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.

ida277 | 1 Oct 14:54
Picon

Re: When should I add new Products in "eggs" and "zcml" sections of buildout ?


Hi,

as far as I know this isssue is connected with the namespaces.

In general all eggs should be registered in the zcml section, exept for
those where the name also starts with "Products.", like in
Products.LinguaPlone.

Doesn't explain MYSQL_Python though...

Fortunately usually it's documented in the docs.

Hope that helps,
Regads,
Ida

francoise wrote:
> 
> Hi all,
> 
> Some products are added only on the "eggs" section (Products.LinguaPlone,
> MySQL-Python).
> 
> Others products need to be also added to the "zcml" section (my developped
> product, and apparently theme products).
> 
> What is the logic for to know when I should add a product to the  "zcml"
> section ? For themes only ?
> 
(Continue reading)

Steve McMahon | 1 Oct 17:45
Gravatar

Re: When should I add new Products in "eggs" and "zcml" sections of buildout ?

Python packages that don't use the Zope Toolkit (aka Zope 3) don't need ZCML slugs. That's why MySQL-python doesn't need it.

By the way, Plone 3.3 includes an autodiscovery mechanism. Once products add the right magic phrases in setup.py, they won't need zcml section entries.

On Thu, Oct 1, 2009 at 5:54 AM, ida277 <ida277-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Hi,

as far as I know this isssue is connected with the namespaces.

In general all eggs should be registered in the zcml section, exept for
those where the name also starts with "Products.", like in
Products.LinguaPlone.

Doesn't explain MYSQL_Python though...

Fortunately usually it's documented in the docs.

Hope that helps,
Regads,
Ida


francoise wrote:
>
> Hi all,
>
> Some products are added only on the "eggs" section (Products.LinguaPlone,
> MySQL-Python).
>
> Others products need to be also added to the "zcml" section (my developped
> product, and apparently theme products).
>
> What is the logic for to know when I should add a product to the  "zcml"
> section ? For themes only ?
>
> Regards
>

--
View this message in context: http://n2.nabble.com/When-should-I-add-new-Products-in-eggs-and-zcml-sections-of-buildout-tp3747760p3748842.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.

_______________________________________________
Setup mailing list
Setup-G3yHMj00SlOLbbK5bonKug@public.gmane.org
http://lists.plone.org/mailman/listinfo/setup

Karl Johan Kleist | 5 Oct 09:24
Picon

Re: buildout Plone issue on windows vista


Are you running as Administrator?

novice26 wrote:
> 
> I recently installed a fresh copy on plone on windows vista and i try to
> do a buildout after installing a product and here is the error that i am
> getting. Any idea? This is really driving me crazy!
> 
> 
> C:\Program Files\Plone>bin\buildout
> Uninstalling controller.
> While:
>   Installing.
>   Uninstalling controller.
> 
> An internal error occured due to a bug in either zc.buildout or in a
> recipe being used:
> Traceback (most recent call last):
>   File "c:\program
> files\plone\buildout-cache\eggs\zc.buildout-1.4.1-py2.4.egg\zc\buildout\buildout.py",
> line 1659, in main
>     getattr(buildout, command)(args)
>   File "c:\program
> files\plone\buildout-cache\eggs\zc.buildout-1.4.1-py2.4.egg\z
> c\buildout\buildout.py", line 471, in install
>     self._uninstall_part(part, installed_part_options)
>   File "c:\program
> files\plone\buildout-cache\eggs\zc.buildout-1.4.1-py2.4.egg\z
> c\buildout\buildout.py", line 594, in _uninstall_part
>     self._uninstall(
>   File "c:\program
> files\plone\buildout-cache\eggs\zc.buildout-1.4.1-py2.4.egg\z
> c\buildout\buildout.py", line 708, in _uninstall
>     os.remove(f)
> OSError: [Errno 13] Permission denied: 'C:\\Program
> Files\\Plone\\bin\\plone-con
> troller.exe'
> 

--

-- 
View this message in context: http://n2.nabble.com/buildout-Plone-issue-on-windows-vista-tp3759400p3767321.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.

Karl Johan Kleist | 5 Oct 09:35
Picon

Re: buildout Plone issue on windows vista


Also, I'd try installing Plone in a directory without a space in its name.
Self being one, I don't trust developers ;-)

Karl Johan Kleist wrote:
> 
> Are you running as Administrator?
> 

--

-- 
View this message in context: http://n2.nabble.com/buildout-Plone-issue-on-windows-vista-tp3759400p3767357.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.

Herman Geldenhuys | 5 Oct 12:24
Picon
Gravatar

Re: Installing solgema.portletsmanager - how to resolve zc.buildout error


Hey,

I had the same issue. Not quite sure how to pin the resource that depends on
the conflict locked version of the zc.bouldout, but what I did to resolve my
dependency nightmare, was to run buildout with the -n flag.

Hope this helps, as I see the view on this page growing more.

Btw, I was running the Unified installer on Mac OS X Snow Leopard.

Herman

richardt wrote:
> 
> Hi there,
> 
> I'm trying to install solgema.portletsmanager-0.5.1b2 using buildout which
> generates the error on running $ bin/buildout -n
> 
> While:
>   Installing.
>   Getting section precompile.
>   Initializing part precompile.
>   Getting section varnish-build.
>   Initializing section varnish-build.
>   Installing recipe zc.recipe.cmmi.
> Error: There is a version conflict.
> We already have: zc.buildout 1.1.2
> but zc.recipe.cmmi 1.3.1 requires 'zc.buildout>=1.4'.
> 
> I've tried adding the following lines to buildout.cfg to upgrade
> zc.buildout - 
> 
> [versions]
> zc.buildout = 1.4.1
> 
> but this generates another error after re-running bin/buildout -n
> 
> Error: Missing option: buildout:parts
> 
> Please could anyone advise on how to resolve. I can't use easy_install as
> I don't have root access in my zope/plone setup. 
> 
> Thanks.
> 
> 
> Plone version overview:
> 
>     *  Plone 3.2.3
>     * CMF 2.1.2
>     * Zope (Zope 2.10.8-final, python 2.4.5, linux2)
>     * Python 2.4.5 (#1, Aug 15 2009, 19:17:18) [GCC 4.2.4 (Ubuntu
> 4.2.4-1ubuntu4)]
>     * PIL 1.1.6
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

-----
"All the exaggerations are right, if they exaggerate the right thing." GKC
--

-- 
View this message in context: http://n2.nabble.com/Installing-solgema-portletsmanager-how-to-resolve-zc-buildout-error-tp3632635p3767986.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.

Favicon

Re: Installing solgema.portletsmanager - how to resolve zc.buildout error

Herman Geldenhuys a écrit :
Hey, I had the same issue. Not quite sure how to pin the resource that depends on the conflict locked version of the zc.bouldout, but what I did to resolve my dependency nightmare, was to run buildout with the -n flag. Hope this helps, as I see the view on this page growing more. Btw, I was running the Unified installer on Mac OS X Snow Leopard. Herman richardt wrote:
Hi there, I'm trying to install solgema.portletsmanager-0.5.1b2 using buildout which generates the error on running $ bin/buildout -n While: Installing. Getting section precompile. Initializing part precompile. Getting section varnish-build. Initializing section varnish-build. Installing recipe zc.recipe.cmmi. Error: There is a version conflict. We already have: zc.buildout 1.1.2 but zc.recipe.cmmi 1.3.1 requires 'zc.buildout>=1.4'. I've tried adding the following lines to buildout.cfg to upgrade zc.buildout - [versions] zc.buildout = 1.4.1 but this generates another error after re-running bin/buildout -n Error: Missing option: buildout:parts Please could anyone advise on how to resolve. I can't use easy_install as I don't have root access in my zope/plone setup. Thanks. Plone version overview: * Plone 3.2.3 * CMF 2.1.2 * Zope (Zope 2.10.8-final, python 2.4.5, linux2) * Python 2.4.5 (#1, Aug 15 2009, 19:17:18) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu4)] * PIL 1.1.6
----- "All the exaggerations are right, if they exaggerate the right thing." GKC
Pin zc.recipe.cmmi to 1.2.1 (from http://pypi.python.org/pypi/zc.recipe.cmmi)
-- Cordialement, Jean-Michel FRANCOIS Makina-Corpus
Favicon

Re: When should I add new Products in "eggs" and "zcml" sections of buildout ?

Steve McMahon a écrit :
Python packages that don't use the Zope Toolkit (aka Zope 3) don't need ZCML slugs. That's why MySQL-python doesn't need it.

By the way, Plone 3.3 includes an autodiscovery mechanism. Once products add the right magic phrases in setup.py, they won't need zcml section entries.

On Thu, Oct 1, 2009 at 5:54 AM, ida277 <ida277-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Hi,

as far as I know this isssue is connected with the namespaces.

In general all eggs should be registered in the zcml section, exept for
those where the name also starts with "Products.", like in
Products.LinguaPlone.

Doesn't explain MYSQL_Python though...

Fortunately usually it's documented in the docs.

Hope that helps,
Regads,
Ida


francoise wrote:
>
> Hi all,
>
> Some products are added only on the "eggs" section (Products.LinguaPlone,
> MySQL-Python).
>
> Others products need to be also added to the "zcml" section (my developped
> product, and apparently theme products).
>
> What is the logic for to know when I should add a product to the  "zcml"
> section ? For themes only ?
>
> Regards
>

--
View this message in context: http://n2.nabble.com/When-should-I-add-new-Products-in-eggs-and-zcml-sections-of-buildout-tp3747760p3748842.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.

_______________________________________________
Setup mailing list
Setup-G3yHMj00SlOLbbK5bonKug@public.gmane.org
http://lists.plone.org/mailman/listinfo/setup

_______________________________________________ Setup mailing list Setup-G3yHMj00SlOLbbK5bonKug@public.gmane.org http://lists.plone.org/mailman/listinfo/setup

ZCML is for loading components. It is related to ZCA (zope component architecture).

Most of the time it is documented in the README or INSTALL.txt if you need the zcml slug in your buildout.

For some people like me it is usefull to not autoinclude zcml because I can choose which component I want to load.

Products Namespace is special and is autoincluded. So never add zcml for Products.XXX

Every collective.XXX eggs need to add zcml.

For other namespace you need to verify if it use ZCA or not (check if their is configure.zcml inside the egg. for example collective.toto.egg/collective/toto/configure.zcml)

If you don't want to include this in buildout and have a policy, you can include other eggs by using its own configure.zcml => <include package="collective.toto" />
-- Cordialement, Jean-Michel FRANCOIS Makina-Corpus
Picon

Plone 3.3.1: where are runzeo and runzope?

Hi all,

I'm trying to setup a Plone 3.3.1 framework with supervisor.

With Plone 3.3 I used these commands in the supervisor part of buildout:

[supervisor]
recipe = collective.recipe.supervisor

port = 4101
serverurl = http://127.0.0.1:4101
user = admin
password = drillococco

programs =
    10 zeoserver ${zeoserver:location}/bin/runzeo ${zeoserver:location}
    20 client1 ${client1:location}/bin/runzope ${client1:location} true
    30 client2 ${client2:location}/bin/runzope ${client2:location} true
    40 deliverance /usr/local/Plone33/zeocluster/deliveranceStart.sh true
    50 pound ${buildout:directory}/bin/poundrun ${buildout:directory} true
    60 varnish ${buildout:directory}/bin/varnish ${buildout:directory} true

But in Plone 3.3.1 there are neither runzeo nor runzope. The parts 
directory is empty.

Which commands can I use for supervisor and Plone 3.3.1?

Thanks
    Mirto

Attachment (mirtosilvio_busico.vcf): text/x-vcard, 292 bytes
Martin Aspeli | 8 Oct 02:48
Picon

Re: Plone 3.3.1: where are runzeo and runzope?

Mirto Silvio Busico wrote:
> Hi all,
> 
> I'm trying to setup a Plone 3.3.1 framework with supervisor.
> 
> With Plone 3.3 I used these commands in the supervisor part of buildout:
> 
> [supervisor]
> recipe = collective.recipe.supervisor
> 
> port = 4101
> serverurl = http://127.0.0.1:4101
> user = admin
> password = drillococco
> 
> programs =
>     10 zeoserver ${zeoserver:location}/bin/runzeo ${zeoserver:location}
>     20 client1 ${client1:location}/bin/runzope ${client1:location} true
>     30 client2 ${client2:location}/bin/runzope ${client2:location} true
>     40 deliverance /usr/local/Plone33/zeocluster/deliveranceStart.sh true
>     50 pound ${buildout:directory}/bin/poundrun ${buildout:directory} true
>     60 varnish ${buildout:directory}/bin/varnish ${buildout:directory} true
> 
> But in Plone 3.3.1 there are neither runzeo nor runzope. The parts 
> directory is empty.

If the parts directory is empty, your buildout has failed to complete. 
Try it again:

  bin/buildout -v

And look for errors.

Martin

--

-- 
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book


Gmane