{"action":"created","issue":{"url":"https://api.github.com/repos/taigaio/taiga-back/issues/520","labels_url":"https://api.github.com/repos/taigaio/taiga-back/issues/520/labels{/name}","comments_url":"https://api.github.com/repos/taigaio/taiga-back/issues/520/comments","events_url":"https://api.github.com/repos/taigaio/taiga-back/issues/520/events","html_url":"https://github.com/taigaio/taiga-back/issues/520","id":116206973,"number":520,"title":"can't do python migrate","user":{"login":"ASMfreaK","id":3578982,"avatar_url":"https://avatars.githubusercontent.com/u/3578982?v=3","gravatar_id":"","url":"https://api.github.com/users/ASMfreaK","html_url":"https://github.com/ASMfreaK","followers_url":"https://api.github.com/users/ASMfreaK/followers","following_url":"https://api.github.com/users/ASMfreaK/following{/other_user}","gists_url":"https://api.github.com/users/ASMfreaK/gists{/gist_id}","starred_url":"https://api.github.com/users/ASMfreaK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASMfreaK/subscriptions","organizations_url":"https://api.github.com/users/ASMfreaK/orgs","repos_url":"https://api.github.com/users/ASMfreaK/repos","events_url":"https://api.github.com/users/ASMfreaK/events{/privacy}","received_events_url":"https://api.github.com/users/ASMfreaK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-10T21:34:29Z","updated_at":"2015-11-11T16:40:00Z","closed_at":null,"body":"Hello and thank you for the great project!\r\nI'm tring to install Taiga on my server.\r\nI'm using (production guide)[https://taigaio.github.io/taiga-doc/dist/setup-production.html] from taiga docs.\r\nMy server is running under Debian 7 wheezy with custom-built python3.4.\r\nAfter setting up venv and pip installing requirements, i tried running \r\n`python3.4 manage.py migrate --noinput`\r\nIt ran for a bit and gave me this strange traceback:\r\n```\r\n(taiga) user@server:/path/to/taiga-back# python3.4 manage.py migrate\r\nTrying import local.py settings...\r\nTrying import development.py settings...\r\nTraceback (most recent call last):\r\n  File \"/usr/share/pyservers/taiga-back/taiga/lib/python3.4/site-packages/django/apps/config.py\", line 114, in create\r\n    cls = getattr(mod, cls_name)\r\nAttributeError: 'module' object has no attribute 'base'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"manage.py\", line 10, in <module>\r\n    execute_from_command_line(sys.argv)\r\n  File \"/usr/share/pyservers/taiga-back/taiga/lib/python3.4/site-packages/django/core/management/__init__.py\", line 351, in execute_from_command_line\r\n    utility.execute()\r\n  File \"/usr/share/pyservers/taiga-back/taiga/lib/python3.4/site-packages/django/core/management/__init__.py\", line 325, in execute\r\n    django.setup()\r\n  File \"/usr/share/pyservers/taiga-back/taiga/lib/python3.4/site-packages/django/__init__.py\", line 18, in setup\r\n    apps.populate(settings.INSTALLED_APPS)\r\n  File \"/usr/share/pyservers/taiga-back/taiga/lib/python3.4/site-packages/django/apps/registry.py\", line 85, in populate\r\n    app_config = AppConfig.create(entry)\r\n  File \"/usr/share/pyservers/taiga-back/taiga/lib/python3.4/site-packages/django/apps/config.py\", line 119, in create\r\n    import_module(entry)\r\n  File \"/usr/local/opt/python-3.4.1/lib/python3.4/importlib/__init__.py\", line 109, in import_module\r\n    return _bootstrap._gcd_import(name[level:], package, level)\r\n  File \"<frozen importlib._bootstrap>\", line 2254, in _gcd_import\r\n  File \"<frozen importlib._bootstrap>\", line 2237, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 2224, in _find_and_load_unlocked\r\nImportError: No module named 'taiga.base'\r\n```\r\n\r\nWhat did I do wrong?"},"comment":{"url":"https://api.github.com/repos/taigaio/taiga-back/issues/comments/155838330","html_url":"https://github.com/taigaio/taiga-back/issues/520#issuecomment-155838330","issue_url":"https://api.github.com/repos/taigaio/taiga-back/issues/520","id":155838330,"user":{"login":"ASMfreaK","id":3578982,"avatar_url":"https://avatars.githubusercontent.com/u/3578982?v=3","gravatar_id":"","url":"https://api.github.com/users/ASMfreaK","html_url":"https://github.com/ASMfreaK","followers_url":"https://api.github.com/users/ASMfreaK/followers","following_url":"https://api.github.com/users/ASMfreaK/following{/other_user}","gists_url":"https://api.github.com/users/ASMfreaK/gists{/gist_id}","starred_url":"https://api.github.com/users/ASMfreaK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASMfreaK/subscriptions","organizations_url":"https://api.github.com/users/ASMfreaK/orgs","repos_url":"https://api.github.com/users/ASMfreaK/repos","events_url":"https://api.github.com/users/ASMfreaK/events{/privacy}","received_events_url":"https://api.github.com/users/ASMfreaK/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T16:40:00Z","updated_at":"2015-11-11T16:40:00Z","body":"I've built python 3.4.1 and installed it into `/usr/local/opt/python-3.4.1`. \r\nI'm creating venv in `taiga-back` by using\r\n```\r\n/usr/local/opt/python-3.4.1/bin/pyvenv taiga\r\nsource taiga/bin/activate\r\npip install -r requirements.txt\r\n```\r\n`pip` happily reports:\r\n```\r\nSuccessfully installed Django-1.8.6 Markdown-2.6.4 MarkupSafe-0.23 Pillow-2.9.0 Unidecode-0.4.18 amqp-1.4.7 anyjson-0.3.3 billiard-3.3.0\r\n.21 bleach-1.4.2 celery-3.1.19 cssselect-0.9.1 cssutils-1.0.1 diff-match-patch-20121119 django-ipware-1.1.2 django-jinja-1.4.1 django-pg\r\njson-0.3.1 django-pglocks-1.0.2 django-picklefield-0.3.2 django-sampledatahelper-0.3 django-sites-0.8 django-sr-0.0.4 django-transaction\r\n-hooks-0.2 django-transactional-cleanup-0.1.15 djmail-0.11.0 djorm-pgarray-1.2 easy-thumbnails-2.2.1 fn-0.4.3 future-0.15.2 gunicorn-19.\r\n3.0 html5lib-0.9999999 jinja2-2.8 kombu-3.0.29 lxml-3.5.0b1 premailer-2.9.6 psycopg2-2.6.1 pycrypto-2.6.1 pygments-2.0.2 pyjwkest-1.0.7\r\npytz-2015.7 raven-5.8.1 redis-2.10.3 requests-2.8.1 sampledata-0.3.7 six-1.10.0\r\n```\r\nBut now `python manage.py migrate --noinput` reports the following:\r\n```\r\nrying import local.py settings...\r\nTrying import development.py settings...\r\nRaven is not configured (logging is disabled). Please see the documentation for more information.\r\nTraceback (most recent call last):\r\n  File \"/usr/share/pyservers/taiga-back/taiga/lib/python3.4/site-packages/django/db/backends/base/base.py\", line 130, in ensure_connecti\r\non\r\n    self.connect()\r\n  File \"/usr/share/pyservers/taiga-back/taiga/lib/python3.4/site-packages/transaction_hooks/mixin.py\", line 75, in connect\r\n    super(TransactionHooksDatabaseWrapperMixin, self).connect(*a, **kw)\r\n  File \"/usr/share/pyservers/taiga-back/taiga/lib/python3.4/site-packages/django/db/backends/base/base.py\", line 119, in connect\r\n    self.connection = self.get_new_connection(conn_params)\r\n  File \"/usr/share/pyservers/taiga-back/taiga/lib/python3.4/site-packages/django/db/backends/postgresql_psycopg2/base.py\", line 176, in\r\nget_new_connection\r\n    connection = Database.connect(**conn_params)\r\n  File \"/usr/share/pyservers/taiga-back/taiga/lib/python3.4/site-packages/psycopg2/__init__.py\", line 164, in connect\r\n    conn = _connect(dsn, connection_factory=connection_factory, async=async)\r\npsycopg2.OperationalError: FATAL:  role \"root\" does not exist\r\n```\r\nThis was caused by doing everything under `root` user. I created `taiga` user and `python manage.py migrate --noinput` worked like a charm. Maybe you should add some words about creating a new user for Taiga in [production setup tutorial](https://taigaio.github.io/taiga-doc/dist/setup-production.html)? I hope I won't have any other problems with installation. Thank you for your help."}}