[BlueBream] Form Demo Trouble

Mike Rhodes mike at netsight.co.uk
Tue Sep 14 04:05:27 EDT 2010


Hi Christopher,

Which version of python are you using? I'm not sure about this, but this 
error looks to me like you might need python2.6 (the "with" statement 
isn't in python2.4), but are using an earlier version.

Buildout and Zope will run with whichever version you ran bootstrap.py 
with, so you'll need to re-run bootstrap and buildout if it turns out 
the version of python was incorrect.

Mike.

On 14/09/2010 01:46, Christopher Lozinski wrote:
>    Well I finally figured out that the way to work with the ZTK is to
> download the demo, run it, and read the source code.
>
> Brilliant.  Except the demo did not work.  Here are the commands.
>
> $ svn co svn://svn.zope.org/repos/main/z3c.formdemo/trunk formdemo
> $ cd formdemo
> $ python bootstrap.py
> $ ./bin/buildout -N
> $ ./bin/demo fg
>
> It is the last one which did not work.  At the end is the error message.
>
> In the meantime, I am sure the source code will be very helpful.
>
> Regards
> Christopher Lozinski
>
> ./bin/demo fg
> /usr/local/zope3/formdemo/parts/form-demo-app/runzope -C /usr/local/zope3/formdemo/parts/demo/zope.conf
> Traceback (most recent call last):
>    File "/usr/local/zope3/formdemo/parts/form-demo-app/runzope", line 117, in ?
>      zope.app.twisted.main.main()
>    File "/usr/local/zope3/formdemo/eggs/zope.app.twisted-3.5.0-py2.4.egg/zope/app/twisted/main.py", line 74, in main
>      service = setup(load_options(args))
>    File "/usr/local/zope3/formdemo/eggs/zope.app.twisted-3.5.0-py2.4.egg/zope/app/twisted/main.py", line 140, in setup
>      db = zope.app.appsetup.appsetup.multi_database(options.databases)[0][0]
>    File "/usr/local/zope3/formdemo/eggs/zope.app.appsetup-3.14.0-py2.4.egg/zope/app/appsetup/appsetup.py", line 213, in multi_database
>      db = factory.open()
>    File "/usr/local/zope3/formdemo/eggs/ZODB3-3.10.0b6-py2.4-freebsd-8.1-RELEASE-i386.egg/ZODB/config.py", line 101, in open
>      storage = section.storage.open()
>    File "/usr/local/zope3/formdemo/eggs/ZODB3-3.10.0b6-py2.4-freebsd-8.1-RELEASE-i386.egg/ZODB/config.py", line 157, in open
>      from ZODB.FileStorage import FileStorage
>    File "/usr/local/zope3/formdemo/eggs/ZODB3-3.10.0b6-py2.4-freebsd-8.1-RELEASE-i386.egg/ZODB/FileStorage/__init__.py", line 3, in ?
>      from ZODB.FileStorage.FileStorage import FileStorage, TransactionRecord
>    File "/usr/local/zope3/formdemo/eggs/ZODB3-3.10.0b6-py2.4-freebsd-8.1-RELEASE-i386.egg/ZODB/FileStorage/FileStorage.py", line 412
>      with self._files.get() as _file:
>              ^
> SyntaxError: invalid syntax
>
>
>
>
> _______________________________________________
> bluebream mailing list
> bluebream at zope.org
> https://mail.zope.org/mailman/listinfo/bluebream

-- 
Netsight / www.netsight.co.uk
0117 909 0901 (ext. 23)


More information about the bluebream mailing list