<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>I want to&nbsp;do some mapping application with zope.. but I have run into this problem over and over..</DIV>
<DIV>&nbsp;</DIV>
<DIV>in "Run Zope in Console"</DIV>
<DIV>Exception exceptions.AttributeError:"ShapeFile instance has no attribute 'thisown'" in&nbsp;&nbsp; &nbsp;&nbsp;ignored</DIV>
<DIV>&nbsp;</DIV>
<DIV>in web browser</DIV>
<DIV>
<H2>Site Error</H2>
<P>An error was encountered while publishing this resource. </P>
<P><STRONG>Error Type: IOError</STRONG><BR><STRONG>Error Value: new_ShapeFile failed</STRONG><BR></P>
<P>&nbsp;</P>
<P>I change some setting to my runzope.bat because I want zope to use python2.4.4 instead of the build 2.3.5 because I have install shapelib module(pyshapelib-0.3.win32-py2.4) which is the module I want to use for the import of my external methods. The runzope.bat looks like this:</P>
<P>@set PYTHON=<FONT color=#ff0000>C:\Python24\python.exe<BR></FONT>@set ZOPE_HOME=C:\web\Zope\Zope<BR>@set INSTANCE_HOME=C:\web\ZopeInstance<BR>@set SOFTWARE_HOME=C:\web\Zope\Zope\lib\python<BR>@set CONFIG_FILE=C:\web\ZopeInstance\etc\zope.conf<BR>@set PYTHONPATH=<FONT color=#ff0000>C:\Python24\Lib;</FONT>%INSTANCE_HOME%\lib\python;%SOFTWARE_HOME%;%PYTHONPATH%<BR>@set ZOPE_RUN=%SOFTWARE_HOME%\Zope2\Startup\run.py</P>
<P>"%PYTHON%" "%ZOPE_RUN%" -C "%CONFIG_FILE%" %1 %2 %3 %4 %5 %6 %7<BR></P>
<P>I made a very short python external method to test the shapelib module </P>
<P>&nbsp;</P>
<P>import shapelib, dbflib</P>
<P>def testShapeLib(self):<BR>&nbsp;&nbsp;&nbsp; f1 = shapelib.ShapeFile('C:\\web\\ZopeInstance\\taipei.shp') </P>
<P>&nbsp;</P>
<P>but all I get out of it is the above two errors</P>
<P>anyone have any idea what i'm do wrong with my settings or my code? any thought?</P></DIV></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>