[Grok-dev] How do I troubleshoot missing packages?
Darryl Cousins
darryl at darrylcousins.net.nz
Mon Jun 25 07:25:19 EDT 2007
Hey,
On Mon, 2007-06-25 at 13:15 +0200, Sebastian Ware wrote:
> I removed the directory and then ran buildout again. Now it is found
> and the error has disappeared. I can imagine two possible causes of
> this.
Buildouts usually add in the system path requirements in the `run`
script. This run script might be parts/instance/bin/runzope or in the
bin/ directory (eg as in bin/test, or bin/demo for the z3c.formdemo egg
buildout). If you manually built the directory the script was probably
missing the inclusion of the hurry egg. When you rebuilt (ran buildout)
this would have been correctly included.
Be cautious (or better - don't do it) about naming directories with a
space.
Hope this helps.
Regards,
Darryl
> -I manually copied the hurry.query egg from the Grokstar project in
> the first place (maybe you always should let buildout fetch it)
> -I changed the name of my root directory from "Grok Projects" to
> "GrokProjects" (this however didn't affect the Grokstar project)
>
> I don't know if this is a bug, a feature or just a freak
> coincidence... :)
>
> Mvh Sebastian
>
> 25 jun 2007 kl. 12.16 skrev Sebastian Ware:
>
> > What steps do I take to troubleshoot missing packages. I am trying...
> >
> > from hurry.query.query import Query
> >
> > ...and I have hurry.query-0.9.2-py2.4.egg in my eggs directory (I
> > have tried to copy the Grokstar project). Unfortunately I get...
> >
> > ImportError: No module named hurry.query.query
> >
> > ...and I am a bit confused as to where to look for possible errors.
> >
> > File "/Users/sebastianware/GrokProjects/ProtonCMS/src/protoncms/
> > app.py", line 7, in ?
> > from hurry.query.query import Query
> > zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/
> > Users/sebastianware/GrokProjects/ProtonCMS/parts/instance/etc/
> > site.zcml", line 7.2-7.55
> > ZopeXMLConfigurationError: File "/Users/sebastianware/
> > GrokProjects/ProtonCMS/parts/instance/etc/package-includes/022-
> > protoncms-configure.zcml", line 1.0-1.53
> > ZopeXMLConfigurationError: File "/Users/sebastianware/
> > GrokProjects/ProtonCMS/src/protoncms/configure.zcml", line 4.2-4.22
> > ImportError: No module named hurry.query.query
> >
> >
> > Mvh Sebastian
> >
> > _______________________________________________
> > Grok-dev mailing list
> > Grok-dev at zope.org
> > http://mail.zope.org/mailman/listinfo/grok-dev
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
More information about the Grok-dev
mailing list