[Grok-dev] first installation of grok on Debian "grokproject Sample" Error "SyntaxError: invalid syntax"

DIVINE PAUL Paul.Divine at alcatel-lucent.com
Tue Jun 22 07:12:07 EDT 2010


Hi,

I try for the first time to install grok on  machine with a Linux stable
lenny version   2.6.26-2-amd64  #1 SMP Wed May 12 18:03:14 UTC 2010
x86_64 GNU/Linux

 

 

On the command

 

grokproject Sample

 

 

the following message is displayed

 

z3c.recipe.__init__: module references __path__

Download error: (110, 'Connection timed out') -- Some packages may not
be found!

 

And then

 

build/bdist.linux-x86_64/egg/RestrictedPython/tests/security_in_syntax26
.py:6: Warning: 'with' will become a reserved keyword in Python 2.6

  File
"build/bdist.linux-x86_64/egg/RestrictedPython/tests/security_in_syntax2
6.py", line 6

    with x as _leading_underscore:

         ^

SyntaxError: invalid syntax

 

 

Then I tried paster serve, another error appears.

 

 

Note 

 On Debian Lennny version, python version is Python 2.5.2 (r252:60911,
Jan 24 2010, 17:44:40)

 

Is there a known solution?

 

Best regards.

Paul Divine

 

 

 

The details are given in the following lines.

 

 

 (virtualgrok)pl6320:~/npo/virtualgrok# grokproject Sample

Enter user (Name of an initial administrator user): admin

Enter passwd (Password for the initial administrator user):

Determining current grok version...

Replace 2973 bytes with 2835 bytes (5/118 lines changed; 2 lines
removed)

Overwrite ./Sample/buildout.cfg [y/n/d/B/?] y

Replace 1307 bytes with 1307 bytes (1/36 lines changed)

Overwrite ./Sample/etc/site.zcml.in [y/n/d/B/?] y

Downloading zc.buildout...

Invoking zc.buildout...

zip_safe flag not set; analyzing archive contents...

zip_safe flag not set; analyzing archive contents...

z3c.__init__: module references __path__

z3c.recipe.__init__: module references __path__

Download error: (110, 'Connection timed out') -- Some packages may not
be found!

no previously-included directories found matching 'docs-in-progress'

zip_safe flag not set; analyzing archive contents...

docutils.parsers.rst.directives.misc: module references __file__

docutils.writers.odf_odt.__init__: module references __file__

docutils.writers.s5_html.__init__: module references __file__

docutils.writers.html4css1.__init__: module references __file__

docutils.writers.latex2e.__init__: module references __file__

docutils.writers.pep_html.__init__: module references __file__

docutils.writers.newlatex2e.__init__: module references __file__

build/bdist.linux-x86_64/egg/RestrictedPython/tests/before_and_after26.p
y:30: Warning: 'with' will become a reserved keyword in Python 2.6

  File
"build/bdist.linux-x86_64/egg/RestrictedPython/tests/before_and_after26.
py", line 30

    with whatever as x:

                ^

SyntaxError: invalid syntax

 

build/bdist.linux-x86_64/egg/RestrictedPython/tests/security_in_syntax26
.py:6: Warning: 'with' will become a reserved keyword in Python 2.6

  File
"build/bdist.linux-x86_64/egg/RestrictedPython/tests/security_in_syntax2
6.py", line 6

    with x as _leading_underscore:

         ^

SyntaxError: invalid syntax

 

*************** PICKED VERSIONS ****************

[versions]

megrok.layout = 1.1.0

 

#Required by:

#grokui.base 0.2.2

megrok.menu = 0.4

 

*************** /PICKED VERSIONS ***************

 

 

Then I tried paster serve

 

 

(virtualgrok)pl6320:~/npo/virtualgrok# bin/paster serve
parts/etc/deploy.ini

Traceback (most recent call last):

  File "bin/paster", line 8, in <module>

    load_entry_point('PasteScript==1.7.3', 'console_scripts',
'paster')()

  File
"/root/npo/virtualgrok/lib/python2.5/site-packages/PasteScript-1.7.3-py2
.5.egg/paste/script/command.py", line 84, in run

    invoke(command, command_name, options, args[1:])

  File
"/root/npo/virtualgrok/lib/python2.5/site-packages/PasteScript-1.7.3-py2
.5.egg/paste/script/command.py", line 123, in invoke

    exit_code = runner.run(args)

  File
"/root/npo/virtualgrok/lib/python2.5/site-packages/PasteScript-1.7.3-py2
.5.egg/paste/script/command.py", line 218, in run

    result = self.command()

  File
"/root/npo/virtualgrok/lib/python2.5/site-packages/PasteScript-1.7.3-py2
.5.egg/paste/script/serve.py", line 274, in command

    relative_to=base, global_conf=vars)

  File
"/root/npo/virtualgrok/lib/python2.5/site-packages/PasteScript-1.7.3-py2
.5.egg/paste/script/serve.py", line 308, in loadserver

    relative_to=relative_to, **kw)

  File
"/root/npo/virtualgrok/lib/python2.5/site-packages/PasteDeploy-1.3.3-py2
.5.egg/paste/deploy/loadwsgi.py", line 210, in loadserver

    return loadobj(SERVER, uri, name=name, **kw)

  File
"/root/npo/virtualgrok/lib/python2.5/site-packages/PasteDeploy-1.3.3-py2
.5.egg/paste/deploy/loadwsgi.py", line 224, in loadobj

    global_conf=global_conf)

  File
"/root/npo/virtualgrok/lib/python2.5/site-packages/PasteDeploy-1.3.3-py2
.5.egg/paste/deploy/loadwsgi.py", line 248, in loadcontext

    global_conf=global_conf)

  File
"/root/npo/virtualgrok/lib/python2.5/site-packages/PasteDeploy-1.3.3-py2
.5.egg/paste/deploy/loadwsgi.py", line 275, in _loadconfig

    loader = ConfigLoader(path)

  File
"/root/npo/virtualgrok/lib/python2.5/site-packages/PasteDeploy-1.3.3-py2
.5.egg/paste/deploy/loadwsgi.py", line 344, in __init__

    "File %r not found" % filename)

OSError: File '/root/npo/virtualgrok/parts/etc/deploy.ini' not found

 

 

The file /root/npo/virtualgrok/parts/etc/deploy.ini        is absent
but

the file /root/npo/virtualgrok/Sample/parts/etc/deploy.ini is present.

 

 

 

Best regards

Paul Divine

 

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20100622/f839d439/attachment-0001.html 


More information about the Grok-dev mailing list