Re: [web2py] Re: setting up pscycopg2

2019-08-28 Thread Dave S
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_in

Re: [web2py] Re: setting up pscycopg2

2019-06-13 Thread Dave S
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-pac

Re: [web2py] Re: setting up pscycopg2

2019-06-13 Thread 'Annet' via web2py-users
> This isn't done as sudo? > With these lines I installed psycopg2 in my hosting environment, no sudo needed. | 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 pi

Re: [web2py] Re: setting up pscycopg2

2019-06-12 Thread Dave S
On Wednesday, June 12, 2019 at 2:29:51 AM UTC-7, Annet wrote: > [...] > On Linux I ran the following code to install psycopg2 > > export PATH=/usr/pgsql-9.1/bin/:$PATH > mkdir -p ~/lib/python2.7 > easy_install-2.7 psycopg2 > > This isn't done as sudo? > As far as I know Web2py will always

Re: [web2py] Re: setting up pscycopg2

2019-06-12 Thread 'Annet' via web2py-users
Hi Dave, I work both on Mac OS X and Linux and have Postgres databases. On Mac OS X I located the pg_config file and added its location to the .bash_profile file: export PATH=/usr/local/bin:$PATH export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.3/bin Then I got pip and install

Re: [web2py] Re: setting up pscycopg2

2019-06-11 Thread Dave S
On Tuesday, June 4, 2019 at 3:42:49 PM UTC-7, Dave S wrote: > >>> Is site-packages the wrong location? > >> That's web2py/applications/myapp/site-packages > > No, it's not. It's just web2py/site-packages. > > I see gluon/packages/dal/pydal/drivers.py attempts to import psycopg2. What's the

Re: [web2py] Re: setting up pscycopg2

2019-06-04 Thread Dave S
On Saturday, June 1, 2019 at 1:41:12 AM UTC-7, Nico Zanferrari wrote: > > Hi Dave, > > I've faced the same problem trying to add psycopg2 on MacOs binaries with > python 2.7. Following some advices, I've resolved it by installing unixodbc > (with brew) before it. > > I hope it helps, > Nico >

Re: [web2py] Re: setting up pscycopg2

2019-06-01 Thread Nico Zanferrari
Hi Dave, I've faced the same problem trying to add psycopg2 on MacOs binaries with python 2.7. Following some advices, I've resolved it by installing unixodbc (with brew) before it. I hope it helps, Nico Il giorno sab 1 giu 2019 alle ore 00:09 Dave S ha scritto: > Help! > > /dps > > On Thursd