We're trying to integrate New Relic with web2py. We installed it per their 
instructions 
for web2py running on 
mod_wsgi<https://newrelic.com/docs/python/python-agent-and-web2py>, 
adding the following lines in wsgihandler.py:

import newrelic.agent
newrelic.agent.initialize('/opt/web-apps/web2py/newrelic.ini')

right before 
import gluon.main

This seems to work fine, until we import another library our app uses 
called python-oauth2 <https://github.com/simplegeo/python-oauth2>. Then we 
get the following error:

    import oauth2 as oauth
  File "/opt/web-apps/web2py/gluon/custom_import.py", line 95, in 
custom_importer
    raise e2  # there is an error in the module
KeyError: 'httplib2'


I want to report this problem to New Relic, but am unsure what the root 
cause might be. Is anyone familiar enough with the custom_importer to 
venture a guess?

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to