python manage.py runserver error
I get the following error when run python manage.py runserver:
OS openSUSE 12.3
django 1.7
boopers@linux-nss6:~/myfirstsite> python manage.py runserver
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/boopers/django-trunk/django/core/management/__init__.py", line 397, in execute_from_command_line
utility.execute()
File "/home/boopers/django-trunk/django/core/management/__init__.py", line 390, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/boopers/django-trunk/django/core/management/__init__.py", line 261, in fetch_command
app_name = get_commands()[subcommand]
File "/home/boopers/django-trunk/django/core/management/__init__.py", line 107, in get_commands
apps = settings.INSTALLED_APPS
File "/home/boopers/django-trunk/django/conf/__init__.py", line 54, in __getattr__
self._setup(name)
File "/home/boopers/django-trunk/django/conf/__init__.py", line 50, in _setup
self._configure_logging()
File "/home/boopers/django-trunk/django/conf/__init__.py", line 68, in _configure_logging
from django.utils.log import DEFAULT_LOGGING
File "/home/boopers/django-trunk/django/utils/log.py", line 7, in <module>
from django.views.debug import ExceptionReporter, get_exception_reporter_filter
File "/home/boopers/django-trunk/django/views/debug.py", line 10, in <module>
from django.http import (HttpResponse, HttpResponseServerError,
File "/home/boopers/django-trunk/django/http/__init__.py", line 4, in <module>
from django.http.response import (HttpResponse, StreamingHttpResponse,
File "/home/boopers/django-trunk/django/http/response.py", line 16, in <module>
from django.utils import six, timezone
File "/home/boopers/django-trunk/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/setuptools-0.9.6-py2.7.egg/pkg_resources.py", line 3027, in <module>
add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", line 741, in subscribe
callback(dist)
File "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", line 3027, in <lambda>
add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", line 2514, in activate
list(map(declare_namespace, self._get_metadata('namespace_packages.txt')))
File "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", line 2094, in declare_namespace
_handle_ns(packageName, path_item)
File "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", line 2059, in _handle_ns
raise TypeError("Not a package:", packageName)
TypeError: ('Not a package:', 'cgi')
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/boopers/django-trunk/django/core/management/__init__.py", line 397, in execute_from_command_line
utility.execute()
File "/home/boopers/django-trunk/django/core/management/__init__.py", line 390, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/boopers/django-trunk/django/core/management/__init__.py", line 261, in fetch_command
app_name = get_commands()[subcommand]
File "/home/boopers/django-trunk/django/core/management/__init__.py", line 107, in get_commands
apps = settings.INSTALLED_APPS
File "/home/boopers/django-trunk/django/conf/__init__.py", line 54, in __getattr__
self._setup(name)
File "/home/boopers/django-trunk/django/conf/__init__.py", line 50, in _setup
self._configure_logging()
File "/home/boopers/django-trunk/django/conf/__init__.py", line 68, in _configure_logging
from django.utils.log import DEFAULT_LOGGING
File "/home/boopers/django-trunk/django/utils/log.py", line 7, in <module>
from django.views.debug import ExceptionReporter, get_exception_reporter_filter
File "/home/boopers/django-trunk/django/views/debug.py", line 10, in <module>
from django.http import (HttpResponse, HttpResponseServerError,
File "/home/boopers/django-trunk/django/http/__init__.py", line 4, in <module>
from django.http.response import (HttpResponse, StreamingHttpResponse,
File "/home/boopers/django-trunk/django/http/response.py", line 16, in <module>
from django.utils import six, timezone
File "/home/boopers/django-trunk/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/setuptools-0.9.6-py2.7.egg/pkg_resources.py", line 3027, in <module>
add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", line 741, in subscribe
callback(dist)
File "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", line 3027, in <lambda>
add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", line 2514, in activate
list(map(declare_namespace, self._get_metadata('namespace_packages.txt')))
File "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", line 2094, in declare_namespace
_handle_ns(packageName, path_item)
File "/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg/pkg_resources.py", line 2059, in _handle_ns
raise TypeError("Not a package:", packageName)
TypeError: ('Not a package:', 'cgi')
The sys paths are
/usr/lib/python2.7/site-packages/pymongo-2.5.1-py2.7-linux-x86_64.egg
/usr/lib/python2.7/site-packages/bottle-0.11.6-py2.7.egg
/usr/lib/python2.7/site-packages/translationstring-1.1-py2.7.egg
/usr/lib/python2.7/site-packages/venusian-1.0a8-py2.7.egg
/usr/lib/python2.7/site-packages/zope.deprecation-4.0.2-py2.7.egg
/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg
/home/boopers/django-trunk
/usr/lib/python27.zip
/usr/lib64/python2.7
/usr/lib64/python2.7/plat-linux2
/usr/lib64/python2.7/lib-tk
/usr/lib64/python2.7/lib-old
/usr/lib64/python2.7/lib-dynload
/usr/lib64/python2.7/site-packages
/usr/lib64/python2.7/site-packages/FontTools
/usr/lib64/python2.7/site-packages/PIL
/usr/local/lib64/python2.7/site-packages
/usr/local/lib/python2.7/site-packages
/usr/lib64/python2.7/site-packages/gst-0.10
/usr/lib64/python2.7/site-packages/gtk-2.0
/usr/lib64/python2.7/site-packages/input-pad-1.0
/usr/lib/python2.7/site-packages
/usr/lib64/python2.7/site-packages/wx-2.9.4-gtk2
-- /usr/lib/python2.7/site-packages/bottle-0.11.6-py2.7.egg
/usr/lib/python2.7/site-packages/translationstring-1.1-py2.7.egg
/usr/lib/python2.7/site-packages/venusian-1.0a8-py2.7.egg
/usr/lib/python2.7/site-packages/zope.deprecation-4.0.2-py2.7.egg
/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg
/home/boopers/django-trunk
/usr/lib/python27.zip
/usr/lib64/python2.7
/usr/lib64/python2.7/plat-linux2
/usr/lib64/python2.7/lib-tk
/usr/lib64/python2.7/lib-old
/usr/lib64/python2.7/lib-dynload
/usr/lib64/python2.7/site-packages
/usr/lib64/python2.7/site-packages/FontTools
/usr/lib64/python2.7/site-packages/PIL
/usr/local/lib64/python2.7/site-packages
/usr/local/lib/python2.7/site-packages
/usr/lib64/python2.7/site-packages/gst-0.10
/usr/lib64/python2.7/site-packages/gtk-2.0
/usr/lib64/python2.7/site-packages/input-pad-1.0
/usr/lib/python2.7/site-packages
/usr/lib64/python2.7/site-packages/wx-2.9.4-gtk2
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+unsubscribe@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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home