Ciao a tutti,
sto in questo periodo provando le annunciate meraviglie di questo nuovo
sistema (dexterity appunto) per la creazione di content type all'interno
di plone ma con estreme difficoltà.

Come prima cosa mi sono buttato sul manuale di Martin Aspeli[1]
piuttosto illuminante per alcuni aspetti ma demoralizzante per altri...
in particolare volendo iniziare dalla cosa più semplice, volevo cercare
di installare l'esempio già pronto spiegato nell'how-to
(example.conference).
fatto quindi un "svn co
https://svn.plone.org/svn/collective/example.conference/trunk/"; e
aggiunte le righe al buildout.cfg:

[buildout]
...
eggs =
    ...
    example.conference

...
develop =
    ...
    src/example.conference


lanciato il buildout non ottengo errori:


> $ bin/buildout 
> Upgraded:
>   distribute version 0.6.10;
> restarting.
> Generated script '/home/manuele/[...]/Plone3/bin/buildout'.
> Develop: '/home/manuele/[...]/Plone3/src/example.conference'
> Unused options for buildout: 'sources'.
> Updating zope2.
> Updating fake eggs
> Updating productdistros.
> Updating instance.
> Updating zopepy.

fallisce invece il lancio di plone come segue:

> $ bin/instance fg
> /home/manuele/[...]/Plone3/parts/instance/bin/runzope -X debug-mode=on
> 2010-02-07 11:31:53 INFO ZServer HTTP server started at Sun Feb  7 11:31:53 
> 2010
>       Hostname: 0.0.0.0
>       Port: 3030
> 2010-02-07 11:31:54 INFO Marshall libxml2-python not available. Unable to 
> register libxml2 based marshallers, at least SimpleXMLMarshaller
> 2010-02-07 11:31:56 INFO Plone Dependency  
> Unable to detect Zope version. Please make sure you have Zope 2.10.4 or newer 
> installed.
> 2010-02-07 11:31:57 WARNING plone.z3cform Monkey patching 
> z3c.form.term.ChoiceTerms to correctly bind fields
> 2010-02-07 11:31:58 ERROR Application Couldn't install Five
> Traceback (most recent call last):
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/OFS/Application.py", line 
> 786, in install_product
>     initmethod(context)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/Products/Five/__init__.py",
>  line 28, in initialize
>     zcml.load_site()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/Products/Five/zcml.py", 
> line 53, in load_site
>     _context = xmlconfig.file(file)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 579, in file
>     include(context, name, package)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 515, in include
>     processxmlfile(f, context)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 370, in processxmlfile
>     parser.parse(src)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
>     xmlreader.IncrementalParser.parse(self, source)
>   File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
>     self.feed(buffer)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
>     self._parser.Parse(data, isFinal)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in 
> end_element_ns
>     self._cont_handler.endElementNS(pair, None)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 349, in endElementNS
>     self.context.end()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/config.py",
>  line 544, in end
>     self.stack.pop().finish()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/config.py",
>  line 692, in finish
>     actions = self.handler(context, **args)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 515, in include
>     processxmlfile(f, context)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 370, in processxmlfile
>     parser.parse(src)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
>     xmlreader.IncrementalParser.parse(self, source)
>   File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
>     self.feed(buffer)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
>     self._parser.Parse(data, isFinal)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in 
> end_element_ns
>     self._cont_handler.endElementNS(pair, None)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 349, in endElementNS
>     self.context.end()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/config.py",
>  line 544, in end
>     self.stack.pop().finish()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/config.py",
>  line 692, in finish
>     actions = self.handler(context, **args)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 515, in include
>     processxmlfile(f, context)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 370, in processxmlfile
>     parser.parse(src)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
>     xmlreader.IncrementalParser.parse(self, source)
>   File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
>     self.feed(buffer)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
>     self._parser.Parse(data, isFinal)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in 
> end_element_ns
>     self._cont_handler.endElementNS(pair, None)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 349, in endElementNS
>     self.context.end()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/config.py",
>  line 544, in end
>     self.stack.pop().finish()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/config.py",
>  line 692, in finish
>     actions = self.handler(context, **args)
>   File 
> "/home/manuele/[...]/Plone3/eggs/z3c.autoinclude-0.3.1-py2.4.egg/z3c/autoinclude/zcml.py",
>  line 51, in includeDependenciesDirective
>     info = DependencyFinder(dist).includableInfo(['configure.zcml', 
> 'meta.zcml'])
>   File 
> "/home/manuele/[...]/Plone3/eggs/z3c.autoinclude-0.3.1-py2.4.egg/z3c/autoinclude/dependency.py",
>  line 24, in includableInfo
>     module = resolve(dotted_name)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/dottedname/resolve.py",
>  line 32, in resolve
>     found = __import__(used)
>   File "/usr/lib/python2.4/site-packages/pyatspi/__init__.py", line 42, in ?
>     import ORBit, bonobo
> ZopeXMLConfigurationError: File 
> "/home/manuele/[...]/Plone3/parts/instance/etc/site.zcml", line 14.2-14.55
>     ZopeXMLConfigurationError: File 
> "/home/manuele/[...]/Plone3/parts/instance/etc/package-includes/001-example.conference-configure.zcml",
>  line 1.0-1.62
>     ZopeXMLConfigurationError: File 
> "/home/manuele/[...]/Plone3/src/example.conference/example/conference/configure.zcml",
>  line 8.4-8.39
>     ImportError: No module named ORBit
> Traceback (most recent call last):
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/Zope2/Startup/run.py", 
> line 56, in ?
>     run()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/Zope2/Startup/run.py", 
> line 21, in run
>     starter.prepare()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/Zope2/Startup/__init__.py",
>  line 102, in prepare
>     self.startZope()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/Zope2/Startup/__init__.py",
>  line 278, in startZope
>     Zope2.startup()
>   File "/home/manuele/[...]/Plone3/parts/zope2/lib/python/Zope2/__init__.py", 
> line 47, in startup
>     _startup()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/Zope2/App/startup.py", 
> line 102, in startup
>     OFS.Application.initialize(application)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/OFS/Application.py", line 
> 309, in initialize
>     initializer.initialize()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/OFS/Application.py", line 
> 338, in initialize
>     self.install_products()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/OFS/Application.py", line 
> 603, in install_products
>     return install_products(app)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/OFS/Application.py", line 
> 634, in install_products
>     folder_permissions, raise_exc=debug_mode)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/OFS/Application.py", line 
> 786, in install_product
>     initmethod(context)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/Products/Five/__init__.py",
>  line 28, in initialize
>     zcml.load_site()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/Products/Five/zcml.py", 
> line 53, in load_site
>     _context = xmlconfig.file(file)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 579, in file
>     include(context, name, package)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 515, in include
>     processxmlfile(f, context)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 370, in processxmlfile
>     parser.parse(src)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
>     xmlreader.IncrementalParser.parse(self, source)
>   File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
>     self.feed(buffer)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
>     self._parser.Parse(data, isFinal)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in 
> end_element_ns
>     self._cont_handler.endElementNS(pair, None)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 349, in endElementNS
>     self.context.end()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/config.py",
>  line 544, in end
>     self.stack.pop().finish()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/config.py",
>  line 692, in finish
>     actions = self.handler(context, **args)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 515, in include
>     processxmlfile(f, context)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 370, in processxmlfile
>     parser.parse(src)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
>     xmlreader.IncrementalParser.parse(self, source)
>   File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
>     self.feed(buffer)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
>     self._parser.Parse(data, isFinal)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in 
> end_element_ns
>     self._cont_handler.endElementNS(pair, None)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 349, in endElementNS
>     self.context.end()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/config.py",
>  line 544, in end
>     self.stack.pop().finish()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/config.py",
>  line 692, in finish
>     actions = self.handler(context, **args)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 515, in include
>     processxmlfile(f, context)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 370, in processxmlfile
>     parser.parse(src)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
>     xmlreader.IncrementalParser.parse(self, source)
>   File "/usr/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
>     self.feed(buffer)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
>     self._parser.Parse(data, isFinal)
>   File "/usr/lib/python2.4/xml/sax/expatreader.py", line 348, in 
> end_element_ns
>     self._cont_handler.endElementNS(pair, None)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
>  line 349, in endElementNS
>     self.context.end()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/config.py",
>  line 544, in end
>     self.stack.pop().finish()
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/configuration/config.py",
>  line 692, in finish
>     actions = self.handler(context, **args)
>   File 
> "/home/manuele/[...]/Plone3/eggs/z3c.autoinclude-0.3.1-py2.4.egg/z3c/autoinclude/zcml.py",
>  line 51, in includeDependenciesDirective
>     info = DependencyFinder(dist).includableInfo(['configure.zcml', 
> 'meta.zcml'])
>   File 
> "/home/manuele/[...]/Plone3/eggs/z3c.autoinclude-0.3.1-py2.4.egg/z3c/autoinclude/dependency.py",
>  line 24, in includableInfo
>     module = resolve(dotted_name)
>   File 
> "/home/manuele/[...]/Plone3/parts/zope2/lib/python/zope/dottedname/resolve.py",
>  line 32, in resolve
>     found = __import__(used)
>   File "/usr/lib/python2.4/site-packages/pyatspi/__init__.py", line 42, in ?
>     import ORBit, bonobo
> zope.configuration.xmlconfig.ZopeXMLConfigurationError: File 
> "/home/manuele/[...]/Plone3/parts/instance/etc/site.zcml", line 14.2-14.55
>     ZopeXMLConfigurationError: File 
> "/home/manuele/[...]/Plone3/parts/instance/etc/package-includes/001-example.conference-configure.zcml",
>  line 1.0-1.62
>     ZopeXMLConfigurationError: File 
> "/home/manuele/[...]/Plone3/src/example.conference/example/conference/configure.zcml",
>  line 8.4-8.39
>     ImportError: No module named ORBit
                  ^^^^^^^^^^^^^^^^^^^^^^

tentando quindi di installare pyorbit ecco un'altra sorpresa:

> # easy_install-2.4 pyorbit
> Searching for pyorbit
> Reading http://pypi.python.org/simple/pyorbit/
> Reading http://www.daa.com.au/~james/software/pygtk/
> Best match: pyorbit 2.0.0
> Downloading 
> http://ftp.gnome.org/pub/GNOME/sources/pyorbit/2.0/pyorbit-2.0.0.tar.gz
> Processing pyorbit-2.0.0.tar.gz
> Running pyorbit-2.0.0/setup.py -q bdist_egg --dist-dir 
> /tmp/easy_install-60A62Q/pyorbit-2.0.0/egg-dist-tmp-PD73-C
> file CORBA.py (for module CORBA) not found
> file PortableServer.py (for module PortableServer) not found
> warning: no previously-included files matching '*/CVS/*' found anywhere in 
> distribution
> warning: no previously-included files matching '.cvsignore' found anywhere in 
> distribution
> file CORBA.py (for module CORBA) not found
> file PortableServer.py (for module PortableServer) not found
> file CORBA.py (for module CORBA) not found
> file PortableServer.py (for module PortableServer) not found
> src/ORBitmodule.c: In function ‘initORBit’:
> src/ORBitmodule.c:424: error: ‘PYORBIT_MAJOR_VERSION’ undeclared (first use 
> in this function)
> src/ORBitmodule.c:424: error: (Each undeclared identifier is reported only 
> once
> src/ORBitmodule.c:424: error: for each function it appears in.)
> src/ORBitmodule.c:425: error: ‘PYORBIT_MINOR_VERSION’ undeclared (first use 
> in this function)
> src/ORBitmodule.c:426: error: ‘PYORBIT_MICRO_VERSION’ undeclared (first use 
> in this function)
> error: Setup script exited with error: command 'gcc' failed with exit status 1
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
a questo punto non so come procedere... vi posso aggiungere che gcc è
ovviamente installato e che uso una debian sid.

Grazie per l'attenzione :)
a presto

        Manuele

[1]
http://plone.org/products/dexterity/documentation/manual/developer-manual


_______________________________________________
Plone-IT mailing list
Plone-IT@lists.plone.org
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html

Rispondere a