Hi Everyone, If you read the docs on installing the Windows dependencies, you'll notice that we mention this very thing.
https://arches3.readthedocs.org/en/latest/installing-dependencies-windows/?highlight=python#install-python-2-7-6 I just mention this because it really is important to read the docs carefully and not skip any sections. Cheers, Alexei Director of Web Development - Farallon Geographics, Inc. - 971.227.3173 On Mon, Nov 9, 2015 at 10:56 AM, Adam Cox <[email protected]> wrote: > Hello all, I want to make an update on this error, which is described > already in these two threads: > > https://groups.google.com/forum/#!searchin/archesproject/win32/archesproject/vDa04wCbKY4/H6AvwL0hOVoJ > > https://groups.google.com/forum/#!searchin/archesproject/win32/archesproject/j3IRReGnrTA/2ia5P0m0_BsJ > > I was installing arches on my Windows 7 system, and ran into this same > problem when trying run the elasticsearch setup command (exactly as > described by NHB Heritage in the second thread listed above). > (...) > File > "C:\Arches\ENV\lib\site-packages\django\contrib\gis\gdal\prototypes\ds.py", > line 8, in <module> from django.contrib.gis.gdal.libgdal import lgdal > File > "C:\Arches\ENV\lib\site-packages\django\contrib\gis\gdal\libgdal.py", line > 47, in <module> lgdal = CDLL(lib_path) > File "C:\Python27\Lib\ctypes\__init__.py", line 365, in > __init__self._handle = _dlopen(self._name, mode) WindowsError: [Error 193] > %1 is not a valid Win32 application > > I reinstalled GDAL and made sure that the GDAL_LIBRARY_PATH setting was > correct in settings.py. Still got this same error. > > Turns out, the real problem was that I was using Python 2.7.8 instead of > 2.7.6, and that was actually causing this error. Once I installed the > correct version of Python (which I get from here > <https://www.python.org/download/releases/2.7.6/>), and recreated my > virtual environment, I was able to get past this error. > > Also, at first I forgot to re-add the GDAL_LIBRARY_PATH to my > settings.py, and I got the following error (just for future reference): > (...) > File > "K:\arches\local\arches_env\lib\site-packages\arches\app\utils\data_management\resources\formats\shpfile.py", > line 5, in <module> > from django.contrib.gis.gdal import DataSource > ImportError: cannot import name DataSource > > To make everything clean, I reinstalled postgres (9.3.10) and postgis > (2.2), and used stackbuilder (comes with postgres) to create the postgis > template. Everything works fine now. > > Adam > > -- > -- To post, send email to [email protected]. To unsubscribe, > send email to [email protected]. For more > information, visit https://groups.google.com/d/forum/archesproject?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Arches Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- To post, send email to [email protected]. To unsubscribe, send email to [email protected]. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups "Arches Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
