Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 177 by Chris.Shenton: Geopy uses "print" which breaks mod_wsgi
http://code.google.com/p/django-hotclub/issues/detail?id=177

What steps will reproduce the problem?
1. configure apache with python and mod_wsgi
2. start apache
3. connect to a url which invokes the wsgi bridge to pinax
4. see exception about writing to stdout

What is the expected output? What do you see instead?

It should throw an exception

What version of the product are you using? On what operating system?

The DC branch of pinax, but it uses the most current code from geopy.


Please provide any additional information below.

geopy/geocoders.py file uses "print" statement to complain about missing
imports (e.g. BeautifulSoup) but also status about parsing. The WSGI spec
says you can't send output to stdout, so this output breaks mod_wsgi.

Those outputs can be changed to python logging.warning() and logging.info()
messages which restores wsgi functionality.

I've submitted a patch to the author on this and if he accepts it, Pinax
may have to change its reference to this external library.




--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to