I had the same issue.
Can you have a look at the installed packages:

python
>>> import pip
>>> pip.get_installed_distributions()

My requests module was installed at /home/myusername/.local -> but when I 
run web2py with nginx+uwsgi it is running with user "www-data".
I solved the problem by uninstalling requests and reinstalling it using 
sudo su:

sudo su
# pip install requests



 
 






Am Donnerstag, 12. April 2018 18:45:10 UTC+2 schrieb Raul Monares:
>
> I have same problem. From command line the modules are imported correctly. 
> Using python web2py.py also loads the modules. But nginx + uwsgi doesn't 
> work. 
>
> On Thursday, March 29, 2018 at 6:57:47 PM UTC-6, AlighaThor wrote:
>>
>> And yes...I restarted the server several times without any effect. The 
>> same ImportError excepction.
>>
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to