Hi Everyone

I cannot for the life of me get Pyfacebook to work with Dreamhost.  It
is a problem with the middleware and the fact that at Dreamhost you
have to use fcgi (instead of mod_python for example).

Any help would be greatly appreciated


ERROR MESSAGE BELOW

ImproperlyConfigured    Python 2.4.4: /usr/bin/python
Thu Jun 25 16:57:16 2009

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
 /mnt/local/home/webmaster/django.xxxxx.com/fcgi.py in run
(self=<fcgi.Request object>)
  578         """Runs the handler, flushes the streams, and ends the
request."""
  579         try:
  580             protocolStatus, appStatus = self.server.handler
(self)
  581         except:
  582             traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self = <fcgi.Request
object>, self.server = <fcgi.WSGIServer object>, self.server.handler =
<bound method WSGIServer.handler of <fcgi.WSGIServer object>>
 /mnt/local/home/webmaster/django.xxxxxxxxx.com/fcgi.py in handler
(self=<fcgi.WSGIServer object>, req=<fcgi.Request object>)
 1264         try:
 1265             try:
 1266                 result = self.application(environ,
start_response)
 1267                 try:
 1268                     for data in result:
result = None, self = <fcgi.WSGIServer object>, self.application =
<django.core.handlers.wsgi.WSGIHandler object>, environ =
{'AUTH_TYPE': 'Basic', 'DH_USER': 'webmaster', 'DOCUMENT_ROOT': '/home/
webmaster/django.xxxxxxxxx.com', 'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/
xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET':
'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING':
'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-
alive', ...}, start_response = <function start_response>
 /home/webmaster/local/django/django_src/django/core/handlers/wsgi.py
in __call__(self=<django.core.handlers.wsgi.WSGIHandler object>,
environ={'AUTH_TYPE': 'Basic', 'DH_USER': 'webmaster',
'DOCUMENT_ROOT': '/home/webmaster/django.xxxxxxxxx.com',
'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/
xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_CHARSET':
'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING':
'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
'HTTP_CACHE_CONTROL': 'max-age=0', 'HTTP_CONNECTION': 'keep-
alive', ...}, start_response=<function start_response>)
  228             # Check that middleware is still uninitialised.
  229             if self._request_middleware is None:
  230                 self.load_middleware()
  231             self.initLock.release()
  232
self = <django.core.handlers.wsgi.WSGIHandler object>,
self.load_middleware = <bound method WSGIHandler.load_middleware of
<django.core.handlers.wsgi.WSGIHandler object>>
 /home/webmaster/local/django/django_src/django/core/handlers/base.py
in load_middleware(self=<django.core.handlers.wsgi.WSGIHandler
object>)
   40                 mod = import_module(mw_module)
   41             except ImportError, e:
   42                 raise exceptions.ImproperlyConfigured, 'Error
importing middleware %s: "%s"' % (mw_module, e)
   43             try:
   44                 mw_class = getattr(mod, mw_classname)
exceptions = <module 'django.core.exceptions' from '/home/azw...al/
django/django_src/django/core/exceptions.pyc'>,
exceptions.ImproperlyConfigured = <class
django.core.exceptions.ImproperlyConfigured>, mw_module =
'facebook.djangofb', e = <exceptions.ImportError instance>

ImproperlyConfigured: Error importing middleware facebook.djangofb:
"No module named facebook.djangofb"
      args = ('Error importing middleware facebook.djangofb: "No
module named facebook.djangofb"',)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to