Re: Zope 2.12.2 SyntaxError on installation

[email protected] (Marius Gedminas)
Newsgroups gmane.comp.web.zope.devel
Message-ID <20091229143829.GA14149@platonas>
On Tue, Dec 29, 2009 at 03:30:20PM +0100, Hanno Schlichting wrote:
> 2009/12/29 Marius Gedminas <[email protected]>:
> > I get the following error:
> >
> >    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
> 
> I already fixed that error on the 2.12 branch. But it's a bogus
> message generated by setuptools. It tries to compile all scripts
> ending in .py when building the egg. The script in question is never
> used anywhere and is probably some bitrot.

Ah, I thought it was something like this.

> > After that, it refuses to create a Data.fs and start up:
> >
> >    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@platonas:~/src/akl-website-z2.12-experiment $ cat etc/zope.conf
> >  %define INSTANCE .
> >
> >  python $INSTANCE/bin/py
> >
> >  instancehome $INSTANCE
> 
> Well. You didn't specify a database file in your zope,conf it seems.
> Without a declaration, there's no database.

Makes sense, in a rather user-unfriendly way.  May I suggest the
documentation be amended to supply a closer-to-working zope.conf?
I'm referring to this bit:

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

where I didn't notice the word "starting" in "Create a Zope configuration
file starting as follows".

Thanks for the very quick reply!

Marius Gedminas
-- 
http://pov.lt/ -- Zope 3 consulting and development

_______________________________________________
Zope-Dev maillist  -  [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFLOhRlkVdEXeem148RAtoRAJ9o6hzonVsmHHJCDO9BdKZxg5Bm/gCfQhUU
pwJiH+FDY2Gpg1y01b3YVY0=
=RCIG
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.