[Community] Help installing ZCO/PrimaGIS
Anders Avlesen
anders.avlesen at ntnu.no
Wed Jan 11 17:48:15 EET 2006
Sean Gillies skrev:
> On Jan 10, 2006, at 11:35 AM, Matthew Perry wrote:
>
>> Thanks for the input. Unfortunately Zope is still not picking up ZCO
>> or PrimaGIS. I'll respond to the specifics inline...
>>
>> On 1/10/06, Kai Hänninen <kai.hanninen at mbconcert.fi> wrote:
>>
>>> Is /var/lib/zope2.8/instance/plone-site/Products the directory
>>> where the
>>> other Zope/Plone products are also located or does it just contain ZCO
>>> and PrimaGIS?
>>
>>
>> Yes. In the ZMI control panel I see
>> /var/lib/zope2.8/instance/plone-site listed as my INSTANCE_HOME.
>> $INSTANCE_HOME/Products is also where my ZCO and PrimaGIS are living.
>>
>>> If the answer is yes to the latter, then you should check
>>> your zope.conf (probably
>>> at /var/lib/zope2.8/instance/plone-site/etc/zope.conf) and look for a
>>> line that defines the location of the products directory, something
>>> like
>>>
>>> products /path/to/products
>>>
>>> to see whether /var/lib/zope2.8/instance/plone-site/Products is
>>> defined
>>> there. Zope should by default read the "Products" directory within
>>> your
>>> instance home, but you could try adding your directory explicitly,
>>> e.g.
>>>
>>> products /var/lib/zope2.8/instance/plone-site/Products
>>
>>
>> That should be the default but I tried setting it explicitly with the
>> same results.
>>
>> I also tried moving ZCO and PrimaGIS to a seperate directory and
>> defining "products /home/perry/zope_products" .. again the products
>> aren't recognized. Just to make sure it wasn't a permissions thing, I
>> chmoded the directory to 777 but it didn't seem to affect anything.
>>
>>>
>>> Another thing you can try is running Zope with the "runzope" script to
>>> see if it gives any additional information about (not) finding the
>>> products.
>>>
>>> /var/lib/zope2.8/instance/plone-site/bin/runzope
>>
>>
>> The output of runzope doesn't mention anything about PrimaGIS or ZCO
>> so I don't think its even trying to load them.
>>
>> Well I'll keep trying after I get home from work tonight. Let me know
>> if there are any new insights.
>
>
> Matt,
>
> Nothing about them in the logs? I'm stumped. You've extracted the
> tarballs, yes? Zope should be executing code in instance/plone-site/
> Products/ZCO/__init__.py and .../Products/PrimaGIS/__init__.py, and
> errors should be output to the site event.log in the filesystem.
>
> If this isn't happening, something is very wrong.
>
> Sean
>
> ---
> Sean Gillies
> sgillies at frii dot com
> http://zcologia.com/news
>
>
>
> _______________________________________________
> Community mailing list
> Community at lists.gispython.org
> http://lists.gispython.org/mailman/listinfo/community
Hi!
I'm not sure if this helps, but for me the trick to install PrimaGIS
successfully was to make sure that PCL is installed properly. To check
this I ran
query.py from the PCL examples manually in a python shell (You need to
edit paths in query.py first). If this worked, everything else would
also work. If it did not, ZCO would not
be available through Zope.
Anders Avlesen
More information about the Community
mailing list