[web2py] Re: pymongo is installed but I get this error: no driver available ('pymongo',)

2014-05-21 Thread Cynthia Butler
Solved - it depends on how I start/restart web2py with the nginx server (on ubuntu machine) Wrong - Don't do this:sudo /etc/init.d/nginx start Correct - DO THIS WAY:touch/etc/uwsgi/web2py.ini I had forgotten this. I found it by looking at the last 4 lines of the "/scripts/set

[web2py] Re: pymongo is installed but I get this error: no driver available ('pymongo',)

2014-05-21 Thread Alan Etkin
> > Does the sys.path looks right to you? > It does if the pymongo driver is installed at one of the folders listed. As you have described in late posts, you seem to have an issue with directory permissions. I belive that running web2py with root permissions can solve it. -- Resources: - htt

[web2py] Re: pymongo is installed but I get this error: no driver available ('pymongo',)

2014-05-20 Thread Cynthia Butler
Should I create a sudoer user = www-data with all root priveleges in my Ubuntu machine? Would that fix the pymongo not found and the permission problems when running web2py with nginx server? Thanks On Tuesday, May 20, 2014 11:11:07 PM UTC-6, Cynthia Butler wrote: > > Finally - It works if I ru

[web2py] Re: pymongo is installed but I get this error: no driver available ('pymongo',)

2014-05-20 Thread Cynthia Butler
Finally - It works if I run web2py's python shell as sudo: I thought my nginx was set up as user = www-data. I am confused by /locations/users/permissions in my nginx server set up and web2py file locations/users/permissions. Can you help me understand? cindy@cindy-HP64bit:/home/www-data/web2p

[web2py] Re: pymongo is installed but I get this error: no driver available ('pymongo',)

2014-05-20 Thread Cynthia Butler
Here is the owners/permissions for the web2py dir. How to fix? cindy@cindy-HP64bit:/home/www-data/web2py$ ls -la total 536 drwxr-xr-x 11 www-data www-data 4096 May 7 15:12 . drwxr-xr-x 3 root root 4096 May 7 14:51 .. -rw-rw-r-- 1 www-data www-data 12802 Mar 16 02:35 anyserver.py dr

[web2py] Re: pymongo is installed but I get this error: no driver available ('pymongo',)

2014-05-20 Thread Cynthia Butler
oops, I didn't see the command you wanted me to try-- here it is: looks like there is a problem with my permissions. How to fix this? cindy@cindy-HP64bit:/home/www-data/web2py$ python web2py.py -S welcome -P web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2014 Version 2.9.5-stab

[web2py] Re: pymongo is installed but I get this error: no driver available ('pymongo',)

2014-05-20 Thread Cynthia Butler
I already did try the web2py shell and copied the output in my previous reply. You might need to scroll down to see it or click to see the 'trimmed" output. I can import pymongo, but I can't connect to the database. Thanks On Tuesday, May 20, 2014 7:29:41 AM UTC-6, Massimo Di Pierro wrote: >

[web2py] Re: pymongo is installed but I get this error: no driver available ('pymongo',)

2014-05-20 Thread Massimo Di Pierro
Can you try the web2py shell? $ python web2py.py -S welcome -P >>> import pymongo On Tuesday, 20 May 2014 06:01:16 UTC-5, Cynthia Butler wrote: > > Does the sys.path looks right to you? > > > In [10] : showpath() > > "['', '/home/www-data/web2py/gluon', > '/home/www-data/web2py/site-packages'

[web2py] Re: pymongo is installed but I get this error: no driver available ('pymongo',)

2014-05-20 Thread Cynthia Butler
Does the sys.path looks right to you? In [10] : showpath() "['', '/home/www-data/web2py/gluon', '/home/www-data/web2py/site-packages', '/home/www-data/web2py', '.', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/u

[web2py] Re: pymongo is installed but I get this error: no driver available ('pymongo',)

2014-05-20 Thread Alan Etkin
> 2) sudo pip which put all the unzipped pymongo files in the > /usr/local/lib/python2.7/dist-packages/ folder with root:staff ownership > and everyone "r" privileges. > Odd, this should make the driver available for web2py. For debugging, perhaps you can check that the driver folder is i

[web2py] Re: pymongo is installed but I get this error: no driver available ('pymongo',)

2014-05-19 Thread Massimo Di Pierro
If you open a python shell can you do >>> import pymongo does it work? If python can find it web2py can find it, unless you have two python versions installed. On Sunday, 18 May 2014 12:58:22 UTC-5, Cynthia Butler wrote: > > By the way I tried installing pymongo two ways: > > 1) easy_install

[web2py] Re: pymongo is installed but I get this error: no driver available ('pymongo',)

2014-05-19 Thread Cynthia Butler
By the way I tried installing pymongo two ways: 1) easy_install which put the pymongo .so files in my home/cindy/ folder which I assumed web2py couldn't find (since web2py is in home/www-data/ ). So I uninstalled that. 2) sudo pip which put all the unzipped pymongo files in the /usr/local/l

[web2py] Re: pymongo is installed but I get this error: no driver available ('pymongo',)

2014-05-19 Thread Cynthia Butler
I restarted the nginx webserver and got the internal web2py python shell working again. Still don't know how to get web2py to find pymongo. Any hints? On Saturday, May 17, 2014 7:43:51 PM UTC-6, Cynthia Butler wrote: > > I am trying to use MongoDB 2.6.1 and pymongo 2.7 with the DAL on my local >