Christian,
I commented out line 11 in haystack/__init.py__ and went on.
Then I wanted to setup with my database in the development environment and I got the following errors -
This happens on every version from 3.0.10 through 3.0.18
This makes it impossible for me to upgrade.
Please help. Thank you.
./reviewboard/manage.py validate
...PATH.../lib/python2.7/site-packages/cryptography/__init__.py:39: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in
a future release.
CryptographyDeprecationWarning,
2020-08-07 21:54:06,690 - DEBUG - - root - Logging to ./reviewboard.log with a minimum level of DEBUG
2020-08-07 21:54:06,812 - DEBUG - - root - Log file for Review Board v3.0.10 (PID 31196)
2020-08-07 21:54:06,854 - ERROR - - djblets.extensions.manager - Error loading extension rbintegrations: APPLICATION_MODEL refers to model oauth.Application that has not been installed
Traceback (most recent call last):
...PATH.../lib/python2.7/site-packages/djblets/extensions/manager.py", line 704, in _load_extensions
ext_class = entrypoint.load()
...PATH.../lib/python2.7/site-packages/pkg_resources/__init__.py", line 2443, in load
return self.resolve()
...PATH.../lib/python2.7/site-packages/pkg_resources/__init__.py", line 2449, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
...PATH.../lib/python2.7/site-packages/rbintegrations/extension.py", line 6, in <module>
from reviewboard.extensions.hooks import IntegrationHook, URLHook
...PATH.../src/reviewboard/extensions/hooks.py", line 48, in <module>
from reviewboard.urls import (diffviewer_url_names,
...PATH.../src/reviewboard/urls.py", line 49, in <module>
admin.autodiscover()
...PATH.../lib/python2.7/site-packages/django/contrib/admin/__init__.py", line 29, in autodiscover
import_module('%s.admin' % app)
...PATH.../lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
__import__(name)
...PATH.../lib/python2.7/site-packages/oauth2_provider/admin.py", line 9, in <module>
Application = get_application_model()
...PATH.../lib/python2.7/site-packages/oauth2_provider/models.py", line 267, in get_application_model
raise ImproperlyConfigured(e.format(oauth2_settings.APPLICATION_MODEL))
ImproperlyConfigured: APPLICATION_MODEL refers to model oauth.Application that has not been installed
CommandError: One or more models did not validate:
oauth2_provider.grant: 'application' has a relation with model <class 'reviewboard.oauth.models.Application'>, which has either not been installed or is abstract.
oauth2_provider.accesstoken: 'application' has a relation with model <class 'reviewboard.oauth.models.Application'>, which has either not been installed or is abstract.
oauth2_provider.refreshtoken: 'application' has a relation with model <class 'reviewboard.oauth.models.Application'>, which has either not been installed or is abstract.
reviews.fileattachmentcomment: 'file_attachment' has a relation with model <class 'reviewboard.attachments.models.FileAttachment'>, which has either not been installed or is abstract.
reviews.fileattachmentcomment: 'diff_against_file_attachment' has a relation with model <class 'reviewboard.attachments.models.FileAttachment'>, which has either not been installed or is abstract.
reviews.reviewrequest: 'file_attachments' has an m2m relation with model <class 'reviewboard.attachments.models.FileAttachment'>, which has either not been installed or is abstract.
reviews.reviewrequest: 'inactive_file_attachments' has an m2m relation with model <class 'reviewboard.attachments.models.FileAttachment'>, which has either not been installed or is abstract.
reviews.reviewrequest: 'file_attachment_histories' has an m2m relation with model <class 'reviewboard.attachments.models.FileAttachmentHistory'>, which has either not been installed or is abstract.
reviews.reviewrequestdraft: 'file_attachments' has an m2m relation with model <class 'reviewboard.attachments.models.FileAttachment'>, which has either not been installed or is abstract.
reviews.reviewrequestdraft: 'inactive_file_attachments' has an m2m relation with model <class 'reviewboard.attachments.models.FileAttachment'>, which has either not been installed or is abstract.