[Grok-dev] Wierd Thing: Grok Groping All Modules?

Michael Haubenwallner michael at d2m.at
Sat May 23 06:35:41 EDT 2009


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

Jeff Rush wrote:
> Hi, I'm just starting to check out Grok and when I do my first:
> 
>   $ bin/python bin/zopectl fg
> 
> it gives me a traceback that I've chased down to the z3c.autoinclude package
> 
>   File
> "/var/tmp/buildout/eggs/z3c.autoinclude-0.2.2-py2.5.egg/z3c/autoinclude/zcml.py",
> line 39, in autoIncludeDirective
>     info = DependencyFinder(dist).includableInfo(['configure.zcml', 'meta.zcml'])
>   File
> "/var/tmp/buildout/eggs/z3c.autoinclude-0.2.2-py2.5.egg/z3c/autoinclude/dependency.py",
> line 27, in includableInfo
>     module = resolve(dotted_name)
>   File
> "/var/tmp/buildout/eggs/zope.dottedname-3.4.2-py2.5.egg/zope/dottedname/resolve.py",
> line 32, in resolve
>     found = __import__(used)
>   File "//usr/lib/python2.5/site-packages/speechd_config/__init__.py", line
> 17, in <module>
>     from config import *
>   File "//usr/lib/python2.5/site-packages/speechd_config/config.py", line 28,
> in <module>
>     import paths
> zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
> "/home/jeff/Projects/grokwork/parts/app/site.zcml", line 4.0-4.30
>     ZopeXMLConfigurationError: File
> "/home/jeff/Projects/grokwork/src/grokwork/configure.zcml", line 4.2-4.37
>     ImportError: No module named paths
> 
> (module 'paths' is part of speechd and should not be touched by Grok)

Which grokproject + python did you use
and how did you start the created project ("$ bin/python bin/zopectl fg"
looks wrong to me)?

Installation and startup could go like:

$ virtualenv --no-site-packages envname
$ cd envname
$ source bin/activate
$ bin/easy_install grokproject
$ bin/grokproject projectname
$ cd projectname
$ bin/projectname-ctl fg
- -- or --
$ bin/paster serve parts/etc7deploy.ini

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

iD8DBQFKF9F9l0uAvQJUKVYRAnUxAKCYyFcqV7QZREMP5smAe6GihNECjQCgjazm
Fes5/OyaHw+X9+2jzlyv7uA=
=6b2/
-----END PGP SIGNATURE-----



More information about the Grok-dev mailing list