New user problems with Solaris 9 Zope
I've been working on getting Zope running on an Ultra 1 running Solaris 9, with no real success so far. I can apparently compile and install Zope, but when I try to run it I get the following: mre@bonk$ instance/bin/runzope -X port-base=1000 Traceback (most recent call last): File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 50, in ? run() File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 18, in run opts = _setconfig() File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 42, in _setconfig opts.realize(doc="Sorry, no option docs yet.") File "/opt/Zope-2.7/lib/python/zdaemon/zdoptions.py", line 271, in realize self.load_schema() File "/opt/Zope-2.7/lib/python/zdaemon/zdoptions.py", line 312, in load_schema self.schema = ZConfig.loadSchema(self.schemafile) File "/opt/Zope-2.7/lib/python/ZConfig/loader.py", line 37, in loadSchema return SchemaLoader().loadURL(url) File "/opt/Zope-2.7/lib/python/ZConfig/loader.py", line 71, in loadURL return self.loadResource(r) File "/opt/Zope-2.7/lib/python/ZConfig/loader.py", line 137, in loadResource schema = ZConfig.schema.parseResource(resource, self) File "/opt/Zope-2.7/lib/python/ZConfig/schema.py", line 43, in parseResource xml.sax.parse(resource.file, parser) File "/usr/local/lib/python2.3/xml/sax/__init__.py", line 33, in parse parser.parse(source) File "/usr/local/lib/python2.3/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/usr/local/lib/python2.3/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/usr/local/lib/python2.3/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/usr/local/lib/python2.3/xml/sax/expatreader.py", line 300, in start_element self._cont_handler.startElement(name, AttributesImpl(attrs)) File "/opt/Zope-2.7/lib/python/ZConfig/schema.py", line 119, in startElement getattr(self, "start_" + name)(attrs) File "/opt/Zope-2.7/lib/python/ZConfig/schema.py", line 306, in start_import src = self._loader.schemaComponentSource(pkg, file) File "/opt/Zope-2.7/lib/python/ZConfig/loader.py", line 154, in schemaComponentSource __import__(package) File "/opt/Zope-2.7/lib/python/ZServer/__init__.py", line 30, in ? ZOPE_VERSION=utils.getZopeVersion() File "/opt/Zope-2.7/lib/python/ZServer/utils.py", line 18, in getZopeVersion return App.version_txt.version_txt() File "/opt/Zope-2.7/lib/python/App/version_txt.py", line 57, in version_txt _prep_version_data() File "/opt/Zope-2.7/lib/python/App/version_txt.py", line 45, in _prep_version_data dict = expr.match(s).groupdict() AttributeError: 'NoneType' object has no attribute 'groupdict' This is really tough for someone like me to debug as I have no experience with Zope or Python. Any suggestions?
Mike Elliott wrote:
I've been working on getting Zope running on an Ultra 1 running Solaris 9, with no real success so far.
I can apparently compile and install Zope, but when I try to run it I get the following:
mre@bonk$ instance/bin/runzope -X port-base=1000 [ snip most of traceback ] File "/opt/Zope-2.7/lib/python/App/version_txt.py", line 45, in _prep_version_data dict = expr.match(s).groupdict() AttributeError: 'NoneType' object has no attribute 'groupdict'
The code in question is trying to match a version number from a file called "version.txt" in $SOFTWARE_HOME, which is set in the runzope file. Check the runzope file you are running above for $SOFTWARE_HOME, then open the version.txt file and tell us what is in it. It probably does not match the regular expression: expr = re.compile( r'(?P<product>[A-Za-z0-9]+) +(?P<major>[0-9]+)' '\.(?P<minor>[0-9]+)\.(?P<micro>[0-9]+)' '(?P<status>[A-Za-z]+)?(?P<release>[0-9]+)?') You can probably get past this problem in the short term by just deleting that file. HTH, JZ
On 06.Jan 2005 - 11:42:04, Mike Elliott wrote:
I've been working on getting Zope running on an Ultra 1 running Solaris 9, with no real success so far.
This is really tough for someone like me to debug as I have no experience with Zope or Python. Any suggestions?
Check the archive, I asked that question before christmas. The problem is the version string in a file of lib/python/... (I don't know the exact filename). Also there is an existing Bugreport, the problem is the Solaris echo-program (IIRC). Andreas -- You possess a mind not merely twisted, but actually sprained.
participants (3)
-
Andreas Pakulat -
John Ziniti -
Mike Elliott