I was getting the same "126" error on a windows 64 box. Only solution I found was a fresh install of everything..including python 2.7 for 32...along with shapely, proj, etc.
Sent from my iPhon On Apr 9, 2014, at 6:53 AM, "Harasty, Daniel J" <dhara...@appcomsci.com> wrote: > I’m also still stumped by a geos.dll loading problem, which I haven’t been > able to resolve. > > I repost this now (originally sent last summer, but got no replies) since Ari > Simmons is having some sort of geos.dll loading problem. > > Our problems may or may not be related, as his post did not mention Apache > WSGI. > > Anyone have any ideas? > > Regards, > Dan > > > From: Harasty, Daniel J > Sent: Tuesday, July 16, 2013 11:03 AM > To: 'community@lists.gispython.org' > Subject: trouble with Shapely in Apache under WSGI > > I realize that – strictly speaking – this is probably not a bug in Shapely, > but I would appreciate any advice. > > I’d like to use Shapely in this environment: > > · In a Python script implementing a WSGI application > · Deployed on Windows behind Apache httpd 2.x > > Alas, I get this error logged by Apache: > > · WindowsError: [Error 126] The specified module could not be found > > The traceback reveals a problem loading the “geos_c.dll”: > > File "C:\\Python\\Python26\\lib\\site-packages\\shapely\\geos.py", line 76, > in <module> > _lgeos = CDLL("geos_c.dll") # DJH > File "C:\\Python\\Python26\\lib\\ctypes\\__init__.py", line 354, in __init__ > self._handle = _dlopen(self._name, mode) > > This is thrown immediately upon “import shapely.wkb”, or any other Shapely > library that imports shapely.geos. > > This has the smell of some sort of “path problem”, but I have fiddled with > every possible PATH and PYTHONPATH setting both inside and outside of Apache. > > I can repeat this in a diminutive app (not only my larger application), which > shows that even loading nothing else, I can trip this error. I’d be willing > to post/share my sample code and fragment from my Apache conf… but you’d have > to already have some familiarity with Apache and Python WSGI on Windows for > it to mean much. > > Note that calling similar script (using Shapely) as a CGI (behind Apache) > work fine. So this sounds like a DLL loading problem peculiar to > Windows+Apache+mod_wsgi. (Not a Shapely or geos_c.dll bug, per se.) > However, none of my other Python+WSGI+Window+Apache scripts are having the > same problem. > > Any advice? > > Thanks, > > Dan Harasty > dhara...@appcomsci.com > >
_______________________________________________ Community mailing list Community@lists.gispython.org http://lists.gispython.org/mailman/listinfo/community