{"action":"created","issue":{"url":"https://api.github.com/repos/tendenci/tendenci/issues/361","labels_url":"https://api.github.com/repos/tendenci/tendenci/issues/361/labels{/name}","comments_url":"https://api.github.com/repos/tendenci/tendenci/issues/361/comments","events_url":"https://api.github.com/repos/tendenci/tendenci/issues/361/events","html_url":"https://github.com/tendenci/tendenci/issues/361","id":63134879,"number":361,"title":"Error python deploy.py","user":{"login":"dco5","id":3612771,"avatar_url":"https://avatars.githubusercontent.com/u/3612771?v=3","gravatar_id":"","url":"https://api.github.com/users/dco5","html_url":"https://github.com/dco5","followers_url":"https://api.github.com/users/dco5/followers","following_url":"https://api.github.com/users/dco5/following{/other_user}","gists_url":"https://api.github.com/users/dco5/gists{/gist_id}","starred_url":"https://api.github.com/users/dco5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dco5/subscriptions","organizations_url":"https://api.github.com/users/dco5/orgs","repos_url":"https://api.github.com/users/dco5/repos","events_url":"https://api.github.com/users/dco5/events{/privacy}","received_events_url":"https://api.github.com/users/dco5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-20T01:37:35Z","updated_at":"2015-03-22T03:52:15Z","closed_at":null,"body":"I am getting the following error when install tendenci locally.\r\npython deploy.py\r\npython deploy.py\r\nError: One or more models did not validate:\r\nmemberships.membershipdefault: 'directory' has a relation with model <class 'tendenci.addons.directories.models.Directory'>, which has either not been installed or is abstract.\r\n\r\nTraceback (most recent call last):\r\n  File \"deploy.py\", line 3, in <module>\r\n    subprocess.check_call(['python', 'manage.py',  'syncdb', '--noinput'])\r\n  File \"/usr/lib/python2.7/subprocess.py\", line 540, in check_call\r\n    raise CalledProcessError(retcode, cmd)\r\nsubprocess.CalledProcessError: Command '['python', 'manage.py', 'syncdb', '--noinput']' returned non-zero exit status 1\r\n\r\nI checked the tendenci.addons.directories and is there. Any suggestions? \r\n"},"comment":{"url":"https://api.github.com/repos/tendenci/tendenci/issues/comments/84512799","html_url":"https://github.com/tendenci/tendenci/issues/361#issuecomment-84512799","issue_url":"https://api.github.com/repos/tendenci/tendenci/issues/361","id":84512799,"user":{"login":"eschipul","id":153359,"avatar_url":"https://avatars.githubusercontent.com/u/153359?v=3","gravatar_id":"","url":"https://api.github.com/users/eschipul","html_url":"https://github.com/eschipul","followers_url":"https://api.github.com/users/eschipul/followers","following_url":"https://api.github.com/users/eschipul/following{/other_user}","gists_url":"https://api.github.com/users/eschipul/gists{/gist_id}","starred_url":"https://api.github.com/users/eschipul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eschipul/subscriptions","organizations_url":"https://api.github.com/users/eschipul/orgs","repos_url":"https://api.github.com/users/eschipul/repos","events_url":"https://api.github.com/users/eschipul/events{/privacy}","received_events_url":"https://api.github.com/users/eschipul/received_events","type":"User","site_admin":false},"created_at":"2015-03-22T03:52:15Z","updated_at":"2015-03-22T03:52:15Z","body":"It is an error being generated by South migration which is part of the normal process of setting up a site. You can probably bump past it with a few --fake migrations on that module but I'm not sure without more information.\r\n\r\nFurther, it's probably our fault as sometimes we have a dependency on a development box that is missing from requirements.txt or a pinned requirement in settings.py in core if you are on T5. \r\n\r\nSo let's work through this. A few questions:\r\n\r\nIdeally you are installing on \r\n1) Ubuntu 14.04 LTs\r\n2) You have all updates in stalled (e.g. sudo apt-get update && sudo apt-get upgrade -y)\r\n3) You are running Postgres with GIS enabled (if not required it soon will be so may as well start with GIS and GDAL on your template.\r\n4) Python 2.7.x as 3.3 should work on Tendenci 6 with Django 1.6 but we haven't run tests on it yet for the installation instructions.\r\n5) Version of NGINX\r\n6) Gunicorn or Uwsgi\r\n7) Version of Postgres (9.1 to 9.4 are all working in our various server farms)\r\n\r\nThings that would help me diagnose the problem as well is to know the method you are using to install Tendenci. We are half on the Tendenci 6 branch which is not currently master on github.com and is actually under very active development on our private git server and hasn't been pushed out. Why? Because we changed the templating system and it blows out layouts that were done the old way.\r\n\r\nSo I need more info to trouble shoot the issue. Or temporary access to your server so I can take a look (then of course remove my key if this is a route you want to take but I'd be happy to take a look.)\r\n\r\nIf installing Tendenci 5.x be sure to check the hidden .env file for connection string issues. That file, which I regret introducing so blame that on me - it was when I drank the Keroku cool-aid and I should have listened to my other developers and not done it. But... if on 5.x double check your .env file in the root.\r\n\r\nMore info and I can be more helpful. Would love to help you get it up and running. Thanks!"}}