Sorry, when I saw "DLL", I assumed you were speaking of Windows. Not only do you have to have libgeos_c.so and libgeos-3.2.2.so, they must be installed where ctypes can find them. See:
http://github.com/sgillies/shapely/blob/master/shapely/geos.py#L28 Unless they're in your application's library path, you may need to monkey patch that module to specify a different path. Cheers, On Mon, Aug 23, 2010 at 6:46 AM, Ludovic Granjon <[email protected]> wrote: > Thanks for your answer > But for the moment I try to deploy my script on linux, I'm not sure if to > need a dll ? In the repertory of the deployment I have libgeos-3.2.2.so and > libgeos_c.so, do you think that I need others libraries ? > Thanks > > PS : I look your link Sean > > 2010/8/23 Sean Gillies <[email protected]> >> >> On Mon, Aug 23, 2010 at 3:49 AM, Didrik Pinte <[email protected]> >> wrote: >> > Le 23/08/2010 11:46, Ludovic Granjon a écrit : >> >> >> >> Thank you Didrik >> >> >> >> You are probably right, but how can I include geos ? >> >> For example, my setup.py for cx_freeze is : >> >> >> >> from cx_Freeze import setup, Executable >> >> >> >> executables = [ >> >> Executable("ana.py")] >> >> >> >> buildOptions = dict( >> >> compressed = True, >> >> includes = ["shapely"]) >> >> >> >> setup( >> >> name = "ana_test", >> >> version = "0.1", >> >> description = "test", >> >> options = dict(build_exe = buildOptions), >> >> executables = executables) >> >> >> >> After build, in library.zip I have a shapely directory with a geos.pyc >> >> file. >> >> Is that I miss something ? >> > >> > Yes, you should have a geos.dll file. I do not remember where that one >> > is >> > stored but for hydroplatform, using bbfreeze, I had to automate the >> > process >> > of adding this file after the freeze. >> > >> > -- Didrik >> > >> >> Shapely's Windows installers include a GEOS DLL and distutils copies >> it to your Python's DLLs directory. See >> >> http://github.com/sgillies/shapely/blob/master/setup.py >> >> I don't have any experience with cx_Freeze, but maybe it can take it from >> there? >>
