Thanks Adam, it seems everything is ok for now. Best regards
On Wednesday, April 19, 2017 at 7:11:46 PM UTC+3, Adam Cox wrote: > > Hi Vencislav, first, note that the ubuntu dependency install script should > take care of GEOS and GDAL, however, it sounds like the steps you took did > not cause any problems. Also, looks like it takes care of virtualenv as > well. > > Anyway, as for your final error, it's only because you are not quite > done... I moved a few basic database setup commands to the next section of > that guide, however, it seems like I should put setup_db into the end of > the documentation section that you have been working with. At any rate, all > of your installation steps look good, and by the way, thanks for listing > them so clearly! > > So to finish up, just follow this final section. > > > https://github.com/archesproject/arches/wiki/Developer-Installation#getting-started > > Hope that works! > > Adam > > On Wed, Apr 19, 2017 at 10:56 AM, Vencislav Pirinski <[email protected] > <javascript:>> wrote: > >> >> Hello, >> >> I am having trouble installing correctly arches v4. I have tried two times, >> but in both cases some errors arise. >> That is why i am posting my entire actions step by step on a completely new >> installation of Ubuntu 16.04, dedicated for arches. >> I will describe my every action in detail, so it will be easier to see >> mistakes and to help others which having trouble installing arches. >> >> I follow the Developers Installation guide from github. >> >> So I start by making a folder "Projects" in my home directory. There I copy >> the script "ubuntu_xenial_setup.sh" from >> https://github.com/archesproject/arches/tree/master/arches/install. >> Then I use chmod to deal with the permissions: >> >> chmod +x ubuntu_xenial_setup.sh >> >> Then I run the script, saying yes to all packages, here is the output: >> >> https://gist.github.com/vpirinski/703ece640bcd833d3b8c8e0a012752b4 >> >> No errors at all, only some warnings are reported: >> >> Processing triggers for libc-bin (2.23-0ubuntu5) ... >> ALTER ROLE >> WARNING: nonstandard use of escape in a string literal >> LINE 5: '[\(\)]', '', 'g' >> ^ >> HINT: Use the escape string syntax for escapes, e.g., E'\r\n'. >> QUERY: >> SELECT >> regexp_replace( >> split_part(s.consrc, ' = ', 2), >> '[\(\)]', '', 'g' >> )::integer >> FROM pg_class c, pg_namespace n, pg_attribute a, pg_constraint s >> WHERE n.nspname = $1 >> AND c.relname = $2 >> AND a.attname = $3 >> AND a.attrelid = c.oid >> AND s.connamespace = n.oid >> AND s.conrelid = c.oid >> AND a.attnum = ANY (s.conkey) >> AND s.consrc LIKE '%st_srid(% = %'; >> >> WARNING: nonstandard use of escape in a string literal >> LINE 11: '[ ''''\(\)]', '', 'g' >> ^ >> >> ...................................................................... >> Warnings as the above are repeated about 10 times >> .............................................................. >> >> ^ >> HINT: Use the escape string syntax for escapes, e.g., E'\r\n'. >> QUERY: >> SELECT >> trim( >> both '''' from split_part( >> regexp_replace( >> split_part(s.consrc, ' = ', 2), >> '[\(\)]', '', 'g' >> ), >> '::', 1 >> ) >> )::boolean[] >> FROM pg_class c, pg_namespace n, pg_attribute a, pg_constraint s >> WHERE n.nspname = $1 >> AND c.relname = $2 >> AND a.attname = $3 >> AND a.attrelid = c.oid >> AND s.connamespace = n.oid >> AND s.conrelid = c.oid >> AND a.attnum = ANY (s.conkey) >> AND s.consrc LIKE '%_raster_constraint_out_db(%'; >> >> CREATE EXTENSION >> GRANT >> GRANT >> GRANT >> >> I ignore the warnings and continue. Here i assume PostgreSQL 9.6, PostGIS >> 2.3, Bower and JDK are installed correctly. >> >> Ubuntu 16.04 comes with Python 2.7.12 and "pip", so no installation needed. >> >> Next I install git: >> >> sudo apt install git >> >> Next in the list is GEOS and GDAL, no link is given, so I used this article: >> https://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu . >> >> *I don't know if this method is a good one, please make an advice.* >> >> As described, I need some dependencies, so use this command: >> >> sudo apt-get install \ build-essential \ flex make bison gcc libgcc1 g++ >> cmake ccache \ python python-dev \ python-opengl \ python-wxversion >> python-wxtools python-wxgtk3.0 \ python-dateutil libgsl-dev python-numpy \ >> wx3.0-headers wx-common libwxgtk3.0-dev \ libwxbase3.0-dev \ libncurses5-dev >> \ zlib1g-dev gettext \ libtiff5-dev libpnglite-dev \ libcairo2 libcairo2-dev >> \ sqlite3 libsqlite3-dev \ libpq-dev \ libreadline6 libreadline6-dev >> libfreetype6-dev \ libfftw3-3 libfftw3-dev \ libboost-thread-dev >> libboost-program-options-dev liblas-c-dev \ resolvconf \ libjasper-dev \ >> subversion \ libav-tools libavutil-dev ffmpeg2theora \ >> libffmpegthumbnailer-dev \ libavcodec-dev \ libxmu-dev \ libavformat-dev >> libswscale-dev \ checkinstall \ libglu1-mesa-dev libxmu-dev \ ghostscript >> >> Everything installs correctly. The output: >> https://gist.github.com/vpirinski/48178bcfd2b77cb7497d7095d5d3ed99 >> >> So i continue installing GEOS: >> >> sudo apt-get install libgeos-dev >> >> The version of "libgeos-dev" is 3.5.1. The output: >> https://gist.github.com/vpirinski/d3df3056ce8c7a1b6d45b627506ecf79 >> >> Then I install GADL: >> >> sudo apt-get install libgdal-dev >> >> The version of "libgdal-dev" is 2.1.3. The output: >> https://gist.github.com/vpirinski/f40d3abfb5537287fc160b67c9a3427a >> >> The article continues with the installation of Python GDAL bindings and GDAL >> executables, so i decided to install that too: >> >> sudo apt-get install python-gdal gdal-bin >> >> The output: >> https://gist.github.com/vpirinski/81eed6aa5698820bdfb7103e043c579d >> >> I assume this has installed all GEOS and GDAL packages. *Please comment if >> this is correct.* >> >> As I haven't installed arches yet, Elasticsearch package will have to wait. >> (The guide is making you think that elasticsearch needs to be installed >> prier of installing arches, which is not true?) >> >> I decided to skip Mapnik for now, because of 2 reasons, first, it is not >> vital for the installation and second, in one of the installation attempts >> it gave errors with the database. >> >> >> So I assume that now I have all the dependencies installed and I am ready to >> install arches. >> >> >> I clone the arches repo: >> >> git clone https://github.com/archesproject/arches.git >> >> Output: >> >> Cloning into 'arches'... >> remote: Counting objects: 48625, done. >> remote: Compressing objects: 100% (41/41), done. >> remote: Total 48625 (delta 22), reused 0 (delta 0), pack-reused 48584 >> Receiving objects: 100% (48625/48625), 76.31 MiB | 2.51 MiB/s, done. >> Resolving deltas: 100% (37510/37510), done. >> Checking connectivity... done. >> >> and then install "virtualenv": >> >> pip install virtualenv==15.1.0 >> >> Output: >> Collecting virtualenv==15.1.0 >> Downloading virtualenv-15.1.0-py2.py3-none-any.whl (1.8MB) >> 100% |████████████████████████████████| 1.8MB 878kB/s >> Installing collected packages: virtualenv >> Successfully installed virtualenv-13.1.2 >> You are using pip version 8.1.1, however version 9.0.1 is available. >> You should consider upgrading via the 'pip install --upgrade pip' command. >> >> >> *I skiped upgrading pip, but should I have done it?* >> Then: >> >> virtualenv ENV >> >> Output: >> >> New python executable in /home/flame/Projects/ENV/bin/python >> Installing setuptools, pip, wheel...done. >> >> I install "curl" as it is going to be needed: >> >> sudo apt install curl >> >> Then I do: >> >> source ENV/bin/activate >> >> ENV is activated: >> (ENV) flame@flame-pc:~/Projects$ >> >> In the ENV I do: >> >> cd arches/arches >> curl >> https://gist.githubusercontent.com/mradamcox/13eb4f5b4455e59340c8cefe48625505/raw >> -o settings_local.py >> >> Output: >> >> % Total % Received % Xferd Average Speed Time Time Time Current >> Dload Upload Total Spent Left Speed >> 100 902 100 902 0 0 1890 0 --:--:-- --:--:-- --:--:-- 1890 >> >> Then the only thing I edit in settings_local.py is to add the API key for >> Mapbox. >> >> I install "libffi-dev" as it is going to be needed: >> sudo apt install libffi-dev >> >> Then I do: >> bower install >> >> Outout: https://gist.github.com/vpirinski/4918ea15d79fae000d0016114a8ef4f8 >> >> There are some packages with warnings/errors like "invalid-meta", >> "mismatch", "deprecated", "extra-resolution". >> *Is this a problem?* >> Then I do: >> python setup.py install >> >> Output:(not full as it surpased terminal cache) >> https://gist.github.com/vpirinski/0cc15b663aee29830d9f97dfcc1a22d3 >> >> I didn't find any errors. >> >> Lastly I do: >> python setup.py develop >> >> Output: >> >> running develop >> running egg_info >> writing arches.egg-info/PKG-INFO >> writing top-level names to arches.egg-info/top_level.txt >> writing dependency_links to arches.egg-info/dependency_links.txt >> reading manifest file 'arches.egg-info/SOURCES.txt' >> reading manifest template 'MANIFEST.in' >> warning: no previously-included files found matching 'arches/logs/*.txt' >> warning: no previously-included files matching '*' found under directory >> 'virtualenv' >> warning: no previously-included files matching '*' found under directory >> 'arches/elasticsearch' >> warning: no previously-included files matching '*' found under directory >> 'arches/uploadedfiles' >> warning: no previously-included files matching '*.log' found anywhere in >> distribution >> warning: no previously-included files matching '*.zip' found anywhere in >> distribution >> warning: no previously-included files matching '*.DS_Store' found anywhere >> in distribution >> warning: no previously-included files matching '*.orig' found anywhere in >> distribution >> writing manifest file 'arches.egg-info/SOURCES.txt' >> running build_ext >> Creating >> /home/flame/Projects/ENV/lib/python2.7/site-packages/arches.egg-link (link >> to .) >> Adding arches 4.0b3 to easy-install.pth file >> Installing arches-project script to /home/flame/Projects/ENV/bin >> >> Installed /home/flame/Projects/arches >> Processing dependencies for arches==4.0b3 >> Finished processing dependencies for arches==4.0b3 >> >> Some warnings reported. >> >> Then I install elasticsearch in "~Projects/arches/" (while ENV is activated) >> with this command: >> python manage.py es install >> >> No errors reported. I start elasticsearch and on 9200 everything is ok. >> >> Work in progres... >> >> Then I start the python server and it gives error with the database: >> >> Performing system checks... >> >> System check identified no issues (0 silenced). >> Unhandled exception in thread started by <function wrapper at 0x7fc3773dac08> >> Traceback (most recent call last): >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/django/utils/autoreload.py", >> line 226, in wrapper >> fn(*args, **kwargs) >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", >> line 117, in inner_run >> self.check_migrations() >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", >> line 163, in check_migrations >> executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS]) >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/django/db/migrations/executor.py", >> line 20, in __init__ >> self.loader = MigrationLoader(self.connection) >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/django/db/migrations/loader.py", >> line 49, in __init__ >> self.build_graph() >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/django/db/migrations/loader.py", >> line 176, in build_graph >> self.applied_migrations = recorder.applied_migrations() >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/django/db/migrations/recorder.py", >> line 65, in applied_migrations >> self.ensure_schema() >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/django/db/migrations/recorder.py", >> line 52, in ensure_schema >> if self.Migration._meta.db_table in >> self.connection.introspection.table_names(self.connection.cursor()): >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/django/db/backends/base/base.py", >> line 231, in cursor >> cursor = self.make_debug_cursor(self._cursor()) >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/django/db/backends/base/base.py", >> line 204, in _cursor >> self.ensure_connection() >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/django/db/backends/base/base.py", >> line 199, in ensure_connection >> self.connect() >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/django/db/utils.py", >> line 95, in __exit__ >> six.reraise(dj_exc_type, dj_exc_value, traceback) >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/django/db/backends/base/base.py", >> line 199, in ensure_connection >> self.connect() >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/django/db/backends/base/base.py", >> line 171, in connect >> self.connection = self.get_new_connection(conn_params) >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/django/db/backends/postgresql/base.py", >> line 175, in get_new_connection >> connection = Database.connect(**conn_params) >> File >> "/home/flame/Projects/ENV/local/lib/python2.7/site-packages/psycopg2/__init__.py", >> line 164, in connect >> conn = _connect(dsn, connection_factory=connection_factory, async=async) >> django.db.utils.OperationalError: FATAL: database "arches" does not exist >> >> The first time i installed it didn't make that error. >> >> -- >> -- 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:>. >> 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.
