-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FAILING: PYTHONPATH=/usr/share/graphite/webapp django-admin syncdb --settings=graphite.settings #2468
Comments
Hi @gregorywolf |
Hell @deniszh - Thank you for the response!! I am a little confused about the version. I used
and got the following: `Name: Django
|
Strange, could you please verify that the version really is 0.4.6 in |
Here are the results:
|
ok, another check. You set your Pythonpath to Could it be possible that you have graphite-web installed twice? If you are running it from usr/share/graphite/webapp please check what that version is. |
Hi - It is possible that I have installed graphite-web twice. In an effort to resolve my problems I have tried downloading packages again. Instead of trouble shooting further I am going to work on a new VM instance and try with a clean installation. I will circle back and report the result. Thank you. Be back soon. |
I would recommend you to install it in virtualenv, that makes a clean virtual environment and doesn't mix up with your systems Python packages. |
I am going to close this issue and revisit at a later time |
Hello - Sorry to be redundant cause I realize that there was a similar issue raised already (Pls help run syncdb error ImportError: No module named graphite.settings #1867). My issue seems to be similar but I still not get past it even though I have SCANDIR installed.
Here is my issue.
COMMAND:
sudo PYTHONPATH=/usr/share/graphite/webapp django-admin syncdb --settings=graphite.settings
Output:
Traceback (most recent call last): File "/bin/django-admin", line 10, in <module> sys.exit(execute_from_command_line()) File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line utility.execute() File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 312, in execute django.setup() File "/usr/lib/python2.7/site-packages/django/__init__.py", line 18, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/lib/python2.7/site-packages/django/apps/registry.py", line 115, in populate app_config.ready() File "/usr/lib/python2.7/site-packages/django/contrib/admin/apps.py", line 22, in ready self.module.autodiscover() File "/usr/lib/python2.7/site-packages/django/contrib/admin/__init__.py", line 24, in autodiscover autodiscover_modules('admin', register_to=site) File "/usr/lib/python2.7/site-packages/django/utils/module_loading.py", line 74, in autodiscover_modules import_module('%s.%s' % (app_config.name, module_to_search)) File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/lib/python2.7/site-packages/tagging/admin.py", line 3, in <module> from tagging.forms import TagAdminForm File "/usr/lib/python2.7/site-packages/tagging/forms.py", line 11, in <module> class TagAdminForm(forms.ModelForm): File "/usr/lib/python2.7/site-packages/django/forms/models.py", line 274, in __new__ "needs updating." % name django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited; form TagAdminForm needs updating.
I have also tried the following
sudo PYTHONPATH=/opt/graphite/webapp django-admin.py migrate --settings=graphite.settings --run-syncdb
Any help would be much appreciated.
The text was updated successfully, but these errors were encountered: