[Grok-dev] Re: latest grokproject produces " Error: Couldn't find a distribution for 'zope.app'. "

Craeg Strong cstrong at arielpartners.com
Sun Oct 14 21:58:37 EDT 2007


Problem solved!

The root cause for my troubles (as I understand it):
1) One or more python eggs in my system python lists "zope.app" as a 
dependency
2) There is no egg for "zope.app" available in the cheeseshop for 
easy_install to download

Perhaps it is because zope.app has now been broken down into its 
constituent parts, but I still have some older eggs that depend on it?
How did I get those older eggs?  Perhaps I typed "easy_install grok" by 
mistake sometime in the past, rather than using grokproject.
The end result is I seem to have lots of eggs in my system python 
site-package directory that probably don't need to be there-- they 
should rather be
located only in my local development "buildout-eggs" directory.

In any event, here is what I did in order to locate the offending eggs 
and fix them. 

1) become root
2) cd /usr/lib/python2.4/site-packages
3) find . -name requires.txt -exec grep -l zope.app$ {} \;
./zope.testbrowser-3.4dev_r73329-py2.4.egg/EGG-INFO/requires.txt
./zope.formlib-3.4dev_r73110-py2.4.egg/EGG-INFO/requires.txt
./zope.lifecycleevent-3.4dev_r72934-py2.4.egg/EGG-INFO/requires.txt
      Aha!  Now I know which packages need to be upgraded...
4) easy_install -U zope.testbrowser zope.formlib zope.lifecycleevent

Now grokproject works just fine.  I hope others may find this recipe 
helpful.
Regards,

--Craeg

Craeg Strong wrote:
> Greetings:
>
> I seem to be having a problem upgrading my existing project to grok 
> 0.10.1
> Can anyone give me any advice?  See error at the bottom of the 
> transcript below.
> I am going to blow everything away and start over, but I was hoping 
> for a cleaner way of upgrading.
>
> Thanks!
>
> --Craeg
>
> > easy_install -U grokproject
> Searching for grokproject
> Reading http://cheeseshop.python.org/pypi/grokproject/
> Reading https://launchpad.net/grok
> Reading http://cheeseshop.python.org/pypi/grokproject/0.6
> Best match: grokproject 0.6
> Downloading 
> http://pypi.python.org/packages/source/g/grokproject/grokproject-0.6.tar.gz#md5=b4901c46bcf1f0682c762506cdc76c47 
>
> Processing grokproject-0.6.tar.gz
> Running grokproject-0.6/setup.py -q bdist_egg --dist-dir 
> /tmp/easy_install-k2EYBi/grokproject-0.6/egg-dist-tmp-roJLKI
> Removing grokproject 0.5.1 from easy-install.pth file
> Adding grokproject 0.6 to easy-install.pth file
> Installing grokproject script to /usr/bin
>
> Installed /usr/lib/python2.4/site-packages/grokproject-0.6-py2.4.egg
> Processing dependencies for grokproject
>
> > grokproject Hermes
> Enter module (Name of a demo Python module placed into the package) 
> ['app.py']:
> Enter user (Name of an initial administrator user): admin
> Enter passwd (Password for the initial administrator user): admin
> Enter eggs_dir (Location where zc.buildout will look for and place 
> packages) ['/home/cstrong/buildout-eggs']: 
> /home/cstrong/ade/buildout-eggs/
> Replace 1914 bytes with 2292 bytes (26/57 lines changed; 12 lines added)
> Overwrite ./Hermes/buildout.cfg [y/n/d/B/?] y
> Replace 2087 bytes with 132 bytes (66/71 lines changed; 64 lines removed)
> Overwrite ./Hermes/src/hermes/app.py [y/n/d/B/?] n
> Replace 1088 bytes with 197 bytes (34/37 lines changed; 26 lines removed)
> Overwrite ./Hermes/src/hermes/app_templates/index.pt [y/n/d/B/?] n
> Replace 720 bytes with 751 bytes (0/34 lines changed; 1 lines added)
> Overwrite ./Hermes/src/hermes/ftesting.zcml [y/n/d/B/?] y
> Downloading zc.buildout...
> Invoking zc.buildout...
> Couldn't find index page for 'zope.app' (maybe misspelled?)
> While:
>  Installing.
>  Getting section i18n.
>  Initializing section i18n.
>  Installing recipe lovely.recipe.
>  Getting distribution for 'zope.app'.
> Error: Couldn't find a distribution for 'zope.app'.
>
>

-- 
Craeg K Strong, General Partner
Ariel Partners LLC
http://www.arielpartners.com
voice 917-992-0259
fax   413-541-7781

NOTICE: This message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any review,
retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than
the intended recipient is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all
copies -- including electronic copies -- of the original message.



More information about the Grok-dev mailing list