[Community] Unable to load a datastore

Vaishal Sheth vpsheth at gmail.com
Thu Dec 1 23:56:11 EET 2005


When I do that, I get the error "Data store is improperly configured:
'NoneType' object has no attribute 'ExportToWkt'" Does that imply that it
can at least read the shapefile and hence the issue is not with the
permissions? because both world_borders.shp and .ovf reside in the same
folder.


On 12/1/05, Josh Livni <josh at livniconsulting.com> wrote:
>
> Try replace in the zco datastore with world_borders.shp (or whatever the
> ovf refers to).
>
> Does that help?
>
>   -Josh
>
> Vaishal Sheth wrote:
> > Kai,
> >
> > Thanks for the quick response.  Yes, I can access the file and print
> > it's contents from the python interpreter. So, any ideas where else
> > the error might be?
> >
> > Vaishal
> >
> > On 12/1/05, *Kai Hänninen* <kai.hanninen at mbconcert.fi
> > <mailto:kai.hanninen at mbconcert.fi>> wrote:
> >
> >     to, 2005-12-01 kello 15:45 -0500, Vaishal Sheth kirjoitti:
> >     > Hello list,
> >     >
> >     > A while ago, I succeeded in installing PrimaGIS 0.4 with PCL 0.9and
> >     > ZCO 0.6 along with a lot of help from the community.  Now I am
> >     trying
> >     > to reproduce the installation on another machine and am strangely
> >     > getting a datastore error.  The error log shows
> >     >
> >     > Traceback (most recent call last):
> >     >   File "C:\Program Files\Plone 2\Zope\lib\python\ZPublisher
> >     > \Publish.py", line 101, in publish
> >     >     request, bind=1)
> >     >   File "C:\Program Files\Plone 2\Zope\lib\python\ZPublisher
> >     > \mapply.py", line 88, in mapply
> >     >     if debug is not None: return debug(object,args,context)
> >     >   File "C:\Program Files\Plone 2\Zope\lib\python\ZPublisher
> >     > \Publish.py", line 39, in call_object
> >     >     result=apply(object,args) # Type s<cr> to step into published
> >     > object.
> >     >   File "C:\Program Files\Plone
> >     2\Data\Products\PrimaGIS\PrimaGIS.py",
> >     > line 171, in view
> >     >     bgcolor = maprenderer.getProperty('pg-bgcolor', '#ffffff'))
> >     >   File "C:\Program Files\Plone
> 2\Data\Products\ZCO\MapRenderer.py",
> >     > line 162, in render
> >     >     layering.append((layer.layer(), style.style()))
> >     >   File "C:\Program Files\Plone 2\Data\Products\ZCO\Layer.py",
> >     line 75,
> >     > in layer
> >     >     store = self.getDataStore ().datastore()
> >     >   File "C:\Program Files\Plone
> >     2\Data\Products\ZCO\DataStore.py", line
> >     > 130, in datastore
> >     >     store = disk.DiskFeatureStore(self.path)
> >     >   File "C:\Program Files\Plone
> >     2\Python\lib\site-packages\cartography
> >     > \data\disk.py", line 62, in __init__
> >     >     raise Exception, "Cannot access %s" % (path)
> >     > Exception: Cannot access c:\gis\world_borders.ovf
> >     >
> >     > I have read/write permissions to the c:\gis folder.  Any ideas?
> >
> >     Does running the following in the same python interpreter that your
> >     Plone system is using work?
> >
> >     >>> print open("c:\gis\world_borders.ovf").read()
> >
> >     It should print out the contents of the file. If it does, than at
> >     least
> >     your python is able to access the file and the error must be
> somewhere
> >     else. Otherwise double-check your access rights and the path.
> >
> >
> >     cheers,
> >     Kai
> >
> >     --
> >     Kai Hänninen                  mobile:+358-44-541 9567
> >     Software engineer             www.mbconcert.fi
> >     <http://www.mbconcert.fi>
> >     MB Concert Ky                 kai.hanninen at mbconcert.fi
> >     <mailto:kai.hanninen at mbconcert.fi>
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Community mailing list
> > Community at lists.gispython.org
> > http://lists.gispython.org/mailman/listinfo/community
> >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gispython.org/pipermail/community/attachments/20051201/fb09cb07/attachment.htm>


More information about the Community mailing list