valnet / valuenetwork

Resource Planning and Value Accounting for Value Networks
http://mikorizal.org
GNU Affero General Public License v3.0
99 stars 25 forks source link

Revert to LTS version of Ubuntu #458

Closed thierrymarianne closed 8 years ago

thierrymarianne commented 8 years ago

@bhaugen @fosterlynn

I went through the installation process again to figure the docker image build would fail without these modifications. Besides the following command fails also:

./manage.py syncdb --noinput

with this error message

django.db.utils.DatabaseError: no such table: django_content_type

Have you already encountered this issue when creating the database schema in development?

bhaugen commented 8 years ago

Where did the --noinput come from? I've never used that, and it might be part of the problem.

thierrymarianne commented 8 years ago

@bhaugen I've tried without this option without any more luck

bhaugen commented 8 years ago

You might try this: https://github.com/diefenbach/lfs-buildout-development/issues/5

I'm not sure why that would make any difference, but that's one of the first relevant answers when I google for that error message., But maybe you already have a local_settings.py where it's set that way?

Also, in same directory where you ran syncdb, do python and then when the python shell opens, import django django.VERSION

Should be 1.4.22 or so. One of the requirements, when it installs itself, has started to install a later version as one of its requirements. If so, do pip uninstall Django==that version and then pip install Django==1.4.22

And please let me know if either of those works.

thierrymarianne commented 8 years ago

I got a similar answer from elsewhere but it didn't work back then when I've tried to follow it.

I've figured the version of django_debug_toolbar had to be pinned as its latest tag works from Django 1.7 and it seemed to prevent the sync command from terminating successfully.

For information the --noinput option allows to execute the command without confirmation prompt (non-interactive execution mode), which is required to build the docker image.

See also https://github.com/valnet/valuenetwork/pull/462

The container can be run again until seeing this error message when accessing the root URL:

no such table: valueaccounting_economicagent

The fixtures might need to be updated.

bhaugen commented 8 years ago

I just removed the requirement for django_debug_toolbar. People can add it themselves if they want it.

bhaugen commented 8 years ago

We're visiting family, but I'll take a deeper look at all of these issues next week.

thierrymarianne commented 8 years ago

Thanks! See you around!