google-code-export / stoqs

Automatically exported from code.google.com/p/stoqs
GNU General Public License v3.0
1 stars 1 forks source link

SyntaxError: invalid syntax on python manage.py syncdb --noinput #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When running "python manage.py syncdb --noinput" on step 5 of the updated 
install document a SyntaxError occurs.

Notes: 
Django has been installed and running.
I am working from the virtual environment.

Screen Information:
(venv-stoqs)[root@localhost stoqs]# python manage.py syncdb --noinput
Traceback (most recent call last):
  File "manage.py", line 2, in <module>
    from django.core.management import execute_manager
  File "/home/admin/venv-stoqs/lib/python2.6/site-packages/django/core/management/__init__.py", line 68
    commands = {name: 'django.core' for name in find_commands(__path__[0])}
                                      ^
SyntaxError: invalid syntax
(venv-stoqs)[root@localhost stoqs]# 

Original issue reported on code.google.com by jergutie...@csumb.edu on 27 Feb 2015 at 10:04

GoogleCodeExporter commented 9 years ago
It looks as though something has not been installed or configured correctly. I 
suggested re-cloning the repository as a regular user (not root), creating and 
entering a virtual environment, running setup.sh, and then following the 
INSTALL instructions. 

For step 5 you should see:

(venv-stoqs)[mccann@localhost stoqshg]$ python manage.py syncdb --noinput
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Creating table celery_taskmeta
Creating table celery_tasksetmeta
Creating table djcelery_intervalschedule
Creating table djcelery_crontabschedule
Creating table djcelery_periodictasks
Creating table djcelery_periodictask
Creating table djcelery_workerstate
Creating table djcelery_taskstate
Creating table stoqs_resourcetype
Creating table stoqs_resource
Creating table stoqs_campaign
Creating table stoqs_campaignlog
Creating table stoqs_activitytype
Creating table stoqs_platformtype
Creating table stoqs_platform
Creating table stoqs_activity
Creating table stoqs_instantpoint
Creating table stoqs_nominallocation
Creating table stoqs_simpledepthtime
Creating table stoqs_simplebottomdepthtime
Creating table stoqs_planneddepthtime
Creating table stoqs_parameter
Creating table stoqs_parametergroup
Creating table stoqs_parametergroupparameter
Creating table stoqs_campaignresource
Creating table stoqs_activityresource
Creating table stoqs_parameterresource
Creating table stoqs_measurement
Creating table stoqs_sampletype
Creating table stoqs_samplepurpose
Creating table stoqs_analysismethod
Creating table stoqs_sample
Creating table stoqs_samplerelationship
Creating table stoqs_sampleresource
Creating table stoqs_platformresource
Creating table stoqs_resourceresource
Creating table stoqs_activityparameter
Creating table stoqs_activityparameterhistogram
Creating table stoqs_measuredparameter
Creating table stoqs_sampledparameter
Creating table stoqs_measuredparameterresource
Creating table stoqs_sampledparameterresource
Creating table stoqs_permalink
Installing custom SQL ...
Installing indexes ...
No fixtures found.

Original comment by MBARIm...@gmail.com on 6 Mar 2015 at 12:00