[Grok-dev] How do I start the damn thing... :o (ImportError: No module named startup)

Michael Haubenwallner michael at d2m.at
Fri Jan 30 12:33:39 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sebastian Ware wrote:
> I found some instructions on:
>    http://pypi.python.org/pypi/grokproject
> and I have tried:
>    bin/paster serve etc/deploy.ini
> but I get:
>   Traceback (most recent call last):
>    File "bin/paster", line 130, in ?
>      paste.script.command.run()
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteScript-1.7.3- 
> py2.4.egg/paste/script/command.py", line 84, in run
>      invoke(command, command_name, options, args[1:])
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteScript-1.7.3- 
> py2.4.egg/paste/script/command.py", line 123, in invoke
>      exit_code = runner.run(args)
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteScript-1.7.3- 
> py2.4.egg/paste/script/command.py", line 218, in run
>      result = self.command()
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteScript-1.7.3- 
> py2.4.egg/paste/script/serve.py", line 276, in command
>      relative_to=base, global_conf=vars)
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteScript-1.7.3- 
> py2.4.egg/paste/script/serve.py", line 311, in loadapp
>      return loadapp(
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteDeploy-1.3.2- 
> py2.4.egg/paste/deploy/loadwsgi.py", line 204, in loadapp
>      return loadobj(APP, uri, name=name, **kw)
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteDeploy-1.3.2- 
> py2.4.egg/paste/deploy/loadwsgi.py", line 224, in loadobj
>      global_conf=global_conf)
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteDeploy-1.3.2- 
> py2.4.egg/paste/deploy/loadwsgi.py", line 248, in loadcontext
>      global_conf=global_conf)
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteDeploy-1.3.2- 
> py2.4.egg/paste/deploy/loadwsgi.py", line 278, in _loadconfig
>      return loader.get_context(object_type, name, global_conf)
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteDeploy-1.3.2- 
> py2.4.egg/paste/deploy/loadwsgi.py", line 409, in get_context
>      section)
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteDeploy-1.3.2- 
> py2.4.egg/paste/deploy/loadwsgi.py", line 430, in _context_from_use
>      context = self.get_context(
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteDeploy-1.3.2- 
> py2.4.egg/paste/deploy/loadwsgi.py", line 361, in get_context
>      global_conf=global_conf)
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteDeploy-1.3.2- 
> py2.4.egg/paste/deploy/loadwsgi.py", line 248, in loadcontext
>      global_conf=global_conf)
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteDeploy-1.3.2- 
> py2.4.egg/paste/deploy/loadwsgi.py", line 285, in _loadegg
>      return loader.get_context(object_type, name, global_conf)
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteDeploy-1.3.2- 
> py2.4.egg/paste/deploy/loadwsgi.py", line 560, in get_context
>      entry_point, protocol, ep_name = self.find_egg_entry_point(
>    File "/Volumes/PsycadeliaRAID/groklive/eggs/PasteDeploy-1.3.2- 
> py2.4.egg/paste/deploy/loadwsgi.py", line 587, in find_egg_entry_point
>      possible.append((entry.load(), protocol, entry.name))
>    File "/Volumes/PsycadeliaRAID/groklive/lib/python2.4/site-packages/ 
> setuptools-0.6c8-py2.4.egg/pkg_resources.py", line 1912, in load
>      entry = __import__(self.module_name, globals(),globals(),  
> ['__name__'])
> ImportError: No module named startup
> 

'startup.py' is only created during project setup in your src/project
folder. You could create a blank new project and copy the file over.

We are just moving startup.py out of the paster template into its own
package to make the upgrade of existing projects possible.

Regards
Michael

- --
http://blog.d2m.at
http://planetzope.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJgznzl0uAvQJUKVYRAjvgAJ45lwAvUP4qhNIcb6cHAANPjyeQqwCfS1Mj
VYF/byNyil01C2ZxJX88rpY=
=s4HJ
-----END PGP SIGNATURE-----


More information about the Grok-dev mailing list