Thursday, September 18, 2014

Re: Help me: Django 1.6.4 + mod_wsgi Error

I have same issue on my local computer. please help me, 

2014년 7월 10일 목요일 오전 8시 18분 4초 UTC+9, Russell Keith-Magee 님의 말:
Hi LongYuan,

It's difficult to say for certain, but it looks to me like your Django install is corrupted. The error you're seeing indicates that an import is failing; if you've got a clean install of Django 1.6.4 like you say, that import should work without any problems.

Two things to try:

 * Start up a Python shell manually, using the same version of Python as Apache is using. See if the import fails there as well.

 * Re-install Django. Make sure that you *completely* uninstall it first, so there's no chance that stale files are lingering, and then reinstall.

Yours,
Russ Magee %-)


On Wed, Jul 9, 2014 at 3:01 PM, LongYuan <yinl...@gmail.com> wrote:
[Wed Jul 09 14:51:19 2014] [error]   File "C:\\Python27\\lib\\site-packages\\django\\utils\\encoding.py", line 14, in <module>
[Wed Jul 09 14:51:19 2014] [error]     from django.utils.six.moves.urllib.parse import quote
[Wed Jul 09 14:51:19 2014] [error] ImportError: cannot import name quote


The Apache2.2 service is restarting.
The Apache2.2 service has restarted.
arent: Received restart signal -- Restarting the server.
[Wed Jul 09 09:51:47 2014] [notice] Child 12544: Exit event signaled. Child process is ending.
[Wed Jul 09 09:51:47 2014] [warn] mod_wsgi: Compiled for Python/2.7.6.
[Wed Jul 09 09:51:47 2014] [warn] mod_wsgi: Runtime using Python/2.7.3.
[Wed Jul 09 09:51:47 2014] [notice] Apache/2.2.25 (Win32) mod_wsgi/3.5 Python/2.7.3 configured -- resuming normal operations
[Wed Jul 09 09:51:47 2014] [notice] Server built: Jul 10 2013 01:52:12
[Wed Jul 09 09:51:47 2014] [notice] Parent: Created child process 7956
[Wed Jul 09 09:51:47 2014] [warn] mod_wsgi: Compiled for Python/2.7.6.
[Wed Jul 09 09:51:47 2014] [warn] mod_wsgi: Runtime using Python/2.7.3.
[Wed Jul 09 09:51:47 2014] [notice] Child 7956: Child process is running
[Wed Jul 09 09:51:48 2014] [notice] Child 12544: Released the start mutex
[Wed Jul 09 09:51:48 2014] [notice] Child 7956: Acquired the start mutex.
[Wed Jul 09 09:51:48 2014] [notice] Child 7956: Starting 64 worker threads.
[Wed Jul 09 09:51:48 2014] [notice] Child 7956: Starting thread to listen on port 80.
[Wed Jul 09 09:51:49 2014] [notice] Child 12544: All worker threads have exited.
[Wed Jul 09 09:51:49 2014] [notice] Child 12544: Child process is exiting
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1] mod_wsgi (pid=7956): Target WSGI script 'F:/dj_spiders/dj_spiders/wsgi.py' cannot be loaded as Python module.
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1] mod_wsgi (pid=7956): Exception occurred processing WSGI script 'F:/dj_spiders/dj_spiders/wsgi.py'.
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1] Traceback (most recent call last):
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1]   File "F:/dj_spiders/dj_spiders/wsgi.py", line 13, in <module>
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1]     from django.core.wsgi import get_wsgi_application
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1]   File "C:\\Python27\\lib\\site-packages\\django\\core\\wsgi.py", line 1, in <module>
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1]     from django.core.handlers.wsgi import WSGIHandler
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1]   File "C:\\Python27\\lib\\site-packages\\django\\core\\handlers\\wsgi.py", line 9, in <module>
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1]     from django import http
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1]   File "C:\\Python27\\lib\\site-packages\\django\\http\\__init__.py", line 1, in <module>
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1]     from django.http.cookie import SimpleCookie, parse_cookie
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1]   File "C:\\Python27\\lib\\site-packages\\django\\http\\cookie.py", line 3, in <module>
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1]     from django.utils.encoding import force_str
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1]   File "C:\\Python27\\lib\\site-packages\\django\\utils\\encoding.py", line 11, in <module>
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1]     from django.utils.six.moves.urllib.parse import quote
[Wed Jul 09 09:51:49 2014] [error] [client 127.0.0.1] ImportError: cannot import name quote

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ef8729fc-2709-4606-8a09-9d9f7a06ded9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6453a583-a58b-4006-84b4-5653c922493d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment