When I try to add a "CMF Site" at the Zope root, I get: "('No
traversable adapter found', )"
When I try to add a "Plone Site" at the Zope root, I get:
"('No traversable adapter found', {'extension_profiles': ({'product':
'kupu', 'description': 'Extension profile for Kupu', 'for': , 'title':
'Kupu', 'path': 'plone/profiles/default', 'type': 2, 'id':
'kupu:default'},), 'args': (), 'base_profiles': (), 'default_profile':
'Products.CMFPlone:plone'})"
When I try to check the Zope logs via the ZMI, I get:
"Site Error
An error was encountered while publishing this resource.
Error Type: TraversalError
Error Value: ('No traversable adapter found', {'ignored_exceptions':
('Unauthorized', 'NotFound', 'Redirect'), 'keep_entries': 20,
'copy_to_zlog': True})"
When I start Zope in foreground-debug mode ("zopectl fg"), I see
"ImportError: No module named pkg_resources", as well as an error
about installing Five (which seems already to be installed, according
to Zope) and it crashes (more detail below). If I start Zope normally
("start" instead of "fg"), it starts and I can access the ZMI.
I've included everything I can think of below. I hope someone can
help? Also, if this is the wrong place to post such questions, I
apologize; I tried posting to "setup" but my message was rejected.
Thanks,
~John
Setup steps taken:
Install Python 2.4.4
Install Zope 2.10.2 & create Zope instance
Install Imaging 1.1.6
Install elementtree 1.2.6
Install Plone-3.0 alpha2
Restart Zope
Debug Information:
* Zope version: (Zope 2.10.2-final, python 2.4.4, linux2)
* Python version: 2.4.4 (#1, Mar 7 2007, 10:20:30) [GCC 3.4.6
20060404 (Red Hat 3.4.6-3)]
* System Platform: linux2
* SOFTWARE_HOME: /var/zope/lib/python
* INSTANCE_HOME: /var/zope/instance
* CLIENT_HOME: /var/zope/instance/var
* Process ID: 18746 (-1258857552)
* Running for: 1 min 53 sec
* sys.path:
/var/zope/instance/lib/python
/var/zope/instance/lib/python
/var/zope/lib/python/Zope2/Startup
/var/zope/instance/Products/ATContentTypes/thirdparty
/var/zope/lib/python
/var/zope/instance
/usr/local/lib/python24.zip
/usr/local/lib/python2.4
/usr/local/lib/python2.4/plat-linux2
/usr/local/lib/python2.4/lib-tk
/usr/local/lib/python2.4/lib-dynload
/usr/local/lib/python2.4/site-packages
/usr/local/lib/python2.4/site-packages/PIL
Zope debug session:
$ /var/zope/instance/bin/zopectl fg
/var/zope/instance/bin/runzope -X debug-mode=on
2007-03-07 11:31:24 INFO ZServer HTTP server started at Wed Mar 7
11:31:24 2007
Hostname: 0.0.0.0
Port: 8080
/var/zope/instance/Products/validation/validators/
ExpressionValidator.py:27: DeprecationWarning:
Products.PageTemplates.TALES has moved to zope.tales.tales. Import of
Products.PageTemplates.TALES will become unsupported in 2.12
import Products.PageTemplates.TALES as TALES
/var/zope/instance/Products/Marshall/config.py:29: UserWarning:
libxml2 not available. Unable to register libxml2 based marshallers
warnings.warn('libxml2 not available. Unable to register libxml2
based ' \
/var/zope/instance/lib/python/kss/core/pluginregistry/_concatresource/
resource.py:1: DeprecationWarning: BrowserView is deprecated. It has
been moved to zope.publisher.browser. This reference will be removed
in Zope 3.5.
from zope.app.publisher.browser import BrowserView
/var/zope/instance/lib/python/kss/core/pluginregistry/_concatresource/
resource.py:3: DeprecationWarning: zope.app.datetimeutils has moved to
zope.datetime. Import of zope.app.datetimeutils will become
unsupported in Zope 3.5
from zope.app.datetimeutils import time as timeFromDateTimeString
/var/zope/instance/lib/python/kss/core/pluginregistry/_concatresource/
fileresource.py:13: DeprecationWarning: zope.app.content_types has
moved to zope.contenttype. Import of zope.app.content_types will
become unsupported in Zope 3.5
from zope.app.content_types import guess_content_type
/var/zope/instance/lib/python/kss/core/pluginregistry/_concatresource/
concatfileresource.py:17: DeprecationWarning: This module is
deprecated and will go away in Zope 3.5. Use zope.component.interfaces
instead.
from zope.component.exceptions import ComponentLookupError
/var/zope/instance/lib/python/kss/core/pluginregistry/_concatresource/
meta.py:21: DeprecationWarning: This module is deprecated and will go
away in Zope 3.5.
from zope.app.servicenames import Presentation
/var/zope/lib/python/zope/app/servicenames/__init__.py:22:
DeprecationWarning: This module is deprecated and will go away in Zope
3.5.
from zope.component.servicenames import *
/var/zope/instance/lib/python/kss/core/pluginregistry/_concatresource/
directives.py:5: DeprecationWarning: zope.app.security.fields has
moved to zope.security.zcml. Import of zope.app.security.fields will
become unsupported in Zope 3.5
from zope.app.security.fields import Permission
2007-03-07 11:31:31 ERROR Application Couldn't install Five
Traceback (most recent call last):
File "/var/zope/lib/python/OFS/Application.py", line 780, in
install_product
initmethod(context)
File "/var/zope/lib/python/Products/Five/__init__.py", line 28, in
initialize
zcml.load_site()
File "/var/zope/lib/python/Products/Five/zcml.py", line 53, in
load_site
_context = xmlconfig.file(file)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
579, in file
include(context, name, package)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
515, in include
processxmlfile(f, context)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
370, in processxmlfile
parser.parse(src)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107, in
parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in
parse
self.feed(buffer)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207, in
feed
self._parser.Parse(data, isFinal)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 348, in
end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
349, in endElementNS
self.context.end()
File "/var/zope/lib/python/zope/configuration/config.py", line 544,
in end
self.stack.pop().finish()
File "/var/zope/lib/python/zope/configuration/config.py", line 692,
in finish
actions = self.handler(context, **args)
File "/var/zope/lib/python/Products/Five/fiveconfigure.py", line 78,
in loadProducts
handleBrokenProduct(product)
File "/var/zope/lib/python/Products/Five/fiveconfigure.py", line 76,
in loadProducts
xmlconfig.include(_context, zcml, package=product)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
515, in include
processxmlfile(f, context)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
370, in processxmlfile
parser.parse(src)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107, in
parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in
parse
self.feed(buffer)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207, in
feed
self._parser.Parse(data, isFinal)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 348, in
end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
349, in endElementNS
self.context.end()
File "/var/zope/lib/python/zope/configuration/config.py", line 544,
in end
self.stack.pop().finish()
File "/var/zope/lib/python/zope/configuration/config.py", line 692,
in finish
actions = self.handler(context, **args)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
515, in include
processxmlfile(f, context)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
370, in processxmlfile
parser.parse(src)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107, in
parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in
parse
self.feed(buffer)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207, in
feed
self._parser.Parse(data, isFinal)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 348, in
end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
349, in endElementNS
self.context.end()
File "/var/zope/lib/python/zope/configuration/config.py", line 544,
in end
self.stack.pop().finish()
File "/var/zope/lib/python/zope/configuration/config.py", line 691,
in finish
args = toargs(context, *self.argdata)
File "/var/zope/lib/python/zope/configuration/config.py", line 1383,
in toargs
args[str(name)] = field.fromUnicode(s)
File "/var/zope/lib/python/zope/configuration/fields.py", line 229,
in fromUnicode
v = vt.fromUnicode(s)
File "/var/zope/lib/python/zope/configuration/fields.py", line 139,
in fromUnicode
value = self.context.resolve(name)
File "/var/zope/lib/python/zope/configuration/config.py", line 184,
in resolve
mod = __import__(mname, *_import_chickens)
File "/var/zope/instance/lib/python/plone/app/controlpanel/
wickedcp.py", line 9, in ?
from wicked.plone.registration import basic_type_regs
File "/var/zope/instance/lib/python/wicked/plone/registration.py",
line 1, in ?
from wicked.registration import SelectiveRegistration
File "/var/zope/instance/lib/python/wicked/registration.py", line
19, in ?
import pkg_resources
ZopeXMLConfigurationError: File "/var/zope/instance/etc/site.zcml",
line 15.2-15.23
ZopeXMLConfigurationError: File "/var/zope/instance/Products/
CMFPlone/configure.zcml", line 7.2-7.46
ZopeXMLConfigurationError: File "/var/zope/instance/lib/python/
plone/app/controlpanel/configure.zcml", line 21.2-21.59
ImportError: No module named pkg_resources
Traceback (most recent call last):
File "/var/zope/lib/python/Zope2/Startup/run.py", line 56, in ?
run()
File "/var/zope/lib/python/Zope2/Startup/run.py", line 21, in run
starter.prepare()
File "/var/zope/lib/python/Zope2/Startup/__init__.py", line 102, in
prepare
self.startZope()
File "/var/zope/lib/python/Zope2/Startup/__init__.py", line 278, in
startZope
Zope2.startup()
File "/var/zope/lib/python/Zope2/__init__.py", line 47, in startup
_startup()
File "/var/zope/lib/python/Zope2/App/startup.py", line 102, in
startup
OFS.Application.initialize(application)
File "/var/zope/lib/python/OFS/Application.py", line 309, in
initialize
initializer.initialize()
File "/var/zope/lib/python/OFS/Application.py", line 338, in
initialize
self.install_products()
File "/var/zope/lib/python/OFS/Application.py", line 603, in
install_products
return install_products(app)
File "/var/zope/lib/python/OFS/Application.py", line 634, in
install_products
folder_permissions, raise_exc=debug_mode)
File "/var/zope/lib/python/OFS/Application.py", line 780, in
install_product
initmethod(context)
File "/var/zope/lib/python/Products/Five/__init__.py", line 28, in
initialize
zcml.load_site()
File "/var/zope/lib/python/Products/Five/zcml.py", line 53, in
load_site
_context = xmlconfig.file(file)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
579, in file
include(context, name, package)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
515, in include
processxmlfile(f, context)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
370, in processxmlfile
parser.parse(src)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107, in
parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in
parse
self.feed(buffer)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207, in
feed
self._parser.Parse(data, isFinal)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 348, in
end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
349, in endElementNS
self.context.end()
File "/var/zope/lib/python/zope/configuration/config.py", line 544,
in end
self.stack.pop().finish()
File "/var/zope/lib/python/zope/configuration/config.py", line 692,
in finish
actions = self.handler(context, **args)
File "/var/zope/lib/python/Products/Five/fiveconfigure.py", line 78,
in loadProducts
handleBrokenProduct(product)
File "/var/zope/lib/python/Products/Five/fiveconfigure.py", line 76,
in loadProducts
xmlconfig.include(_context, zcml, package=product)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
515, in include
processxmlfile(f, context)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
370, in processxmlfile
parser.parse(src)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107, in
parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in
parse
self.feed(buffer)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207, in
feed
self._parser.Parse(data, isFinal)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 348, in
end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
349, in endElementNS
self.context.end()
File "/var/zope/lib/python/zope/configuration/config.py", line 544,
in end
self.stack.pop().finish()
File "/var/zope/lib/python/zope/configuration/config.py", line 692,
in finish
actions = self.handler(context, **args)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
515, in include
processxmlfile(f, context)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
370, in processxmlfile
parser.parse(src)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107, in
parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in
parse
self.feed(buffer)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207, in
feed
self._parser.Parse(data, isFinal)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 348, in
end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/var/zope/lib/python/zope/configuration/xmlconfig.py", line
349, in endElementNS
self.context.end()
File "/var/zope/lib/python/zope/configuration/config.py", line 544,
in end
self.stack.pop().finish()
File "/var/zope/lib/python/zope/configuration/config.py", line 691,
in finish
args = toargs(context, *self.argdata)
File "/var/zope/lib/python/zope/configuration/config.py", line 1383,
in toargs
args[str(name)] = field.fromUnicode(s)
File "/var/zope/lib/python/zope/configuration/fields.py", line 229,
in fromUnicode
v = vt.fromUnicode(s)
File "/var/zope/lib/python/zope/configuration/fields.py", line 139,
in fromUnicode
value = self.context.resolve(name)
File "/var/zope/lib/python/zope/configuration/config.py", line 184,
in resolve
mod = __import__(mname, *_import_chickens)
File "/var/zope/instance/lib/python/plone/app/controlpanel/
wickedcp.py", line 9, in ?
from wicked.plone.registration import basic_type_regs
File "/var/zope/instance/lib/python/wicked/plone/registration.py",
line 1, in ?
from wicked.registration import SelectiveRegistration
File "/var/zope/instance/lib/python/wicked/registration.py", line
19, in ?
import pkg_resources
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/var/
zope/instance/etc/site.zcml", line 15.2-15.23
ZopeXMLConfigurationError: File "/var/zope/instance/Products/
CMFPlone/configure.zcml", line 7.2-7.46
ZopeXMLConfigurationError: File "/var/zope/instance/lib/python/
plone/app/controlpanel/configure.zcml", line 21.2-21.59
ImportError: No module named pkg_resources
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plone-Users mailing list
Plone...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users
John,
We ran into this problem ourselves this morning. We were able to fix it
by installing setuptools (http://cheeseshop.python.org/pypi/setuptools).
Hope that helps,
Eric
Thanks Eric. I've installed the package (I think), but I'm not quite
clear on what do to next in order to troubleshoot this Plone issue.
Do you use easy_install to "upgrade" the Plone packages?
John,
I'm not sure about that. We were able to install from MacPorts and then
just start up Zope/Plone without any problems.
Eric
Interesting. So, you didn't install via the official alpha2 tarball
(Plone-3.0-alpha2.tar.gz)?
I've never used this system before, but I assume the syntax would
simply be:
easy_install <package>
If so, when I run that on the tarball, I get:
error: Couldn't find a setup script in Plone-3.0-alpha2.tar.gz
Well, we followed the install.txt for the alpha2 tarball (copy products
to the products folder and the lib to the lib/python folder) without
running easy_install. Install.txt just didn't mention that setuptools
was needed. Once we'd installed setuptools, everything worked just fine.
If I'm following things correctly, Plone is using that itself to
run/install some of the Python eggs in the lib/python folder.
Eric
Strangely enough, once I installed setuptools, my Plone stuff also
"Just Worked" and everything is fine. Thanks Eric. Without your
mentioning this, I'm not sure I ever would have gotten up and
running.
Does this mean that everyone else was already aware of this somehow,
or that nobody else is testing alpha2? Unless setuptools isn't truly
necessary, and we're missing something, I think it's worth mentioning
in the installation instructions.
You're quite welcome.
Agreed on the installation instructions. Is this worth adding a ticket
for? Anyone?
Eric
--
Nick Davis
Web Application Developer
University of Leicester
http://www2.le.ac.uk
http://ebulletin.le.ac.uk