[Zope-dev] Zope 2.12.2 SyntaxError on installation

Marius Gedminas marius at gedmin.as
Tue Dec 29 09:24:25 EST 2009


Following the guide at
http://docs.zope.org/zope2/releases/2.12/INSTALL.html#buildout-instances

I get the following error:

  mg at platonas:~/src/akl-website-z2.12-experiment $ python2.5 bootstrap.py 
  Creating directory '/home/mg/src/akl-website-z2.12-experiment/bin'.
  Creating directory '/home/mg/src/akl-website-z2.12-experiment/parts'.
  Creating directory '/home/mg/src/akl-website-z2.12-experiment/develop-eggs'.
  Generated script '/home/mg/src/akl-website-z2.12-experiment/bin/buildout'.
  mg at platonas:~/src/akl-website-z2.12-experiment $ time bin/buildout 
  Upgraded:
    zc.buildout version 1.4.3,
    setuptools version 0.6c11;
  restarting.
  Generated script '/home/mg/src/akl-website-z2.12-experiment/bin/buildout'.
  Installing instance.
  Getting distribution for 'Zope2'.
  src/AccessControl/cAccessControl.c:598: warning: ‘intargfunc’ is deprecated
  src/AccessControl/cAccessControl.c:599: warning: ‘intargfunc’ is deprecated
  src/AccessControl/cAccessControl.c:600: warning: ‘intintargfunc’ is deprecated
  src/AccessControl/cAccessControl.c:606: warning: ‘intargfunc’ is deprecated
  src/Record/_Record.c:340: warning: ‘intargfunc’ is deprecated
  src/Record/_Record.c:341: warning: ‘intargfunc’ is deprecated
  src/Record/_Record.c:342: warning: ‘intintargfunc’ is deprecated
    File "build/bdist.linux-i686/egg/Zope2/utilities/load_site.py", line 248
      body = ("<html><head><title><dtml-var title_or_id></title>
                                                               ^
  SyntaxError: EOL while scanning single-quoted string

    File "/home/mg/tmp/buildout-eggs/tmprWUwxL/Zope2-2.12.2-py2.5-linux-i686.egg/Zope2/utilities/load_site.py", line 248
      body = ("<html><head><title><dtml-var title_or_id></title>
                                                               ^
  SyntaxError: EOL while scanning single-quoted string

  Got Zope2 2.12.2.

which seems to be https://bugs.launchpad.net/zope2/+bug/501265

Then buildout proceeds as if nothing is wrong.

  Getting distribution for 'zope.app.publication==3.7.0'.
  Got zope.app.publication 3.7.0.
  Getting distribution for 'zope.app.form==3.8.1'.
  Got zope.app.form 3.8.1.
  Getting distribution for 'zope.viewlet==3.5.0'.
  Got zope.viewlet 3.5.0.
  Getting distribution for 'zope.contentprovider==3.5.0'.
  Got zope.contentprovider 3.5.0.
  Getting distribution for 'zope.component==3.7.1'.
  Got zope.component 3.7.1.
  Getting distribution for 'zLOG==2.11.1'.
  Got zLOG 2.11.1.
  Getting distribution for 'tempstorage==2.11.2'.
  Got tempstorage 2.11.2.
  Getting distribution for 'Persistence==2.11.1'.
  Got Persistence 2.11.1.
  Getting distribution for 'ExtensionClass==2.11.3'.
  Got ExtensionClass 2.11.3.
  Getting distribution for 'DateTime==2.12.0'.
  Got DateTime 2.12.0.
  Getting distribution for 'Acquisition==2.12.4'.
  Got Acquisition 2.12.4.
  Getting distribution for 'zope.app.testing==3.6.2'.
  Got zope.app.testing 3.6.2.
  Getting distribution for 'zope.app.appsetup==3.11'.
  Got zope.app.appsetup 3.11.
  Generated script '/home/mg/src/akl-website-z2.12-experiment/bin/runzope'.
  Generated script '/home/mg/src/akl-website-z2.12-experiment/bin/zopectl'.
  Generated interpreter '/home/mg/src/akl-website-z2.12-experiment/bin/py'.

After that, it refuses to create a Data.fs and start up:

  mg at platonas:~/src/akl-website-z2.12-experiment $ bin/runzope 
  Traceback (most recent call last):
    File "bin/runzope", line 93, in <module>
      Zope2.Startup.run.run()
    File "/home/mg/tmp/buildout-eggs/Zope2-2.12.2-py2.5-linux-i686.egg/Zope2/Startup/run.py", line 21, in run
      starter.prepare()
    File "/home/mg/tmp/buildout-eggs/Zope2-2.12.2-py2.5-linux-i686.egg/Zope2/Startup/__init__.py", line 87, in prepare
      self.startZope()
    File "/home/mg/tmp/buildout-eggs/Zope2-2.12.2-py2.5-linux-i686.egg/Zope2/Startup/__init__.py", line 264, in startZope
      Zope2.startup()
    File "/home/mg/tmp/buildout-eggs/Zope2-2.12.2-py2.5-linux-i686.egg/Zope2/__init__.py", line 47, in startup
      _startup()
    File "/home/mg/tmp/buildout-eggs/Zope2-2.12.2-py2.5-linux-i686.egg/Zope2/App/startup.py", line 72, in startup
      DB = dbtab.getDatabase('/', is_root=1)
    File "/home/mg/tmp/buildout-eggs/Zope2-2.12.2-py2.5-linux-i686.egg/Zope2/Startup/datatypes.py", line 283, in getDatabase
      name = self.getName(mount_path)
    File "/home/mg/tmp/buildout-eggs/Zope2-2.12.2-py2.5-linux-i686.egg/Zope2/Startup/datatypes.py", line 300, in getName
      self._mountPathError(mount_path)
    File "/home/mg/tmp/buildout-eggs/Zope2-2.12.2-py2.5-linux-i686.egg/Zope2/Startup/datatypes.py", line 273, in _mountPathError
      "No root database configured")
  ZConfig.ConfigurationError: No root database configured

Huh?  Result of that load_site.py error, or a missing manual step that I should
have known to do despite it being not mentioned in the installation docs?

I was brave enough to specify INSTANCEHOME as '.' in my zope.conf,
because I strongly believe hardcoding absolute paths is dumb.

  mg at platonas:~/src/akl-website-z2.12-experiment $ cat etc/zope.conf 
  %define INSTANCE .

  python $INSTANCE/bin/py

  instancehome $INSTANCE


Cheers!
Marius Gedminas
-- 
http://pov.lt/ -- Zope 3 consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20091229/e5eb8558/attachment.bin 


More information about the Zope-Dev mailing list