pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py27-django failed to runserver
Hello.
This is first time I post to this list.
I installed py27-django-1.4.1 from pkgsrc-current on my laptop.
When I run 'python2.7 manage.py runserver', I got following errors.
------------------------------------------
netbsd$ uname -a
NetBSD netbsd.explop.com 6.99.4 NetBSD 6.99.4 (GENERIC) #1: Fri Apr 6
09:20:58 JST 2012
miru%netbsd.explop.com@localhost:/usr/obj/sys/arch/i386/compile/GENERIC i386
netbsd$ python2.7 manage.py runserver
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File
"/usr/pkg/lib/python2.7/site-packages/django/core/management/__init__.py",
line 443, in execute_from_command_line
utility.execute()
File
"/usr/pkg/lib/python2.7/site-packages/django/core/management/__init__.py",
line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/usr/pkg/lib/python2.7/site-packages/django/core/management/__init__.py",
line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File
"/usr/pkg/lib/python2.7/site-packages/django/core/management/__init__.py",
line 69, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File
"/usr/pkg/lib/python2.7/site-packages/django/utils/importlib.py", line
35, in import_module
__import__(name)
File
"/usr/pkg/lib/python2.7/site-packages/django/core/management/commands/runserver.py",
line 8, in <module>
from django.core.servers.basehttp import AdminMediaHandler, run,
WSGIServerException, get_internal_wsgi_application
File
"/usr/pkg/lib/python2.7/site-packages/django/core/servers/basehttp.py",
line 23, in <module>
from django.core.wsgi import get_wsgi_application
File "/usr/pkg/lib/python2.7/site-packages/django/core/wsgi.py", line
1, in <module>
from django.core.handlers.wsgi import WSGIHandler
File
"/usr/pkg/lib/python2.7/site-packages/django/core/handlers/wsgi.py",
line 8, in <module>
from django import http
File "/usr/pkg/lib/python2.7/site-packages/django/http/__init__.py",
line 119, in <module>
from django.http.multipartparser import MultiPartParser
File
"/usr/pkg/lib/python2.7/site-packages/django/http/multipartparser.py",
line 13, in <module>
from django.utils.text import unescape_entities
File "/usr/pkg/lib/python2.7/site-packages/django/utils/text.py",
line 5, in <module>
from gzip import GzipFile
ImportError: No module named gzip
---------------------------------
I ran python2.7 and import gzip manually then I see no errors.
----------------------------
netbsd$ python2.7
Python 2.7.3 (default, May 11 2012, 02:12:39)
[GCC 4.5.3] on netbsd6
Type "help", "copyright", "credits" or "license" for more information.
>>> from gzip import GzipFile
>>>
----------------------
Does anyone have any idea?
Thanks.
Home |
Main Index |
Thread Index |
Old Index