[Grok-dev] Initializing an app and module structure

Jeroen Michiel jmichiel at yahoo.com
Tue Jan 20 05:01:13 EST 2009




Martijn Faassen-2 wrote:
> 
> Can you be more specific about what errors? :)
> 

This is the output:
(grok) D:\grok\Grokstar>bootstrap.py
Creating directory 'D:\\grok\\Grokstar\\bin'.
Creating directory 'D:\\grok\\Grokstar\\parts'.
Creating directory 'D:\\grok\\Grokstar\\develop-eggs'.
Generated script 'D:\\grok\\Grokstar\\bin\\buildout'.
Develop: 'D:\\grok\\Grokstar\\.'
Develop: 'D:\\grok\\Grokstar\\.'
Traceback (most recent call last):
  File "c:\docume~1\jm\locals~1\temp\tmpgxdpxv", line 11, in ?
    execfile('D:\\grok\\Grokstar\\.\\setup.py')
  File "D:\grok\Grokstar\.\setup.py", line 31, in ?
    entry_points="""
  File "C:\Python24\lib\distutils\core.py", line 149, in setup
    dist.run_commands()
  File "C:\Python24\lib\distutils\dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "C:\Python24\lib\distutils\dist.py", line 966, in run_command
    cmd_obj.run()
  File
"c:\python24\lib\site-packages\setuptools-0.6c8-py2.4.egg\setuptools\command\develop.py",
line 27, in run
    self.install_for_development()
  File
"c:\python24\lib\site-packages\setuptools-0.6c8-py2.4.egg\setuptools\command\develop.py",
line 85, in install_for_development
    self.run_command('egg_info')
  File "C:\Python24\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "C:\Python24\lib\distutils\dist.py", line 966, in run_command
    cmd_obj.run()
  File
"c:\python24\lib\site-packages\setuptools-0.6c8-py2.4.egg\setuptools\command\egg_info.py",
line 171, in run
    self.find_sources()
  File
"c:\python24\lib\site-packages\setuptools-0.6c8-py2.4.egg\setuptools\command\egg_info.py",
line 252, in find_sources
    mm.run()
  File
"c:\python24\lib\site-packages\setuptools-0.6c8-py2.4.egg\setuptools\command\egg_info.py",
line 306, in run
    self.add_defaults()
  File
"c:\python24\lib\site-packages\setuptools-0.6c8-py2.4.egg\setuptools\command\egg_info.py",
line 333, in add_defaults
    rcfiles = list(walk_revctrl())
  File
"c:\python24\lib\site-packages\setuptools-0.6c8-py2.4.egg\setuptools\command\sdist.py",
line 45, in walk_revctrl
    for item in ep.load()(dirname):
  File
"c:\python24\lib\site-packages\setuptools-0.6c8-py2.4.egg\setuptools\command\sdist.py",
line 52, in _default_revctrl
    for path in finder(dirname,path):
  File
"c:\python24\lib\site-packages\setuptools-0.6c8-py2.4.egg\setuptools\command\sdist.py",
line 98, in entries_finder
    log.warn("unrecognized .svn/entries format in %s", dirname)
NameError: global name 'log' is not defined
While:
  Installing.
  Processing develop directory 'D:\\grok\\Grokstar\\.'.

An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File
"c:\docume~1\jm\locals~1\temp\tmprtckee\zc.buildout-1.1.1-py2.4.egg\zc\buildout\buildout.py",
line 1477, in main
  File
"c:\docume~1\jm\locals~1\temp\tmprtckee\zc.buildout-1.1.1-py2.4.egg\zc\buildout\buildout.py",
line 324, in install
  File
"c:\docume~1\jm\locals~1\temp\tmprtckee\zc.buildout-1.1.1-py2.4.egg\zc\buildout\buildout.py",
line 556, in _develop
  File
"c:\docume~1\jm\locals~1\temp\tmprtckee\zc.buildout-1.1.1-py2.4.egg\zc\buildout\easy_install.py",
line 866, in develop
AssertionError

It seems the logging isn't initialized correctly, as it doesn't find the
'log' object (or module).

I made a new project on 1.0a1 and copy-pasted the grokstar files in it, and
with a bit of fiddling, I got it going, though.
I needed to rename blog.py to app.py (and all imports of it), and replace
interface.implements to grok.implements in a few places, and I think that
was it. 
-- 
View this message in context: http://www.nabble.com/Initializing-an-app-and-module-structure-tp21500148p21560110.html
Sent from the Grok mailing list archive at Nabble.com.



More information about the Grok-dev mailing list