Mixing a Plone site with a package requiring the Zope Component Architecture

4 Messages Forum Options Options
Embed this topic
Permalink
Christian Scholz-2
Mixing a Plone site with a package requiring the Zope Component Architecture
Reply Threaded MoreMore options
Print post
Permalink
Hi!

I am just running in some annoying problem which is as follows:

- I install a Plone installation via paster create -t plone3_buildout
- I include some package in the buildout.cfg which requires the ZCA
which means it has

   zope.interface
   zope.component
in it's setup.py
- I run buildout and try to create a site

When doing this I get the following exception:

...
   Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 470,
in installProduct
    - __traceback_info__: ('CMFFormController',)
   Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 391,
in snapshotPortal
   Module five.localsitemanager.registry, line 176, in registeredUtilities
ValueError: too many values to unpack

My guess what is happening here is as follows:

- zope.component/interface is already installed as part of the Zope2
installation (but which version?)
- as they are not installed as an egg, they will get installed
additionally via the setup.py of the package. This results in versions
3.5.1 of component and 3.4.1 of interface plus many additional zope eggs.
- Both versions (3.4.1) are esp. incompatible with five.localsitemanager
  0.3

Trying to force the use of five.localsitemanager==0.4 results in a
version conflict.

Is there anything I can do to solve this problem?

(I maybe can remove the dependencies manually from the setup.py but this
does not solve the general problem and the repeatability of that buildout).

Thanks!

-- Christian

--
Christian Scholz                          Homepage: http://comlounge.net
COM.lounge                                   blog: http://mrtopf.de/blog
Luetticher Strasse 10                                    Skype: HerrTopf
52064 Aachen                             Video Blog: http://comlounge.tv
Tel: +49 241 400 730 0                           E-Mail cs@...
Fax: +49 241 979 00 850                               IRC: MrTopf, Tao_T

neue Show: TOPFtäglich (http://mrtopf.de/blog/category/topf-taglich/)


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-developers mailing list
Plone-developers@...
https://lists.sourceforge.net/lists/listinfo/plone-developers
Hanno Schlichting-2
Re: Mixing a Plone site with a package requiring the Zope Component Architecture
Reply Threaded MoreMore options
Print post
Permalink
Christian Scholz wrote:
> I am just running in some annoying problem which is as follows:
>
> - I install a Plone installation via paster create -t plone3_buildout
> - I include some package in the buildout.cfg which requires the ZCA
> which means it has...

Typical question for the product developers list, I'd say. Look out for
fake zope eggs. Daniel wrote down some bits in:

http://plone.org/documentation/how-to/easy-forms-with-plone3

And I think we answered that question on this mailing list already a
couple of times.

Hanno


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-developers mailing list
Plone-developers@...
https://lists.sourceforge.net/lists/listinfo/plone-developers
Christian Scholz-2
Re: Mixing a Plone site with a package requiring the Zope Component Architecture
Reply Threaded MoreMore options
Print post
Permalink
Hi!

Hanno Schlichting wrote:

> Christian Scholz wrote:
>> I am just running in some annoying problem which is as follows:
>>
>> - I install a Plone installation via paster create -t plone3_buildout
>> - I include some package in the buildout.cfg which requires the ZCA
>> which means it has...
>
> Typical question for the product developers list, I'd say. Look out for
> fake zope eggs. Daniel wrote down some bits in:
>
> http://plone.org/documentation/how-to/easy-forms-with-plone3
>
> And I think we answered that question on this mailing list already a
> couple of times.

Thanks, this worked. What about adding this then per default to the
paster based buildout template? Might make these question go away :-)

-- Christian



--
Christian Scholz                          Homepage: http://comlounge.net
COM.lounge                                   blog: http://mrtopf.de/blog
Luetticher Strasse 10                                    Skype: HerrTopf
52064 Aachen                             Video Blog: http://comlounge.tv
Tel: +49 241 400 730 0                           E-Mail cs@...
Fax: +49 241 979 00 850                               IRC: MrTopf, Tao_T

neue Show: TOPFtäglich (http://mrtopf.de/blog/category/topf-taglich/)


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-developers mailing list
Plone-developers@...
https://lists.sourceforge.net/lists/listinfo/plone-developers
Gilles Lenfant
Re: Mixing a Plone site with a package requiring the Zope Component Architecture
Reply Threaded MoreMore options
Print post
Permalink
In reply to this post by Christian Scholz-2
You could try to declare these packages that are part of Zope 2.10 as  
fake eggs in the [zope2install] part. Thus buildout considers these  
are already installed.

See the doc for the xx-fake-eggs here http://pypi.python.org/pypi/plone.recipe.zope2install/2.2

Le 27 juil. 08 à 18:16, Christian Scholz a écrit :

> Hi!
>
> I am just running in some annoying problem which is as follows:
>
> - I install a Plone installation via paster create -t plone3_buildout
> - I include some package in the buildout.cfg which requires the ZCA
> which means it has
>
>   zope.interface
>   zope.component
> in it's setup.py
> - I run buildout and try to create a site
>
> When doing this I get the following exception:
>
> ...
>   Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 470,
> in installProduct
>    - __traceback_info__: ('CMFFormController',)
>   Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 391,
> in snapshotPortal
>   Module five.localsitemanager.registry, line 176, in  
> registeredUtilities
> ValueError: too many values to unpack
>
> My guess what is happening here is as follows:
>
> - zope.component/interface is already installed as part of the Zope2
> installation (but which version?)
> - as they are not installed as an egg, they will get installed
> additionally via the setup.py of the package. This results in versions
> 3.5.1 of component and 3.4.1 of interface plus many additional zope  
> eggs.
> - Both versions (3.4.1) are esp. incompatible with  
> five.localsitemanager
>  0.3
>
> Trying to force the use of five.localsitemanager==0.4 results in a
> version conflict.
>
> Is there anything I can do to solve this problem?
>
> (I maybe can remove the dependencies manually from the setup.py but  
> this
> does not solve the general problem and the repeatability of that  
> buildout).
>
> Thanks!
>
> -- Christian
>
> --
> Christian Scholz                          Homepage: http://comlounge.net
> COM.lounge                                   blog: http://mrtopf.de/blog
> Luetticher Strasse 10                                    Skype:  
> HerrTopf
> 52064 Aachen                             Video Blog: http://comlounge.tv
> Tel: +49 241 400 730 0                           E-Mail cs@...
> Fax: +49 241 979 00 850                               IRC: MrTopf,  
> Tao_T
>
> neue Show: TOPFtäglich (http://mrtopf.de/blog/category/topf-taglich/)
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's  
> challenge
> Build the coolest Linux based applications with Moblin SDK & win  
> great prizes
> Grand prize is a trip for two to an Open Source event anywhere in  
> the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Plone-developers mailing list
> Plone-developers@...
> https://lists.sourceforge.net/lists/listinfo/plone-developers

--
Gilles Lenfant
INGENIWEB (TM) - SAS 50000 Euros - RC B 438 725 632
Bureaux de la Colline
1 rue Royal
92210 Saint Cloud - France
Phone : 01 78 15 24 00 / Fax : 01 46 02 44 04
web : www.ingeniweb.com - une société du groupe Alter Way







-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-developers mailing list
Plone-developers@...
https://lists.sourceforge.net/lists/listinfo/plone-developers