I can answer my own question here, kind of.

I was able to make this work by copying the "requests" folder from
/Library/Python/2.7/site-packages/*requests-2.1.0-py2.7.egg* to the 
application's modules folder. This makes it work for this application, but 
it seems to me that having it in the site-packages folder should make it 
universally available to any web2py application. I guess I need more 
knowledge about how all this works, but for now, I can go forward.

John


On Thursday, December 12, 2013 8:26:49 AM UTC-8, John Zumsteg wrote:
>
> I have a controller that does an *import requests. *I get the message 
> "Cannot import module 'requests'" when trying to run it. I installed 
> Requests using pip install, and  
>
> /Library/Python/2.7/site-packages/ contains *requests-2.1.0-py2.7.egg*. I 
> can import requests from the Python2.7 interpreter, but not from web2py. 
> Running on OS X Mavericks.
>
> Any ideas why the import requests fails, and how to correct it?
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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