Skip to content

Instantly share code, notes, and snippets.

@qingfeng
Created August 4, 2010 16:43
Show Gist options
  • Save qingfeng/508416 to your computer and use it in GitHub Desktop.
Save qingfeng/508416 to your computer and use it in GitHub Desktop.
[2010-08-05 00:27:19] LuzHandler created
Traceback (most recent call last):
File "./luz-scgi.py", line 82, in <module>
main(LuzHandler)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scgi/quixote_handler.py", line 163, in main
max_children=max_children).serve()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scgi/scgi_server.py", line 346, in serve
self.serve_on_socket(self.get_listening_socket())
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scgi/scgi_server.py", line 337, in serve_on_socket
self.delegate_request(conn)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scgi/scgi_server.py", line 318, in delegate_request
self.spawn_child(conn)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scgi/scgi_server.py", line 208, in spawn_child
self.handler_class(parent_fd).serve()
File "./luz-scgi.py", line 26, in __init__
QuixoteHandler.__init__(self, *args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/scgi/quixote_handler.py", line 33, in __init__
self.publisher = self.publisher_class(self.root_namespace)
File "/Users/fengqing/douban/trunk/luz_wsgi.py", line 66, in __init__
Publisher.__init__(self, *args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/publish.py", line 106, in __init__
self.root_namespace = _get_module(root_namespace)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/publish.py", line 28, in _get_module
__import__(name)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 122, in find_import_module
return self.loader.load_module(fullname, stuff)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 106, in load_module
return ihooks.ModuleLoader.load_module( self, name, stuff)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ihooks.py", line 276, in load_module
m = self.hooks.load_package(name, filename, file)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ihooks.py", line 176, in load_package
return imp.load_module(name, file, filename, ("", "", PKG_DIRECTORY))
File "/Users/fengqing/douban/trunk/luz/__init__.py", line 14, in <module>
from luz.home_ui import member_ui, logout_ui
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 122, in find_import_module
return self.loader.load_module(fullname, stuff)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 99, in load_module
return _load_ptlc(name, filename, file)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 52, in _load_ptlc
return _exec_module_code(code, name, filename)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 30, in _exec_module_code
exec code in mod.__dict__
File "/Users/fengqing/douban/trunk/luz/home_ui.ptl", line 9, in <module>
from luz.site_ui import site_header, site_footer, site_panel, main_layout
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 122, in find_import_module
return self.loader.load_module(fullname, stuff)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 99, in load_module
return _load_ptlc(name, filename, file)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 52, in _load_ptlc
return _exec_module_code(code, name, filename)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 30, in _exec_module_code
exec code in mod.__dict__
File "/Users/fengqing/douban/trunk/luz/site_ui.ptl", line 9, in <module>
from luz.site_util import javascript_block
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 122, in find_import_module
return self.loader.load_module(fullname, stuff)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 99, in load_module
return _load_ptlc(name, filename, file)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 52, in _load_ptlc
return _exec_module_code(code, name, filename)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 30, in _exec_module_code
exec code in mod.__dict__
File "/Users/fengqing/douban/trunk/luz/site_util.ptl", line 16, in <module>
from luzong.censor import censor_keyword, add_gov_user, censor_post_client
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 122, in find_import_module
return self.loader.load_module(fullname, stuff)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 106, in load_module
return ihooks.ModuleLoader.load_module( self, name, stuff)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ihooks.py", line 272, in load_module
m = self.hooks.load_source(name, filename, file)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ihooks.py", line 170, in load_source
return imp.load_source(name, filename, file)
File "/Users/fengqing/douban/trunk/luzong/censor.py", line 31, in <module>
from luzong.utils.text import defrag_txt
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 122, in find_import_module
return self.loader.load_module(fullname, stuff)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/quixote/ptl_import.py", line 106, in load_module
return ihooks.ModuleLoader.load_module( self, name, stuff)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ihooks.py", line 272, in load_module
m = self.hooks.load_source(name, filename, file)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/ihooks.py", line 170, in load_source
return imp.load_source(name, filename, file)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/encodings/__init__.py", line 100, in search_function
level=0)
TypeError: import_module() takes no keyword arguments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment