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_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.


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-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.

/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/859b8693-a72f-49fc-8120-ad577a0756a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 pip resides.


I am glad you solved the issue.


Kind regards,

Annet.

-- 
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/e3971c47-3eb0-4d8b-b504-009e72d5a3fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 use psycopg2 instead of pg8000 if 
> psycopg2 is installed.
>
>
The trick seems to letting web2py know it is installed in its local 
environment.

/dps
 

> I hope this helps you solve the issue.
>
>
> Kind regards,
>
> Annet
>
>
Thanks for your suggestions.

/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/d1dd4691-a100-44c7-8040-25eb604fc5ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 installed psycopg2

lionserver:~ userx$ sudo python /Users/userx/Downloads/get-pip.py
lionserver:~ userx$ python -m pip install psycopg2


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


As far as I know Web2py will always use psycopg2 instead of pg8000 if 
psycopg2 is installed.


I hope this helps you solve the issue.


Kind regards,

Annet


-- 
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/9cb3aadc-51b6-4a3f-a185-c468369d9067%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 search path for that import?

/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/156f49c3-4e7a-4109-82a4-b2a2126447e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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
>


 Sadly, pip tells me "could not find a version that satisfies te 
requirement unixodbc"

And to help with my memory later, -t is an option to "pip install", not to 
pip in general.

Oh, and I once said

>>> Is site-packages the wrong location?
>> That's web2py/applications/myapp/site-packages

No, it's not.  It's just web2py/site-packages.

And to expand on my comments about the original traceback ... sudo pip 
--version gives the same traceback, while pip --version works.  Probably a 
path issue, but I'm not sure I want to mess around with sudoing sudos.

/dps





> Il giorno sab 1 giu 2019 alle ore 00:09 Dave S  > ha scritto:
>
>> Help!
>>
>> /dps
>>
>> On Thursday, May 16, 2019 at 6:37:42 PM UTC-7, Dave S wrote:
>>>
>>>
>>>
>>> On Wednesday, May 15, 2019 at 10:26:39 AM UTC-7, Dave S wrote:



 On Monday, May 13, 2019 at 3:48:39 PM UTC-7, Dave S wrote:
>
>
>
> On Monday, May 13, 2019 at 2:31:33 PM UTC-7, Dave S wrote:
>>
>> When I check Last week I ended up making the move to Postgres on the 
>> busier of my production servers, and the changeover appears to be 
>> successful (imported existing data via CSV).  I was interested to see 
>> that 
>> the import preserved some gaps in the id field, and that Postgres was 
>> filling some of those gaps and holding off on using id's above the 
>> imported 
>> max(id).  But I'm also getting errors about 'ERROR 23505, duplicate key 
>> value value viotlates unique contraint "updreq_y_pkey".  Key(id)=(23681) 
>> already exists.'
>>
>> Looking at this made me realize I was running pg8000 (still supplied 
>> in contrib in 2.15.4), and I wanted to switch to pscyopg2.  So I tried 
>> pip install psycopg2
>>
>> and that was progressing fine until it got to copying the built 
>> module into /usr/lib64/python2.7/dist-packages/psycogpg2 -- permission 
>> denied (not too surprising).  So I tired the obvious:
>> sudo pip install psycopg2
>> Which ends abruptly with 
>> [traceback excerpt]
>> The 'pip==9.0.3' distribution was not found and required by the 
>> application
>> [...]
>>
>  
>
>> What can I do now?
>> (AWS Linux, up to date, OS_VERSION says "2018.03")
>>
>>  
>>
>  
> Okay, I found the -t option, and from the web2py directory specified 
> site-packages
> Now, how do I get web2py.py to find the driver?
>
>
 Is site-packages the wrong location?

 That's web2py/applications/myapp/site-packages
>>>
>>> /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 web...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/b2aecb42-d28c-42a7-84fe-1de80100f735%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/413ec153-d82a-4766-834c-1280d7f00788%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 Thursday, May 16, 2019 at 6:37:42 PM UTC-7, Dave S wrote:
>>
>>
>>
>> On Wednesday, May 15, 2019 at 10:26:39 AM UTC-7, Dave S wrote:
>>>
>>>
>>>
>>> On Monday, May 13, 2019 at 3:48:39 PM UTC-7, Dave S wrote:



 On Monday, May 13, 2019 at 2:31:33 PM UTC-7, Dave S wrote:
>
> When I check Last week I ended up making the move to Postgres on the
> busier of my production servers, and the changeover appears to be
> successful (imported existing data via CSV).  I was interested to see that
> the import preserved some gaps in the id field, and that Postgres was
> filling some of those gaps and holding off on using id's above the 
> imported
> max(id).  But I'm also getting errors about 'ERROR 23505, duplicate key
> value value viotlates unique contraint "updreq_y_pkey".  Key(id)=(23681)
> already exists.'
>
> Looking at this made me realize I was running pg8000 (still supplied
> in contrib in 2.15.4), and I wanted to switch to pscyopg2.  So I tried
> pip install psycopg2
>
> and that was progressing fine until it got to copying the built module
> into /usr/lib64/python2.7/dist-packages/psycogpg2 -- permission denied 
> (not
> too surprising).  So I tired the obvious:
> sudo pip install psycopg2
> Which ends abruptly with
> [traceback excerpt]
> The 'pip==9.0.3' distribution was not found and required by the
> application
> [...]
>


> What can I do now?
> (AWS Linux, up to date, OS_VERSION says "2018.03")
>
>
>

 Okay, I found the -t option, and from the web2py directory specified
 site-packages
 Now, how do I get web2py.py to find the driver?


>>> Is site-packages the wrong location?
>>>
>>> That's web2py/applications/myapp/site-packages
>>
>> /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/b2aecb42-d28c-42a7-84fe-1de80100f735%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAAE8D_AUFZhDw4ZSh9%3DsEvR8hKn9DA8%2BtOwRu53ACiaSgdRjCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: setting up pscycopg2

2019-05-31 Thread Dave S
Help!

/dps

On Thursday, May 16, 2019 at 6:37:42 PM UTC-7, Dave S wrote:
>
>
>
> On Wednesday, May 15, 2019 at 10:26:39 AM UTC-7, Dave S wrote:
>>
>>
>>
>> On Monday, May 13, 2019 at 3:48:39 PM UTC-7, Dave S wrote:
>>>
>>>
>>>
>>> On Monday, May 13, 2019 at 2:31:33 PM UTC-7, Dave S wrote:

 When I check Last week I ended up making the move to Postgres on the 
 busier of my production servers, and the changeover appears to be 
 successful (imported existing data via CSV).  I was interested to see that 
 the import preserved some gaps in the id field, and that Postgres was 
 filling some of those gaps and holding off on using id's above the 
 imported 
 max(id).  But I'm also getting errors about 'ERROR 23505, duplicate key 
 value value viotlates unique contraint "updreq_y_pkey".  Key(id)=(23681) 
 already exists.'

 Looking at this made me realize I was running pg8000 (still supplied in 
 contrib in 2.15.4), and I wanted to switch to pscyopg2.  So I tried 
 pip install psycopg2

 and that was progressing fine until it got to copying the built module 
 into /usr/lib64/python2.7/dist-packages/psycogpg2 -- permission denied 
 (not 
 too surprising).  So I tired the obvious:
 sudo pip install psycopg2
 Which ends abruptly with 
 [traceback excerpt]
 The 'pip==9.0.3' distribution was not found and required by the 
 application
 [...]

>>>  
>>>
 What can I do now?
 (AWS Linux, up to date, OS_VERSION says "2018.03")

  

>>>  
>>> Okay, I found the -t option, and from the web2py directory specified 
>>> site-packages
>>> Now, how do I get web2py.py to find the driver?
>>>
>>>
>> Is site-packages the wrong location?
>>
>> That's web2py/applications/myapp/site-packages
>
> /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/b2aecb42-d28c-42a7-84fe-1de80100f735%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: setting up pscycopg2

2019-05-16 Thread Dave S


On Wednesday, May 15, 2019 at 10:26:39 AM UTC-7, Dave S wrote:
>
>
>
> On Monday, May 13, 2019 at 3:48:39 PM UTC-7, Dave S wrote:
>>
>>
>>
>> On Monday, May 13, 2019 at 2:31:33 PM UTC-7, Dave S wrote:
>>>
>>> When I check Last week I ended up making the move to Postgres on the 
>>> busier of my production servers, and the changeover appears to be 
>>> successful (imported existing data via CSV).  I was interested to see that 
>>> the import preserved some gaps in the id field, and that Postgres was 
>>> filling some of those gaps and holding off on using id's above the imported 
>>> max(id).  But I'm also getting errors about 'ERROR 23505, duplicate key 
>>> value value viotlates unique contraint "updreq_y_pkey".  Key(id)=(23681) 
>>> already exists.'
>>>
>>> Looking at this made me realize I was running pg8000 (still supplied in 
>>> contrib in 2.15.4), and I wanted to switch to pscyopg2.  So I tried 
>>> pip install psycopg2
>>>
>>> and that was progressing fine until it got to copying the built module 
>>> into /usr/lib64/python2.7/dist-packages/psycogpg2 -- permission denied (not 
>>> too surprising).  So I tired the obvious:
>>> sudo pip install psycopg2
>>> Which ends abruptly with 
>>> [traceback excerpt]
>>> The 'pip==9.0.3' distribution was not found and required by the 
>>> application
>>> [...]
>>>
>>  
>>
>>> What can I do now?
>>> (AWS Linux, up to date, OS_VERSION says "2018.03")
>>>
>>>  
>>>
>>  
>> Okay, I found the -t option, and from the web2py directory specified 
>> site-packages
>> Now, how do I get web2py.py to find the driver?
>>
>>
> Is site-packages the wrong location?
>
> That's web2py/applications/myapp/site-packages

/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/1327500f-b4e7-4d68-84ab-c01e5017a165%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: setting up pscycopg2

2019-05-15 Thread Dave S


On Monday, May 13, 2019 at 3:48:39 PM UTC-7, Dave S wrote:
>
>
>
> On Monday, May 13, 2019 at 2:31:33 PM UTC-7, Dave S wrote:
>>
>> When I check Last week I ended up making the move to Postgres on the 
>> busier of my production servers, and the changeover appears to be 
>> successful (imported existing data via CSV).  I was interested to see that 
>> the import preserved some gaps in the id field, and that Postgres was 
>> filling some of those gaps and holding off on using id's above the imported 
>> max(id).  But I'm also getting errors about 'ERROR 23505, duplicate key 
>> value value viotlates unique contraint "updreq_y_pkey".  Key(id)=(23681) 
>> already exists.'
>>
>> Looking at this made me realize I was running pg8000 (still supplied in 
>> contrib in 2.15.4), and I wanted to switch to pscyopg2.  So I tried 
>> pip install psycopg2
>>
>> and that was progressing fine until it got to copying the built module 
>> into /usr/lib64/python2.7/dist-packages/psycogpg2 -- permission denied (not 
>> too surprising).  So I tired the obvious:
>> sudo pip install psycopg2
>> Which ends abruptly with 
>> [traceback excerpt]
>> The 'pip==9.0.3' distribution was not found and required by the 
>> application
>> [...]
>>
>  
>
>> What can I do now?
>> (AWS Linux, up to date, OS_VERSION says "2018.03")
>>
>>  
>>
>  
> Okay, I found the -t option, and from the web2py directory specified 
> site-packages
> Now, how do I get web2py.py to find the driver?
>
>
Is site-packages the wrong location?

/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/9c2f4cc1-6e89-4a1c-bc4e-5a65fd8276bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: setting up pscycopg2

2019-05-13 Thread Dave S


On Monday, May 13, 2019 at 2:31:33 PM UTC-7, Dave S wrote:
>
> When I check Last week I ended up making the move to Postgres on the 
> busier of my production servers, and the changeover appears to be 
> successful (imported existing data via CSV).  I was interested to see that 
> the import preserved some gaps in the id field, and that Postgres was 
> filling some of those gaps and holding off on using id's above the imported 
> max(id).  But I'm also getting errors about 'ERROR 23505, duplicate key 
> value value viotlates unique contraint "updreq_y_pkey".  Key(id)=(23681) 
> already exists.'
>
> Looking at this made me realize I was running pg8000 (still supplied in 
> contrib in 2.15.4), and I wanted to switch to pscyopg2.  So I tried 
> pip install psycopg2
>
> and that was progressing fine until it got to copying the built module 
> into /usr/lib64/python2.7/dist-packages/psycogpg2 -- permission denied (not 
> too surprising).  So I tired the obvious:
> sudo pip install psycopg2
> Which ends abruptly with 
> [traceback excerpt]
> The 'pip==9.0.3' distribution was not found and required by the 
> application
> [...]
>
 

> What can I do now?
> (AWS Linux, up to date, OS_VERSION says "2018.03")
>
>  
>
 
Okay, I found the -t option, and from the web2py directory specified 
site-packages
Now, how do I get web2py.py to find the driver?

/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/a63511e9-bfbe-43f9-b497-a5f2e67f9c0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.