Thanks so much for the feedback and all your help diagnosing the problems! Hopefully this will help to clarify some steps.
Cheers, Lindsey On Wednesday, December 18, 2019 at 11:35:22 AM UTC-8, Adam Cox wrote: > > One other thing, the two "pip freeze" commands are not necessary in this > workflow. pip freeze outputs a list of all the Python libraries and their > versions that have been installed with pip. At the moment you are running > it here, it will just make a blank file called requirements.txt, because > you haven't yet installed any libraries with pip. So you can safely remove > those lines from your workflow. > > Again, thanks for putting this together. It's especially nice to have the > list of environment variable values shown like that, hopefully all of these > improvements will make it into the documentation very soon. > > Adam > > On Wed, Dec 18, 2019 at 1:23 PM Adam Cox <[email protected] <javascript:>> > wrote: > >> Hey Lindsey, really glad you put all of this together. I just wanted to >> point out that if you run >> >> python manage.py packages -o setup_db >> >> directly after the step you have to alter settings_local.py, then you do >> not need the extra steps of creating the database manually in psql and >> running the migrations: all of that is included in the setup_db command. As >> an aside, that command will be reconfigured in Arches 5 to simply be python >> manage.py setup_db (I'll make a ticket to document that change). So, the >> biggest change that must happen regarding the dev installation is the >> addition of that setup_db command. >> >> Also, I can confirm that GDAL 3 isn't compatible with Arches 4 >> <https://github.com/archesproject/arches-docs/issues/152>, as you found >> (this is a Django 1.11 issue that is solved in Django 2). Thanks for doing >> all the work to expose that problem. >> >> Adam >> >> On Wed, Dec 18, 2019 at 1:04 PM Lindsey Gant <[email protected] >> <javascript:>> wrote: >> >>> >>> Hi everyone, >>> >>> I have compiled a list of steps that I took to successfully complete a >>> developer installation of Arches 4.4.3 locally on my Windows 10 laptop. >>> Please note that these are not the recommended steps for installation; >>> these are the troubleshooting steps that I took to test the documented >>> developer installation steps, without fully deploying an Arches instance. >>> If you are using Windows OS, it is generally recommended to deploy >>> utilizing a Linux system. That said, these steps may be of assistance to >>> someone troubleshooting their own local test installation. If you encounter >>> other installation errors, be sure to post them to the Arches forum for >>> assistance from the community. >>> >>> For reference, the original developer installation documentation can be >>> found here. >>> <https://arches.readthedocs.io/en/stable/creating-a-development-environment/#creating-a-development-environment> >>> >>> -- >>> >>> *Install any Requirements and Dependencies >>> <https://arches.readthedocs.io/en/stable/requirements-and-dependencies/#>* >>> >>> *Confirm system environment variables* >>> >>> 1. >>> >>> GDAL_DATA = “C:\Program Files\PostgreSQL\9.6\gdal_data” >>> 2. >>> >>> Path: >>> 1. >>> >>> “C:\OSGeo4W64\bin” >>> 1. >>> >>> Important: move up to the top of the list of Path >>> environment variables >>> 2. >>> >>> C:\Program Files\nodejs\ >>> 3. >>> >>> C:\Program Files (x86)\Yarn\bin\ >>> 4. >>> >>> C:\Program Files\PostgreSQL\9.6\bin >>> 5. >>> >>> C:\Python27 >>> 6. >>> >>> C:\Python27\Scripts >>> >>> >>> *Test PostGres* >>> In command line: >>> >>> psql -U postgres >>> >>> Log-in with password >>> >>> >>> If unable to remember password: >>> http://www.homebrewandtechnology.com/blog/graphicallychangepostgresadminpassword >>> >>> >>> *Optional:* to test server >>> >>> CREATE DATABASE test; >>> \c test >>> CREATE EXTENSION postgis; >>> \q >>> >>> *Start ElasticSearch* >>> >>> Open ElasticSearch directory /bin/elasticsearch.bat >>> >>> Double click to start bacth file >>> >>> >>> *Open command line* >>> >>> >>> *Create a new directory for your project* >>> >>> mkdir archesproject && cd archesproject >>> >>> >>> *Create virtual environment* >>> >>> virtualenv ENV >>> ENV\Scripts\activate >>> >>> *Clone into Arches GitHub repository* >>> >>> git clone https://github.com/archesproject/arches.git >>> >>> *Checkout preferred branch and install requirements* >>> >>> cd arches >>> git checkout stable/4.4.3 >>> pip freeze >>> pip freeze > requirements.txt >>> pip install -e . >>> pip install -r arches/install/requirements.txt >>> pip install -r arches/install/requirements_dev.txt >>> cd .. >>> >>> *Create project* >>> >>> python ENV\Scripts\arches-project create my_project >>> cd my_project >>> >>> *Open settings_local.py in the my_project directory* >>> >>> >>> 1. Add: GDAL_LIBRARY_PATH = 'C/OSGeo4W64/bin/gdal300.dll' >>> 2. Note: GDAL 204 is the preferred GDAL version for Arches Version 4 >>> >>> *Create database for project (in command line)* >>> psql -U postgres >>> CREATE DATABASE my_project; >>> \c my_project >>> CREATE EXTENSION postgis; >>> \q >>> >>> *Note:* to delete database or extension (if already exists) >>> DROP EXTENSION postgis; >>> >>> *Setup Database* >>> python manage.py packages -o setub_db >>> >>> IF ERROR: "django.contrib.gis.geos.error.GEOSException: Could not parse >>> version info string "3.8.0-CAPI-1.13.1" >>> >>> 1. Edit this file: >>> my_project/ENV/Lib/site-packages/django/contrib/gis/geos/libgeos.py >>> 2. Look for this function: geos_version_info >>> 3. And change this line: ver = geos_version().decode() >>> 4. With this line: ver = geos_version().decode().split(' ')[0] >>> >>> NOTE: editing files in your Virtual Environment is not generally >>> recommended. This error may be attributed to using GDAL 3 instead of GDAL >>> 204. >>> >>> *Create package* >>> python manage.py packages -o create_package -d ..\my_package >>> >>> IF ERROR: ”django.db.utils.ProgrammingError: relation "graphs" does not >>> exist” >>> python manage.py makemigrations >>> python manage.py migrate >>> >>> *Run server* >>> python manage.py runserver >>> >>> Open link: http://127.0.0.1:8000/ >>> Chrome browser is supported >>> To quit server: CTL-BREAK or CTL-C >>> >>> >>> -- >>> -- To post, send email to [email protected] <javascript:>. To >>> unsubscribe, send email to [email protected] <javascript:>. >>> 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] <javascript:>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/archesproject/a8dae50d-35c8-453f-b3d0-925a56716f6f%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/archesproject/a8dae50d-35c8-453f-b3d0-925a56716f6f%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/archesproject/394f09e0-6ac3-472b-b46e-31d805c86b4b%40googlegroups.com.
