WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org
View all threadsHi everyone,
We've been trying to follow the instructions on this page to do the
Collectionspace webapp demos, but we keep running into this problem.
Been following the instructions on this page:
https://wiki.collectionspace.org/display/DOC/Setting+up+a+development+environment+for+Django+webapps
The part we're stuck on right now on those instructions is on "Build the
Database" when trying to run "python manage.py syncdb". This is also the
case with
"python manage.py runserver". This the output we're getting after the
settings configuration:
"you must configure one of the extra_*.py settings files as
extra_settings.py!"
After this we created an extra settings.py module by copying extra_dev.py.
And this is the rest of the output when we run "python manage.py syncdb"
or runserver:
(myproject_env) $:~/DjangoProjects/cspace_django_project$
/home/yousuf/.envs/myproject_env/bin/python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_from_command_line(sys.argv)
File
"/home/yousuf/.envs/myproject_env/local/lib/python2.7/site-packages/django/core/management/init.py",
line 353, in execute_from_command_line
utility.execute()
File
"/home/yousuf/.envs/myproject_env/local/lib/python2.7/site-packages/django/core/management/init.py",
line 302, in execute
settings.INSTALLED_APPS
File
"/home/yousuf/.envs/myproject_env/local/lib/python2.7/site-packages/django/conf/init.py",
line 55, in getattr
self._setup(name)
File
"/home/yousuf/.envs/myproject_env/local/lib/python2.7/site-packages/django/conf/init.py",
line 43, in _setup
self._wrapped = Settings(settings_module)
File
"/home/yousuf/.envs/myproject_env/local/lib/python2.7/site-packages/django/conf/init.py",
line 99, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/init.py", line 37, in
import_module
import(name)
File
"/home/yousuf/DjangoProjects/cspace_django_project/cspace_django_site/settings.py",
line 22, in <module>
'cspace_django_site.context_processors.settings',
TypeError: can only concatenate list (not "tuple") to list
We have an idea from this on what's going on, but I'm not sure where to
go from here. Was wondering on any suggestions for this.
Thank you,
Peter
Peter,
Sorry to hear about your troubles.
Note that these webapps are still a bit "green" -- we are working on
bolstering them for inclusion as part of the regular CSpace suite, but at
the moment, the procedures for deployment and operation are in flux.
The problem you are having is almost certainly due to your using a version
of Django that is not supported by the webapps. (At the moment, the highest
version of Django that can be used is 1.7, I'm going to guess you've
installed 1.8 or higher).
And the wiki page you refer to is, alas, also quite out of date. In
particular, there are several more Python module dependencies now than when
that page was written, and you'll need to resolve all of them using
(perhaps) "pip install -r redhat_requirements.txt" -- just doing "sudo pip
install django" as called for in the wiki page is not enough.
Instead of using this wiki page, please refer to the README.md file in the
project itself:
https://github.com/cspace-deployment/cspace_django_project/blob/master/README.md
There is a "quick start guide" that might get you going right away. Or not!
One stumbling block we have noticed is that people seem to have trouble
installing the Postgres modules needed. The secret here is this comment in
the guide:
setuptools installed...
There are a number of ways of installing this module, depending on the OS
you are using, and our instructions don't pretend to help with this. Good
hunting!
What type of system are you intending to run these apps on?
John
On Tue, Apr 19, 2016 at 2:52 PM, Peter Tucker <
peter.tucker@granitehorizon.com> wrote:
Hi everyone,
We've been trying to follow the instructions on this page to do the
Collectionspace webapp demos, but we keep running into this problem.
Been following the instructions on this page:
https://wiki.collectionspace.org/display/DOC/Setting+up+a+development+environment+for+Django+webapps
The part we're stuck on right now on those instructions is on "Build the
Database" when trying to run "python manage.py syncdb". This is also the
case with
"python manage.py runserver". This the output we're getting after the
settings configuration:
"you must configure one of the extra_*.py settings files as
extra_settings.py!"
After this we created an extra settings.py module by copying extra_dev.py.
And this is the rest of the output when we run "python manage.py syncdb"
or runserver:
(myproject_env) $:~/DjangoProjects/cspace_django_project$
/home/yousuf/.envs/myproject_env/bin/python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_from_command_line(sys.argv)
File
"/home/yousuf/.envs/myproject_env/local/lib/python2.7/site-packages/django/core/management/init.py",
line 353, in execute_from_command_line
utility.execute()
File
"/home/yousuf/.envs/myproject_env/local/lib/python2.7/site-packages/django/core/management/init.py",
line 302, in execute
settings.INSTALLED_APPS
File
"/home/yousuf/.envs/myproject_env/local/lib/python2.7/site-packages/django/conf/init.py",
line 55, in getattr
self._setup(name)
File
"/home/yousuf/.envs/myproject_env/local/lib/python2.7/site-packages/django/conf/init.py",
line 43, in _setup
self._wrapped = Settings(settings_module)
File
"/home/yousuf/.envs/myproject_env/local/lib/python2.7/site-packages/django/conf/init.py",
line 99, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/init.py", line 37, in
import_module
import(name)
File
"/home/yousuf/DjangoProjects/cspace_django_project/cspace_django_site/settings.py",
line 22, in <module>
'cspace_django_site.context_processors.settings',
TypeError: can only concatenate list (not "tuple") to list
We have an idea from this on what's going on, but I'm not sure where to go
from here. Was wondering on any suggestions for this.
Thank you,
Peter
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org
Peter,
I should also mention that the "new, improved" deployment process has some
automation in the form of a script "setup.sh" which does most of the heavy
lifting, and is described in README.md. It doesn't install the required
Python modules, but it does most everything else.
HTH,
John
On Tue, Apr 19, 2016 at 3:23 PM, John B Lowe jblowe@berkeley.edu wrote:
Peter,
Sorry to hear about your troubles.
Note that these webapps are still a bit "green" -- we are working on
bolstering them for inclusion as part of the regular CSpace suite, but at
the moment, the procedures for deployment and operation are in flux.
The problem you are having is almost certainly due to your using a version
of Django that is not supported by the webapps. (At the moment, the highest
version of Django that can be used is 1.7, I'm going to guess you've
installed 1.8 or higher).
And the wiki page you refer to is, alas, also quite out of date. In
particular, there are several more Python module dependencies now than when
that page was written, and you'll need to resolve all of them using
(perhaps) "pip install -r redhat_requirements.txt" -- just doing "sudo pip
install django" as called for in the wiki page is not enough.
Instead of using this wiki page, please refer to the README.md file in the
project itself:
https://github.com/cspace-deployment/cspace_django_project/blob/master/README.md
There is a "quick start guide" that might get you going right away. Or not!
One stumbling block we have noticed is that people seem to have trouble
installing the Postgres modules needed. The secret here is this comment in
the guide:
setuptools installed...
There are a number of ways of installing this module, depending on the OS
you are using, and our instructions don't pretend to help with this. Good
hunting!
What type of system are you intending to run these apps on?
John
On Tue, Apr 19, 2016 at 2:52 PM, Peter Tucker <
peter.tucker@granitehorizon.com> wrote:
Hi everyone,
We've been trying to follow the instructions on this page to do the
Collectionspace webapp demos, but we keep running into this problem.
Been following the instructions on this page:
https://wiki.collectionspace.org/display/DOC/Setting+up+a+development+environment+for+Django+webapps
The part we're stuck on right now on those instructions is on "Build the
Database" when trying to run "python manage.py syncdb". This is also the
case with
"python manage.py runserver". This the output we're getting after the
settings configuration:
"you must configure one of the extra_*.py settings files as
extra_settings.py!"
After this we created an extra settings.py module by copying extra_dev.py.
And this is the rest of the output when we run "python manage.py syncdb"
or runserver:
(myproject_env) $:~/DjangoProjects/cspace_django_project$
/home/yousuf/.envs/myproject_env/bin/python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_from_command_line(sys.argv)
File
"/home/yousuf/.envs/myproject_env/local/lib/python2.7/site-packages/django/core/management/init.py",
line 353, in execute_from_command_line
utility.execute()
File
"/home/yousuf/.envs/myproject_env/local/lib/python2.7/site-packages/django/core/management/init.py",
line 302, in execute
settings.INSTALLED_APPS
File
"/home/yousuf/.envs/myproject_env/local/lib/python2.7/site-packages/django/conf/init.py",
line 55, in getattr
self._setup(name)
File
"/home/yousuf/.envs/myproject_env/local/lib/python2.7/site-packages/django/conf/init.py",
line 43, in _setup
self._wrapped = Settings(settings_module)
File
"/home/yousuf/.envs/myproject_env/local/lib/python2.7/site-packages/django/conf/init.py",
line 99, in init
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/init.py", line 37, in
import_module
import(name)
File
"/home/yousuf/DjangoProjects/cspace_django_project/cspace_django_site/settings.py",
line 22, in <module>
'cspace_django_site.context_processors.settings',
TypeError: can only concatenate list (not "tuple") to list
We have an idea from this on what's going on, but I'm not sure where to
go from here. Was wondering on any suggestions for this.
Thank you,
Peter
Talk mailing list
Talk@lists.collectionspace.org
http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org