Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with Python 2.4 #4

Open
Bentis opened this issue Apr 6, 2012 · 1 comment
Open

Incompatible with Python 2.4 #4

Bentis opened this issue Apr 6, 2012 · 1 comment

Comments

@Bentis
Copy link

Bentis commented Apr 6, 2012

System:

  • pyroutes 0.4.1 installed with easy_install
  • mod_wsgi
  • python 2.4

A request gives following trace:

Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/wsgiref-0.1.2-py2.4.egg/wsgiref/handlers.py", line 92, in run
File "/usr/lib/python2.4/site-packages/pyroutes-0.4.1-py2.4.egg/pyroutes/init.py", line 79, in application
return dispatcher.dispatch(environ, start_response)
File "/usr/lib/python2.4/site-packages/pyroutes-0.4.1-py2.4.egg/pyroutes/dispatcher.py", line 29, in dispatch
response = self.create_middleware_chain(route, request)
File "/usr/lib/python2.4/site-packages/pyroutes-0.4.1-py2.4.egg/pyroutes/dispatcher.py", line 15, in create_middleware_chain
module = import(module_name, fromlist=[class_name])
TypeError: import() takes no keyword arguments
xxx.customer.cdi.no - - [07/Apr/2012 00:16:33] "GET / HTTP/1.1" 500 59

@xim
Copy link
Contributor

xim commented Apr 7, 2012

Fixed by 3dca976

Please submit bugs to pyroutes/pyroutes so klette doesn't have to report the bugs to me by IRC :p

Don't have python2.4 on hand, may be other changes required for python2.4 -- Absolutely sure the test suite breaks there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants