openbudgets / DAM

OBEU Data Analysis and Mining repository
3 stars 1 forks source link

Staging instructions are missing information #2

Closed larjohn closed 7 years ago

larjohn commented 7 years ago

It is not possible to install DAM in an Ubuntu VM.

Can you run it in an Ubuntu VM from start to end? There are dependences with wrong names. In addition, the algorithms dependences are required earlier.

HimmelStein commented 7 years ago

please check out staging_indigo branch, and follow the instructions there.

HimmelStein commented 7 years ago

https://github.com/openbudgets/DAM/tree/staging_indigo

larjohn commented 7 years ago

It seems to progress much better now. I am stuck at this:

(env) root@ubuntu:/opt/DAM# python3 manage.py runserver Traceback (most recent call last): File "manage.py", line 5, in from app import app, db File "/opt/DAM/app.py", line 7, in from worker import conn_dm File "/opt/DAM/worker.py", line 5, in import config File "/opt/DAM/config.py", line 5, in class Config(object): File "/opt/DAM/config.py", line 10, in Config SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] File "/opt/DAM/env/lib/python3.5/os.py", line 725, in getitem raise KeyError(key) from None KeyError: 'DATABASE_URL'

HimmelStein commented 7 years ago

DATABASE_URL is defined in the .env file so, before typing the command: make dam, type: source .env

larjohn commented 7 years ago

Now it does run, although it is not accessible outside the VM. Can you make it run at 0.0.0.0 instead of 127.0.0.1? Is there a config option for that?

HimmelStein commented 7 years ago

try: https://coderwall.com/p/yx23qw/access-your-virtualbox-guest-localhost-from-your-host-os

larjohn commented 7 years ago

Eventually, I provided --host 0.0.0.0 and it worked.

Can you document what is written here, into the README.md? Please, also fix the step 0, as it precedes the cloning of the repository, which is impossible.

HimmelStein commented 7 years ago

source .env is added to Makefile.

HimmelStein commented 7 years ago

README.md is updated. but, do not see the problem at step 0.

larjohn commented 7 years ago

Step 0: Install some tools, database, e.g. git, redis-server

`$ make step0

If one hasn't cloned the repository yet, what does make step0 do?

HimmelStein commented 7 years ago

the function of make step0 is to install some libraries on ubuntu system, such as git, python tools.

HimmelStein commented 7 years ago

@mlukasch can you install and test the staging_indigo branch at the fraunhofer server?

larjohn commented 7 years ago

the function of make step0 is to install some libraries on ubuntu system, such as git, python tools.

I see, but step0 means nothing to any operating system. step0 is only valid inside the DAM directory, AFTER you have cloned the repository. If you haven't yet cloned the repository, Makefile is not available so you can't do anything like that.

Other than that, one has to install make in a fresh Ubuntu installation to work with this command.

HimmelStein commented 7 years ago

ah definitely. updated now.