Project

Profile

Help

Issue #3057

Updated by bmbouter about 7 years ago

When I vagrant up now with the fully up to date checkouts and vagrant file I get the following error: 

 <code> <pre> 
 TASK [dev : makemigrations] **************************************************** 
 fatal: [pulp3_dev]: FAILED! => {"changed": true, "cmd": ["/home/vagrant/.virtualenvs/pulp/bin/pulp-manager", "makemigrations", "pulp_app"], "delta": "0:00:01.046183", "end": "2017-10-06 16:00:14.387132", "failed": true, "msg": "non-zero return code", "rc": 1, "start": "2017-10-06 16:00:13.340949", "stderr": "Traceback (most recent call last):\n    File \"/home/vagrant/.virtualenvs/pulp/bin/pulp-manager\", line 9, in <module>\n      load_entry_point('pulpcore', 'console_scripts', 'pulp-manager')()\n    File \"/home/vagrant/devel/pulp/platform/pulpcore/app/entry_points.py\", line 9, in pulp_manager_entry_point\n      execute_from_command_line(sys.argv)\n    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/django/core/management/__init__.py\", line 354, in execute_from_command_line\n      utility.execute()\n    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/django/core/management/__init__.py\", line 328, in execute\n      django.setup()\n    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/django/__init__.py\", line 18, in setup\n      apps.populate(settings.INSTALLED_APPS)\n    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/django/apps/registry.py\", line 115, in populate\n      app_config.ready()\n    File \"/home/vagrant/devel/pulp/platform/pulpcore/app/apps.py\", line 74, in ready\n      self.import_viewsets()\n    File \"/home/vagrant/devel/pulp/platform/pulpcore/app/apps.py\", line 100, in import_viewsets\n      from pulpcore.app.viewsets import (GenericNamedModelViewSet, NamedModelViewSet,\n    File \"/home/vagrant/devel/pulp/platform/pulpcore/app/viewsets/__init__.py\", line 1, in <module>\n      from pulpcore.app.viewsets.base import (GenericNamedModelViewSet, NamedModelViewSet,    # noqa\n    File \"/home/vagrant/devel/pulp/platform/pulpcore/app/viewsets/base.py\", line 4, in <module>\n      from rest_framework import viewsets, mixins\n    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/rest_framework/viewsets.py\", line 26, in <module>\n      from rest_framework import generics, mixins, views\n    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/rest_framework/generics.py\", line 11, in <module>\n      from rest_framework import mixins, views\n    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/rest_framework/mixins.py\", line 10, in <module>\n      from rest_framework.response import Response\n    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/rest_framework/response.py\", line 13, in <module>\n      from rest_framework.serializers import Serializer\n    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/rest_framework/serializers.py\", line 1534, in <module>\n      ModelSerializer.serializer_field_mapping[postgres_fields.JSONField] = JSONField\nAttributeError: module 'django.contrib.postgres.fields' has no attribute 'JSONField'", "stderr_lines": ["Traceback (most recent call last):", "    File \"/home/vagrant/.virtualenvs/pulp/bin/pulp-manager\", line 9, in <module>", "      load_entry_point('pulpcore', 'console_scripts', 'pulp-manager')()", "    File \"/home/vagrant/devel/pulp/platform/pulpcore/app/entry_points.py\", line 9, in pulp_manager_entry_point", "      execute_from_command_line(sys.argv)", "    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/django/core/management/__init__.py\", line 354, in execute_from_command_line", "      utility.execute()", "    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/django/core/management/__init__.py\", line 328, in execute", "      django.setup()", "    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/django/__init__.py\", line 18, in setup", "      apps.populate(settings.INSTALLED_APPS)", "    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/django/apps/registry.py\", line 115, in populate", "      app_config.ready()", "    File \"/home/vagrant/devel/pulp/platform/pulpcore/app/apps.py\", line 74, in ready", "      self.import_viewsets()", "    File \"/home/vagrant/devel/pulp/platform/pulpcore/app/apps.py\", line 100, in import_viewsets", "      from pulpcore.app.viewsets import (GenericNamedModelViewSet, NamedModelViewSet,", "    File \"/home/vagrant/devel/pulp/platform/pulpcore/app/viewsets/__init__.py\", line 1, in <module>", "      from pulpcore.app.viewsets.base import (GenericNamedModelViewSet, NamedModelViewSet,    # noqa", "    File \"/home/vagrant/devel/pulp/platform/pulpcore/app/viewsets/base.py\", line 4, in <module>", "      from rest_framework import viewsets, mixins", "    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/rest_framework/viewsets.py\", line 26, in <module>", "      from rest_framework import generics, mixins, views", "    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/rest_framework/generics.py\", line 11, in <module>", "      from rest_framework import mixins, views", "    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/rest_framework/mixins.py\", line 10, in <module>", "      from rest_framework.response import Response", "    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/rest_framework/response.py\", line 13, in <module>", "      from rest_framework.serializers import Serializer", "    File \"/home/vagrant/.virtualenvs/pulp/lib64/python3.5/site-packages/rest_framework/serializers.py\", line 1534, in <module>", "      ModelSerializer.serializer_field_mapping[postgres_fields.JSONField] = JSONField", "AttributeError: module 'django.contrib.postgres.fields' has no attribute 'JSONField'"], "stdout": "", "stdout_lines": []} 
 </code> </pre> 

 This started happening today which is also when DRF came out on PyPI. This is showing in Ansible, but I think we need to update Pulp to be compatible with 3.7.0.

Back