warning for postgres users: current contrib/pg8000 is old and causes weird postgres errors

77 views
Skip to first unread message

Mirek Zvolský

unread,
Aug 17, 2017, 8:33:51 AM8/17/17
to web2py-users
As long the contrib/pg8000 version is old,
it is good idea to install the current version: pip install pg8000

Errors from old driver are like (at least pg 9.6, long running tasks): OperationalError, Broken Pipe,...

I have created issues:
https://github.com/web2py/pydal/issues/490

I don't know how to create pull request,
because with just replacing contrib/pg8000 with new content
the web2py (pydal?) will not find the driver.

Mirek

Mirek Zvolský

unread,
Aug 17, 2017, 11:58:31 AM8/17/17
to web...@googlegroups.com
Other advantage (for me) is that the database access with the current version of pg8000 seems to be faster (- 30% ?).

However I should say following:
I was never interested about the used postgres driver.
Now I read about differences:

pg8000 is pure python, so probably runs everywhere,
psycopg2 uses standard C postgres client libraries (means: for some os it could be difficult to install)

Previous means psycopg2 is faster (2-4 times?) and more compatible.
So if it is no problem to install psycopg2, it should be used. Web2py uses psycopg2 if installed.

pip install psycopg2






Dne čtvrtek 17. srpna 2017 14:33:51 UTC+2 Mirek Zvolský napsal(a):

Alex Glaros

unread,
Aug 21, 2017, 1:07:30 PM8/21/17
to web...@googlegroups.com
I have older version of w2p on pythonAnywhere.com

anyone know which to use for pythonAnywhere.com?

how to update on pythonAnywhere.com?

thanks

Alex Glaros

Gualter Portella

unread,
Aug 22, 2017, 9:31:38 AM8/22/17
to web2py-users
Alex,

You've got to upgrade your account to a paid one on the account tab.

When you customize your plan, choose the postgres server option.

The postgres option itself will cost you an extra charge of US$7 per month.

Hope this helps.

Gualter

Alex Glaros

unread,
Aug 22, 2017, 12:33:59 PM8/22/17
to web2py-users
Thanks Gualter. I do have the paid account but web2py versions are not automatically updated on pythonAnywhere, so was looking for any tips, if needed.

Gualter Portella

unread,
Aug 22, 2017, 8:45:44 PM8/22/17
to web...@googlegroups.com
Hi Alex, 
What I did a month ago was to click on the update button and it worked.
Best,
Gualter

Enviado do meu iPhone

Em 22 de ago de 2017, às 13:33, Alex Glaros <alexg...@gmail.com> escreveu:

Thanks Gualter. I do have the paid account but web2py versions are not automatically updated on pythonAnywhere, so was looking for any tips, if needed.

--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/YtUTRdcgXWM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alex Glaros

unread,
Aug 22, 2017, 8:52:45 PM8/22/17
to web2py-users
did it update pg8000 too?

thanks Gualter

Alex

Gualter Portella

unread,
Aug 23, 2017, 7:01:41 AM8/23/17
to web...@googlegroups.com
To be honest I did not check, but you can check using the shell.
Best,
Gualter 

Enviado do meu iPhone
--
Reply all
Reply to author
Forward
0 new messages