Getting the following error. Thanks in advance. ]# ./zopectl start Traceback (most recent call last): File "/opt/zope/Zope-2.10.1_Software/lib/python/Zope2/Startup/ zopectl.py", line 322, in ? main() File "/opt/zope/Zope-2.10.1_Software/lib/python/Zope2/Startup/ zopectl.py", line 280, in main options.realize(args) File "/opt/zope/Zope-2.10.1_Software/lib/python/Zope2/Startup/ zopectl.py", line 91, in realize ZDOptions.realize(self, *args, **kw) File "/opt/zope/Zope-2.10.1_Software/lib/python/zdaemon/ zdoptions.py", line 273, in realize self.load_schema() File "/opt/zope/Zope-2.10.1_Software/lib/python/zdaemon/ zdoptions.py", line 321, in load_schema self.schema = ZConfig.loadSchema(self.schemafile) File "/opt/zope/Zope-2.10.1_Software/lib/python/ZConfig/ loader.py", line 31, in loadSchema return SchemaLoader().loadURL(url) File "/opt/zope/Zope-2.10.1_Software/lib/python/ZConfig/ loader.py", line 65, in loadURL return self.loadResource(r) File "/opt/zope/Zope-2.10.1_Software/lib/python/ZConfig/ loader.py", line 159, in loadResource schema = ZConfig.schema.parseResource(resource, self) File "/opt/zope/Zope-2.10.1_Software/lib/python/ZConfig/ schema.py", line 27, in parseResource xml.sax.parse(resource.file, parser) File "/usr/local/lib/python2.4/xml/sax/__init__.py", line 33, in parse parser.parse(source) 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 300, in start_element self._cont_handler.startElement(name, AttributesImpl(attrs)) File "/opt/zope/Zope-2.10.1_Software/lib/python/ZConfig/ schema.py", line 99, in startElement getattr(self, "start_" + name)(attrs) File "/opt/zope/Zope-2.10.1_Software/lib/python/ZConfig/ schema.py", line 475, in start_schema keytype, valuetype, datatype = self.get_sect_typeinfo(attrs) File "/opt/zope/Zope-2.10.1_Software/lib/python/ZConfig/ schema.py", line 201, in get_sect_typeinfo datatype = self.get_datatype(attrs, "datatype", "null", base) File "/opt/zope/Zope-2.10.1_Software/lib/python/ZConfig/ schema.py", line 194, in get_datatype return self._registry.get(dtname) File "/opt/zope/Zope-2.10.1_Software/lib/python/ZConfig/ datatypes.py", line 398, in get t = self.search(name) File "/opt/zope/Zope-2.10.1_Software/lib/python/ZConfig/ datatypes.py", line 423, in search package = __import__(n, g, g, component) File "/opt/zope/Zope-2.10.1_Software/lib/python/Zope2/Startup/ datatypes.py", line 21, in ? import OFS.Uninstalled File "/opt/zope/Zope-2.10.1_Software/lib/python/OFS/ Uninstalled.py", line 16, in ? import SimpleItem, Globals, Acquisition File "/opt/zope/Zope-2.10.1_Software/lib/python/OFS/ SimpleItem.py", line 26, in ? import AccessControl.Role, AccessControl.Owned, App.Common ImportError: No module named AccessControl.Role
--On 28. August 2007 12:32:42 -0400 Tom Von Lahndorff <tom@modscape.com> wrote:
import AccessControl.Role, AccessControl.Owned, App.Common ImportError: No module named AccessControl.Role
Broken installation? And why Zope 2.10.1? We are currently at 2.10.4. Andreas
This is in the error log: -08-20T15:12:21 ERROR root Exception while rendering an error message Traceback (most recent call last): File "/opt/zope/Zope-2.10.1_Software/lib/python/OFS/ SimpleItem.py", line 225, in raise_standardErrorMessage v = s(client, REQUEST, **kwargs) File "/opt/zope/Zope-2.10.1_Software/lib/python/OFS/ DTMLMethod.py", line 143, in __call__ r=apply(HTML.__call__, (self, client, REQUEST), kw) File "/opt/zope/Zope-2.10.1_Software/lib/python/DocumentTemplate/ DT_String.py", line 476, in __call__ try: result = render_blocks(self._v_blocks, md) File "/opt/zope/Zope-2.10.1_Software/lib/python/OFS/ DTMLMethod.py", line 136, in __call__ r=apply(HTML.__call__, (self, client, REQUEST), kw) File "/opt/zope/Zope-2.10.1_Software/lib/python/DocumentTemplate/ DT_String.py", line 476, in __call__ try: result = render_blocks(self._v_blocks, md) Unauthorized: You are not allowed to access 'admin' in this context Any ideas? On Aug 28, 2007, at 12:37 PM, Andreas Jung wrote:
--On 28. August 2007 12:32:42 -0400 Tom Von Lahndorff <tom@modscape.com> wrote:
import AccessControl.Role, AccessControl.Owned, App.Common ImportError: No module named AccessControl.Role
Broken installation? And why Zope 2.10.1? We are currently at 2.10.4.
Andreas
try: result = render_blocks(self._v_blocks, md) Unauthorized: You are not allowed to access 'admin' in this context
Any ideas?
This is not connected with previous error, but seems that your Zope worked before (-08-20T15:12:21). If so then what chages did you do? ;) As Andreas said previous error is possibly due to broken installation. Check if you have AccessControl.Role and if so, then check if your python/site-packages doesn't contain another one eg. from Zope3. -- Maciej Wisniowski
participants (3)
-
Andreas Jung -
Maciej Wisniowski -
Tom Von Lahndorff