Random ...
 
December 2017
S M T W T F S
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Tags ...
Links



python+zope++:: grok 1.1rc1 + python2.6 == A OK
Posted at 14.Apr,2010 22:12  Comments 2 / Trackbacks 0 / Like this post!
Technorati tag(s):

Brief note. Here's how I got grok running with python 2.6

As many would have known, earlier grok version runs on python 2.4 and 2.5 only.

Maartijn noted that grok 1.1 should run on python2.6

:

  • virtualenv --no-sitepackages grok1.1rc1
  • source grok1.1rc1/bin/activate
  • easy_install grokproject ... ...
  • grokproject --grokversion=1.1rc1 --zopectl Sample #get the grok version 1.1rc1 and do zope style control :
     Enter user (Name of an initial administrator user): admin
     Enter passwd (Password for the initial administrator user): 
     Enter passwd (Password for the initial administrator user): 
     Downloading info about versions...
     Creating directory ./Sample
     Downloading zc.buildout...
     Invoking zc.buildout... 
     Develop: '/home/kdie/projek/grok11/Sample/.'
     Installing eggbasket.
     zip_safe flag not set; analyzing archive contents...
     zc.zope3recipes.debugzope: module references __file__
    
  • cd Sample
  • bin/zopectl fg :
      /home/kdie/projek/grok11/Sample/parts/app/runzope -C /home/kdie/projek/grok11/Sample/parts/zopectl/zope.conf
    /home/kdie/.buildout/eggs/zope.app.twisted-3.5.0-py2.6.egg/twisted/spread/pb.py:67: DeprecationWarning: the md5 module is deprecated; use hashlib instead
      import md5
    /home/kdie/.buildout/eggs/zope.app.twisted-3.5.0-py2.6.egg/twisted/python/filepath.py:10: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
      import sha
    ------
    2010-04-14T20:35:01 INFO zope.app.generations main db: evolving in mode EVOLVEMINIMUM
    ------
    2010-04-14T20:35:01 INFO zope.app.generations main db/zope.app: running install generation
    ------
    2010-04-14T20:35:01 INFO root -- HTTP:localhost:8080 Server started.
            Hostname: localhost
            Port: 8080
    ------
    2010-04-14T20:35:01 INFO root Startup time: 11.053 sec real, 8.890 sec CPU
    
  • go to localhost:8080

we're in!


Bookmark and Share

Is this entry helpful? Comments/Donate/Click some google ads.  
Trackback is http://myzope.kedai.com.my/blogs/kedai/249/tbping 

Comments

The --zopectl option will be deprecated in the soon to be released version of grokproject.

Use `bin/paster serve parts/etc/debug.ini` instead.

I recommend upgrading your grokproject after the release.

Jan-Jaap Driessen  at 15.Apr,2010 03:02
bummer

ah, i know of the official paster stuff, but why deprecate zopectl?

any particular reasons? sorry, am not subscribed to grok lists.

will check out in a minute.

kedai  at 15.Apr,2010 13:14
Post a comment