Using openSUSE 12.3 python 2.7.3 django 1.5.1 installed manually and verified
When I enter "django-admin.py startproject mysite" at the command prompt I get the following traceback: Traceback (most recent call last): File "/usr/bin/django-admin.py", line 5, in <module> management.execute_from_command_line() File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 453, in execute_from_command_line utility.execute() File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 272, in fetch_command klass = load_command_class(app_name, subcommand) File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 77, in load_command_class module = import_module('%s.management.commands.%s' % (app_name, name)) File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/usr/lib/python2.7/site-packages/django/core/management/commands/startproject.py", line 2, in <module> from django.core.management.templates import TemplateCommand File "/usr/lib/python2.7/site-packages/django/core/management/templates.py", line 20, in <module> from django.template import Template, Context File "/usr/lib/python2.7/site-packages/django/template/__init__.py", line 53, in <module> from django.template.base import (ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END, File "/usr/lib/python2.7/site-packages/django/template/base.py", line 18, in <module> from django.utils.formats import localize File "/usr/lib/python2.7/site-packages/django/utils/formats.py", line 5, in <module> from django.utils import dateformat, numberformat, datetime_safe File "/usr/lib/python2.7/site-packages/django/utils/dateformat.py", line 25, in <module> from django.utils.timezone import is_aware, is_naive File "/usr/lib/python2.7/site-packages/django/utils/timezone.py", line 11, in <module> import pytz File "/usr/lib/python2.7/site-packages/pytz/__init__.py", line 35, in <module> from pkg_resources import resource_stream File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2978, in <module> add_activation_listener(lambda dist: dist.activate()) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 709, in subscribe callback(dist) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2978, in <lambda> add_activation_listener(lambda dist: dist.activate()) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2465, in activate map(declare_namespace, self._get_metadata('namespace_packages.txt')) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2045, in declare_namespace _handle_ns(packageName, path_item) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2010, in _handle_ns raise TypeError("Not a package:", packageName) TypeError: ('Not a package:', 'cgi') How do I fix this? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.