Discussion:
[Community] rtree not loading correctly
Brian Burke
2012-01-28 06:10:09 UTC
Permalink
An HTML attachment was scrubbed...
URL: <http://lists.gispython.org/pipermail/community/attachments/20120127/b354d731/attachment.htm>
Howard Butler
2012-01-28 14:07:02 UTC
Permalink
Hi,
Python 2.7.2 |EPD 7.1-2 (64-bit)
Those DLLs were compiled 32-bit.

I can compile the 64-bit, but I wonder how we should package them so the right one gets loaded. Should we put both DLLs in the package and have the DLL loading ctypes code determine it is 64-bit and use the right one? Or should we just make 64-bit-only packages and depend on the user to pick the right one? Can easy_install support this too? I'm not much of a windows python user to know which way to go here, input appreciated...

Howard
Brian Burke
2012-01-28 15:52:01 UTC
Permalink
An HTML attachment was scrubbed...
URL: <http://lists.gispython.org/pipermail/community/attachments/20120128/c679c904/attachment.htm>
Brian Burke
2012-01-29 23:09:24 UTC
Permalink
I forgot to ask, will hte 64 bit version also contain the
libspatialindex package in 64 bit as well? Or will that be available
somewhere?
Thanks,
-Brian
Howard Butler
2012-01-30 22:40:10 UTC
Permalink
I forgot to ask, will hte 64 bit version also contain the libspatialindex package in 64 bit as well? Or will that be available somewhere?
Thanks,
It is libspatialindex that needs to be compiled 64-bit. Rtree is now just a ctypes wrapper over libspatialindex, and so there is no code inside of the Rtree library that needs to be compiled anymore.

I'll send you a DLL privately to confirm things are working before cooking up some more packaging.

Howard

Loading...