On Thursday, June 13, 2019 at 4:25:11 PM UTC-7, Dave S wrote: > > > > On Thursday, June 13, 2019 at 1:47:34 AM UTC-7, Annet wrote: >> >> >> This isn't done as sudo? >>> >> >> With these lines I installed psycopg2 in my hosting environment, no sudo >> needed. >> > > In my environment, the easy_install fails because I don't have > write-permission to /usr/lib/python2.7/dist-packages > > The easy_install instructions for putting a package in a non-standard > directory seem fussy, and they say "try the other ways first". > > I'm not sure what the purpose of the mkdir is, since easy_install doesn't > know about that directory. > > > >> >> | The trick seems to letting web2py know it is installed in its local >> environment. >> >> I installed psycopg2 in the site-packages folder of the python version I >> am using >> same folder pip resides. >> >> >> I am glad you solved the issue. >> >> > Unfortunately, I've only identified a task to be done, not how to do the > task. >
I think have now solved the issue of installing psycopg2. Once again, pip install failed due to permissions, and sudo pip install failed due to wrong version of pip. This time, a small grey cell said ..."use whereis", so I did, figured out which of the listed pips was correct, and put that full path into the sudo command. Bingo! it still seems to me I should have been able to put psycopg2 in the web2py tree, but I haven't quite figured out what gluon/packages/dal/pydal/adapters/base.py and gluon/packages/dal/pydal/adapters/postgres.py do when they are trying to locate drivers, and obviously I didn't find the right spot in the tree for psycopg2. No matter, I've got things running now, and I'm off to keep an eye on the scheduler memory usage. /dps -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/a2223322-631e-404c-8966-d9edd915feff%40googlegroups.com.