abrt 1.0.9 detected a crash. architecture: ppc cmdline: /usr/bin/python /usr/bin/django-admin --settings=./settings.py component: Django executable: /usr/bin/django-admin kernel: 2.6.32.12-115.fc12.ppc package: Django-1.1.1-2.fc12 reason: importlib.py:28:import_module:TypeError: relative imports require the 'package' argument release: Fedora release 12 (Constantine) backtrace ----- importlib.py:28:import_module:TypeError: relative imports require the 'package' argument Traceback (most recent call last): File "/usr/bin/django-admin", line 5, in <module> management.execute_from_command_line() File "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line utility.execute() File "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line 303, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line 252, in fetch_command app_name = get_commands()[subcommand] File "/usr/lib/python2.6/site-packages/django/core/management/__init__.py", line 101, in get_commands apps = settings.INSTALLED_APPS File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 269, in __getattr__ self._setup() File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 40, in _setup self._wrapped = Settings(settings_module) File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 73, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib/python2.6/site-packages/django/utils/importlib.py", line 28, in import_module raise TypeError("relative imports require the 'package' argument") TypeError: relative imports require the 'package' argument Local variables in innermost frame: name: './settings.py' package: None
Created attachment 424608 [details] File: backtrace
ringwald, Was this related to your own application or was it related to the Django package itself?
The application was just the first step in the tutorial on django's website. I solved my problem by uninstalling the Django-1.1.1-2.fc12 rpm, removing the django subdirectory in site-packages, and then installing the official 1.1.2 tarball from their website.
After looking at the stack trace and your response it looks like it isn't an actual issue. I'm I'm wrong please let me know and I'll look into it. I'll go ahead and close it as not a bug then. Thanks!