flebel / django-tagging

Automatically exported from code.google.com/p/django-tagging
Other
0 stars 0 forks source link

Install Error caused by Improt Error #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

I have the latest trunkof Django (Rev: 7574) and am trying to install the
latest trunk of django-tagging (rev:137).  It gives me the following
ImprtError, which is a little confusing because the classes it is trying to
import actually do exist in tagging/models.py, so it should work, right?

Here is the traceback:

Traceback (most recent call last):
  File "manage.py", line 11, in ?
    execute_manager(settings)
  File
"/opt/local/lib/python2.4/site-packages/django/core/management/__init__.py",
line 272, in execute_manager
    utility.execute()
  File
"/opt/local/lib/python2.4/site-packages/django/core/management/__init__.py",
line 219, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/opt/local/lib/python2.4/site-packages/django/core/management/__init__.py",
line 172, in fetch_command
    app_name = get_commands(self.user_commands,
self.project_directory)[subcommand]
  File
"/opt/local/lib/python2.4/site-packages/django/core/management/__init__.py",
line 86, in get_commands
    for app_name in settings.INSTALLED_APPS:
  File "/opt/local/lib/python2.4/site-packages/django/conf/__init__.py",
line 28, in __getattr__
    self._import_settings()
  File "/opt/local/lib/python2.4/site-packages/django/conf/__init__.py",
line 59, in _import_settings
    self._target = Settings(settings_module)
  File "/opt/local/lib/python2.4/site-packages/django/conf/__init__.py",
line 105, in __init__
    appdir = os.path.dirname(__import__(app[:-2], {}, {}, ['']).__file__)
  File "/opt/local/lib/python2.4/site-packages/tagging/__init__.py", line
3, in ?
    from tagging.managers import ModelTaggedItemManager, TagDescriptor
  File "/opt/local/lib/python2.4/site-packages/tagging/managers.py", line
5, in ?
    from django.contrib.contenttypes.models import ContentType
  File
"/opt/local/lib/python2.4/site-packages/django/contrib/contenttypes/models.py",
line 1, in ?
    from django.db import models
  File "/opt/local/lib/python2.4/site-packages/django/db/__init__.py", line
10, in ?
    if not settings.DATABASE_ENGINE:
  File "/opt/local/lib/python2.4/site-packages/django/conf/__init__.py",
line 28, in __getattr__
    self._import_settings()
  File "/opt/local/lib/python2.4/site-packages/django/conf/__init__.py",
line 59, in _import_settings
    self._target = Settings(settings_module)
  File "/opt/local/lib/python2.4/site-packages/django/conf/__init__.py",
line 105, in __init__
    appdir = os.path.dirname(__import__(app[:-2], {}, {}, ['']).__file__)
  File "/opt/local/lib/python2.4/site-packages/tagging/__init__.py", line
3, in ?
    from tagging.managers import ModelTaggedItemManager, TagDescriptor
ImportError: cannot import name ModelTaggedItemManager

Original issue reported on code.google.com by conrad...@gmail.com on 6 Jun 2008 at 1:00

GoogleCodeExporter commented 9 years ago
I suspect this issue is no longer happening. More information would be nice.

Original comment by bros...@gmail.com on 22 Jan 2010 at 10:10