Bug 1192568
| Summary: | Django quickstart with python 3.3 gives an error on create | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Corey Daley <cdaley> |
| Component: | Templates | Assignee: | Vu Dinh <vdinh> |
| Status: | CLOSED NOTABUG | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.x | CC: | jokerman, mmccomas, vdinh, xiuwang |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-01-20 14:32:58 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Corey Daley
2015-02-13 17:56:07 UTC
python bug for you, Maciej.. :) There's an error in the Description. It's a Django related , not a Drupal error. The solution to this problem: The error is because the Git link in the web console application is only for a django python for 2.6 Using a git quick start made for Python 3 , django 1.6 works. However, the password needed is never displayed in the web form (known bug). The fix is to have the web form select the proper git version based on python version, and capture the password. Failed to create django with python-2.6 too remote: Installed /var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/repo remote: Processing dependencies for YourAppName==1.0 remote: Searching for Django<=1.8 remote: Reading http://mirror1.ops.rhcloud.com/mirror/python/web/simple/Django/ remote: Best match: Django 1.7.3 remote: Downloading http://mirror1.ops.rhcloud.com/mirror/python/web/packages/source/D/Django/Django-1.7.3.tar.gz#md5=ea9a3fe7eca2280b233938a98c4a35a0 remote: Processing Django-1.7.3.tar.gz remote: Writing /tmp/easy_install-vJEsXT/Django-1.7.3/setup.cfg remote: Running Django-1.7.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-vJEsXT/Django-1.7.3/egg-dist-tmp-838dqX remote: warning: no previously-included files matching '__pycache__' found under directory '*' remote: warning: no previously-included files matching '*.py[co]' found under directory '*' remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/template/loader_tags.py', 145, 19, ' for name, var in six.iteritems(self.extra_context)\n')) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/core/management/commands/makemessages.py', 347, 44, " dir_suffixes = {'%s*' % path_sep for path_sep in {'/', os.sep}}\n")) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/core/management/__init__.py', 68, 39, " commands = {name: 'django.core' for name in find_commands(__path__[0])}\n")) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/contrib/formtools/tests/wizard/wizardtests/tests.py', 128, 40, " with open(THIS_FILE, 'rb') as f, temp_storage.open(UPLOADED_FILE_NAME) as f2:\n")) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/contrib/formtools/tests/wizard/namedwizardtests/tests.py', 160, 40, " with open(THIS_FILE, 'rb') as f, temp_storage.open(UPLOADED_FILE_NAME) as f2:\n")) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/contrib/auth/tests/test_forms.py', 123, 42, " with self.settings(USE_I18N=True), translation.override('pt-br', deactivate=True):\n")) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/contrib/gis/db/backends/postgis/operations.py', 79, 34, " valid_aggregates = {'Collect', 'Extent', 'Extent3D', 'MakeLine', 'Union'}\n")) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/contrib/gis/db/backends/oracle/operations.py', 86, 32, " valid_aggregates = {'Union', 'Extent'}\n")) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/contrib/gis/db/backends/spatialite/operations.py', 68, 33, " valid_aggregates = {'Extent', 'Union'}\n")) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/contrib/gis/db/models/constants.py', 4, 17, " 'bbcontains', 'bboverlaps', 'contained', 'contains',\n")) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/contrib/humanize/tests.py', 95, 40, " with translation.override('ja'), self.settings(USE_L10N=True):\n")) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/db/backends/mysql/schema.py', 39, 61, " return field.db_type(self.connection) in {'longtext', 'longblob'}\n")) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/db/migrations/writer.py', 304, 50, ' return value_repr, {"import datetime"}\n')) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/db/models/sql/query.py', 833, 36, ' for alias in self.external_aliases}\n')) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/db/models/fields/__init__.py', 639, 21, " 'iexact', 'contains', 'icontains',\n")) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/db/utils.py', 190, 44, ' TEST_SETTING_RENAMES_REVERSE = {v: k for k, v in TEST_SETTING_RENAMES.items()}\n')) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/test/signals.py', 103, 41, " if kwargs['setting'] in {'LANGUAGES', 'LANGUAGE_CODE', 'LOCALE_PATHS'}:\n")) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/utils/lru_cache.py', 28, 34, ' fasttypes = {int, str, frozenset, type(None)},\n')) remote: remote: SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/django/forms/utils.py', 57, 34, ' return {f: e.as_data() for f, e in self.items()}\n')) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/template/loader_tags.py', 145, 19, ' for name, var in six.iteritems(self.extra_context)\n')) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/core/management/__init__.py', 68, 39, " commands = {name: 'django.core' for name in find_commands(__path__[0])}\n")) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/core/management/commands/makemessages.py', 347, 44, " dir_suffixes = {'%s*' % path_sep for path_sep in {'/', os.sep}}\n")) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/contrib/formtools/tests/wizard/wizardtests/tests.py', 128, 40, " with open(THIS_FILE, 'rb') as f, temp_storage.open(UPLOADED_FILE_NAME) as f2:\n")) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/contrib/formtools/tests/wizard/namedwizardtests/tests.py', 160, 40, " with open(THIS_FILE, 'rb') as f, temp_storage.open(UPLOADED_FILE_NAME) as f2:\n")) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/contrib/auth/tests/test_forms.py', 123, 42, " with self.settings(USE_I18N=True), translation.override('pt-br', deactivate=True):\n")) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/contrib/gis/db/backends/postgis/operations.py', 79, 34, " valid_aggregates = {'Collect', 'Extent', 'Extent3D', 'MakeLine', 'Union'}\n")) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/contrib/gis/db/backends/oracle/operations.py', 86, 32, " valid_aggregates = {'Union', 'Extent'}\n")) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/contrib/gis/db/backends/spatialite/operations.py', 68, 33, " valid_aggregates = {'Extent', 'Union'}\n")) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/contrib/gis/db/models/constants.py', 4, 17, " 'bbcontains', 'bboverlaps', 'contained', 'contains',\n")) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/contrib/humanize/tests.py', 95, 40, " with translation.override('ja'), self.settings(USE_L10N=True):\n")) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/db/utils.py', 190, 44, ' TEST_SETTING_RENAMES_REVERSE = {v: k for k, v in TEST_SETTING_RENAMES.items()}\n')) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/db/backends/mysql/schema.py', 39, 61, " return field.db_type(self.connection) in {'longtext', 'longblob'}\n")) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/db/migrations/writer.py', 304, 50, ' return value_repr, {"import datetime"}\n')) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/db/models/sql/query.py', 833, 36, ' for alias in self.external_aliases}\n')) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/db/models/fields/__init__.py', 639, 21, " 'iexact', 'contains', 'icontains',\n")) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/test/signals.py', 103, 41, " if kwargs['setting'] in {'LANGUAGES', 'LANGUAGE_CODE', 'LOCALE_PATHS'}:\n")) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/utils/lru_cache.py', 28, 34, ' fasttypes = {int, str, frozenset, type(None)},\n')) remote: remote: SyntaxError: ('invalid syntax', ('/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/forms/utils.py', 57, 34, ' return {f: e.as_data() for f, e in self.items()}\n')) remote: remote: Adding Django 1.7.3 to easy-install.pth file remote: Installing django-admin.py script to /var/lib/openshift/55272df85cc2a24e160001c6/python/virtenv/bin remote: Installing django-admin script to /var/lib/openshift/55272df85cc2a24e160001c6/python/virtenv/bin remote: remote: Installed /var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/dependencies/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg remote: Finished processing dependencies for YourAppName==1.0 remote: Script /var/lib/openshift/55272df85cc2a24e160001c6/python//virtenv/bin/activate.csh cannot be made relative (it's not a normal script that starts with #!/var/lib/openshift/55272df85cc2a24e160001c6/python/virtenv/bin/python) remote: Script /var/lib/openshift/55272df85cc2a24e160001c6/python//virtenv/bin/activate.fish cannot be made relative (it's not a normal script that starts with #!/var/lib/openshift/55272df85cc2a24e160001c6/python/virtenv/bin/python) remote: Preparing build for deployment remote: Deployment id is 8377b1d6 remote: Activating deployment remote: Script /var/lib/openshift/55272df85cc2a24e160001c6/python//virtenv/bin/activate.csh cannot be made relative (it's not a normal script that starts with #!/var/lib/openshift/55272df85cc2a24e160001c6/python/virtenv/bin/python) remote: Script /var/lib/openshift/55272df85cc2a24e160001c6/python//virtenv/bin/activate.fish cannot be made relative (it's not a normal script that starts with #!/var/lib/openshift/55272df85cc2a24e160001c6/python/virtenv/bin/python) remote: Copying /var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/repo//wsgi/myproject/db.sqlite3 to /var/lib/openshift/55272df85cc2a24e160001c6/app-root/data/ remote: Traceback (most recent call last): remote: File "/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/repo/.openshift/action_hooks/secure_db.py", line 7, in <module> remote: modinfo = imp.find_module('openshiftlibs', [lib_path]) remote: ImportError: No module named openshiftlibs remote: Executing 'python /var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/repo//wsgi/myproject/manage.py collectstatic --noinput' remote: Traceback (most recent call last): remote: File "/var/lib/openshift/55272df85cc2a24e160001c6/app-root/runtime/repo/wsgi/myproject/manage.py", line 9, in <module> remote: from django.core.management import execute_from_command_line remote: File "/var/lib/openshift/55272df85cc2a24e160001c6/python/virtenv/lib/python2.6/site-packages/Django-1.7.3-py2.6.egg/django/core/management/__init__.py", line 68 remote: commands = {name: 'django.core' for name in find_commands(__path__[0])} Sorry, I don't notice Django don't support python-2.6 any more Could create django quickstart using python-3.3 without error in devenv-5642 Hi, According to comment #6, the issue is already fixed. Would you mind verifying this so we can close out the bug? Thanks, Vu As comment #6, move this bug to verified. |