{"action":"opened","issue":{"url":"https://api.github.com/repos/DataViva/dataviva-site/issues/346","labels_url":"https://api.github.com/repos/DataViva/dataviva-site/issues/346/labels{/name}","comments_url":"https://api.github.com/repos/DataViva/dataviva-site/issues/346/comments","events_url":"https://api.github.com/repos/DataViva/dataviva-site/issues/346/events","html_url":"https://github.com/DataViva/dataviva-site/issues/346","id":113617545,"number":346,"title":"Error replicate dataviva installation","user":{"login":"poliveiraIPB","id":14893611,"avatar_url":"https://avatars.githubusercontent.com/u/14893611?v=3","gravatar_id":"","url":"https://api.github.com/users/poliveiraIPB","html_url":"https://github.com/poliveiraIPB","followers_url":"https://api.github.com/users/poliveiraIPB/followers","following_url":"https://api.github.com/users/poliveiraIPB/following{/other_user}","gists_url":"https://api.github.com/users/poliveiraIPB/gists{/gist_id}","starred_url":"https://api.github.com/users/poliveiraIPB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poliveiraIPB/subscriptions","organizations_url":"https://api.github.com/users/poliveiraIPB/orgs","repos_url":"https://api.github.com/users/poliveiraIPB/repos","events_url":"https://api.github.com/users/poliveiraIPB/events{/privacy}","received_events_url":"https://api.github.com/users/poliveiraIPB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-27T15:56:15Z","updated_at":"2015-10-27T15:56:15Z","closed_at":null,"body":"Hi, i´m triyng to install the platform locally., and after following all the readme instructions. When I try to start the server using the command \"python run.py runserver\", i receive the error:\r\n\r\n\"2015-10-27 14:55:38,250 INFO sqlalchemy.engine.base.Engine SELECT DATABASE()\r\n2015-10-27 14:55:38,250 INFO sqlalchemy.engine.base.Engine ()\r\n2015-10-27 14:55:38,253 INFO sqlalchemy.engine.base.Engine SHOW VARIABLES LIKE 'character_set%%'\r\n2015-10-27 14:55:38,253 INFO sqlalchemy.engine.base.Engine ()\r\n2015-10-27 14:55:38,254 INFO sqlalchemy.engine.base.Engine SHOW VARIABLES LIKE 'sql_mode'\r\n2015-10-27 14:55:38,254 INFO sqlalchemy.engine.base.Engine ()\r\n2015-10-27 14:55:38,255 INFO sqlalchemy.engine.base.Engine BEGIN (implicit)\r\n2015-10-27 14:55:38,256 INFO sqlalchemy.engine.base.Engine SELECT ei_yms.year AS ei_yms_year \r\nFROM ei_yms ORDER BY ei_yms.year DESC \r\n LIMIT %s\r\n2015-10-27 14:55:38,256 INFO sqlalchemy.engine.base.Engine (1,)\r\nTraceback (most recent call last):\r\n  File \"run.py\", line 1, in <module>\r\n    from dataviva import app\r\n  File \"/home/cipweb/dataviva/dataviva/__init__.py\", line 65, in <module>\r\n    __year_range__ = get_or_set_years(view_cache, \"general:data_years\")\r\n  File \"/home/cipweb/dataviva/dataviva/stats/util.py\", line 73, in get_or_set_years\r\n    val = compute_table_years(['ei', 'hedu', 'sc', 'secex', 'rais', 'population', 'stats'])\r\n  File \"/home/cipweb/dataviva/dataviva/stats/util.py\", line 60, in compute_table_years\r\n    max_year = str(get_year(tables[dataset], mode='max'))\r\n  File \"/home/cipweb/dataviva/dataviva/stats/util.py\", line 38, in get_year\r\n    return table.query.with_entities(table.year).order_by(year_col).first().year\r\nAttributeError: 'NoneType' object has no attribute 'year'\"\r\n\r\nI unnderstand this error is because the ei tables of the database are empty. But the dump in the readme file don´t have these tables. I create the tables using the script present in \"dataviva-scripts/scripts/ei/ei_create_tables.sql\".\r\n\r\nBut how I populate these tables with data, so i can start the server ?\r\n\r\n\r\n\r\n"}}