Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying again #81

Closed
JoBilert opened this issue Dec 28, 2017 · 3 comments
Closed

Trying again #81

JoBilert opened this issue Dec 28, 2017 · 3 comments

Comments

@JoBilert
Copy link

After several tries and a break I try to install mygpo on my cubietruck running armbian.
I followed all your instructions on http://gpoddernet.readthedocs.io/en/latest/dev/installation.html and got up to cd mygpo python manage.py migrate .

That command ends with

(venv) root@cubietruck:~/mygpo# python manage.py migrate Traceback (most recent call last): File "manage.py", line 8, in <module> execute_from_command_line(sys.argv) File "/root/mygpo/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/root/mygpo/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/root/mygpo/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 206, in fetch_command klass = load_command_class(app_name, subcommand) File "/root/mygpo/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 40, in load_command_class module = import_module('%s.management.commands.%s' % (app_name, name)) File "/root/mygpo/venv/lib/python3.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 986, in _gcd_import File "<frozen importlib._bootstrap>", line 969, in _find_and_load File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 673, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 665, in exec_module File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed File "/root/mygpo/venv/lib/python3.5/site-packages/django/core/management/commands/migrate.py", line 15, in <module> from django.db.migrations.autodetector import MigrationAutodetector File "/root/mygpo/venv/lib/python3.5/site-packages/django/db/migrations/autodetector.py", line 13, in <module> from django.db.migrations.questioner import MigrationQuestioner File "/root/mygpo/venv/lib/python3.5/site-packages/django/db/migrations/questioner.py", line 12, in <module> from .loader import MigrationLoader File "/root/mygpo/venv/lib/python3.5/site-packages/django/db/migrations/loader.py", line 10, in <module> from django.db.migrations.recorder import MigrationRecorder File "/root/mygpo/venv/lib/python3.5/site-packages/django/db/migrations/recorder.py", line 12, in <module> class MigrationRecorder(object): File "/root/mygpo/venv/lib/python3.5/site-packages/django/db/migrations/recorder.py", line 26, in MigrationRecorder class Migration(models.Model): File "/root/mygpo/venv/lib/python3.5/site-packages/django/db/migrations/recorder.py", line 27, in Migration app = models.CharField(max_length=255) File "/root/mygpo/venv/lib/python3.5/site-packages/django/db/models/fields/__init__.py", line 1061, in __init__ super(CharField, self).__init__(*args, **kwargs) File "/root/mygpo/venv/lib/python3.5/site-packages/django/db/models/fields/__init__.py", line 172, in __init__ self.db_tablespace = db_tablespace or settings.DEFAULT_INDEX_TABLESPACE File "/root/mygpo/venv/lib/python3.5/site-packages/django/conf/__init__.py", line 56, in __getattr__ self._setup(name) File "/root/mygpo/venv/lib/python3.5/site-packages/django/conf/__init__.py", line 41, in _setup self._wrapped = Settings(settings_module) File "/root/mygpo/venv/lib/python3.5/site-packages/django/conf/__init__.py", line 129, in __init__ raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.") django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty. .

I won't touch it until I get any news since the Install went smoothly up to that point.

@stefankoegl
Copy link
Member

Thanks for your report! I have reordered two sections, so that the Configuration part comes first. Please continue at http://gpoddernet.readthedocs.io/en/latest/dev/installation.html#configuration and let me know if you run into any other issues.

@JoBilert
Copy link
Author

Seems like I could once for get one step further. However I already got the next problem, which seems to consider the auth_user.

(venv) root@cubietruck:~/mygpo# envdir envs/local python manage.py migrate Traceback (most recent call last): File "/root/mygpo/venv/lib/python3.5/site-packages/django/db/backends/utils.py", line 63, in execute return self.cursor.execute(sql) File "/root/mygpo/venv/lib/python3.5/site-packages/psycopg2cffi/_impl/cursor.py", line 30, in check_closed_ return func(self, *args, **kwargs) File "/root/mygpo/venv/lib/python3.5/site-packages/psycopg2cffi/_impl/cursor.py", line 263, in execute self._pq_execute(self._query, conn._async) File "/root/mygpo/venv/lib/python3.5/site-packages/psycopg2cffi/_impl/cursor.py", line 696, in _pq_execute self._pq_fetch() File "/root/mygpo/venv/lib/python3.5/site-packages/psycopg2cffi/_impl/cursor.py", line 757, in _pq_fetch raise self._conn._create_exception(cursor=self) psycopg2cffi._impl.exceptions.ProgrammingError: relation "auth_user" does not exist LINE 3: FROM auth_user
^
The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "manage.py", line 8, in <module> execute_from_command_line(sys.argv) File "/root/mygpo/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/root/mygpo/venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/root/mygpo/venv/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "/root/mygpo/venv/lib/python3.5/site-packages/django/core/management/base.py", line 327, in execute self.check() File "/root/mygpo/venv/lib/python3.5/site-packages/django/core/management/base.py", line 359, in check include_deployment_checks=include_deployment_checks, File "/root/mygpo/venv/lib/python3.5/site-packages/django/core/management/commands/migrate.py", line 62, in _run_checks issues.extend(super(Command, self)._run_checks(**kwargs)) File "/root/mygpo/venv/lib/python3.5/site-packages/django/core/management/base.py", line 346, in _run_checks return checks.run_checks(**kwargs) File "/root/mygpo/venv/lib/python3.5/site-packages/django/core/checks/registry.py", line 81, in run_checks new_errors = check(app_configs=app_configs) File "/root/mygpo/mygpo/users/checks.py", line 19, in check_case_insensitive_users cursor.execute(SQL) File "/root/mygpo/venv/lib/python3.5/site-packages/django/db/backends/utils.py", line 80, in execute return super(CursorDebugWrapper, self).execute(sql, params) File "/root/mygpo/venv/lib/python3.5/site-packages/django/db/backends/utils.py", line 65, in execute return self.cursor.execute(sql, params) File "/root/mygpo/venv/lib/python3.5/site-packages/django/db/utils.py", line 94, in __exit__ six.reraise(dj_exc_type, dj_exc_value, traceback) File "/root/mygpo/venv/lib/python3.5/site-packages/django/utils/six.py", line 685, in reraise raise value.with_traceback(tb) File "/root/mygpo/venv/lib/python3.5/site-packages/django/db/backends/utils.py", line 63, in execute return self.cursor.execute(sql) File "/root/mygpo/venv/lib/python3.5/site-packages/psycopg2cffi/_impl/cursor.py", line 30, in check_closed_ return func(self, *args, **kwargs) File "/root/mygpo/venv/lib/python3.5/site-packages/psycopg2cffi/_impl/cursor.py", line 263, in execute self._pq_execute(self._query, conn._async) File "/root/mygpo/venv/lib/python3.5/site-packages/psycopg2cffi/_impl/cursor.py", line 696, in _pq_execute self._pq_fetch() File "/root/mygpo/venv/lib/python3.5/site-packages/psycopg2cffi/_impl/cursor.py", line 757, in _pq_fetch raise self._conn._create_exception(cursor=self) django.db.utils.ProgrammingError: relation "auth_user" does not exist LINE 3: FROM auth_user

Sorry, but still can't migrate.

@stefankoegl
Copy link
Member

I've just pushed a fix for your issue (64b1ef4). You should be able to run git pull and continue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants