Re: [web2py] Re: Web2py with python 3.8.0

2019-11-29 Thread Kevin Keller
Maybe, it wasn't on the radar of the django developers either and had to be
fixed in the framework after python3 was released.

Happens sometimes I suppose, hard to keep up with depreciation of functions
and the impact on a framework.

Anyways, I suppose we juar have to file the bug reports and fix each
function step by step until all deprecated functions are removed and
replaced with the ones that need to be used for python 3.8 and forward.





On Fri, 29 Nov 2019, 20:44 Woody,  wrote:

> Shouldn't that be done before the release rather than afterward?
>
> --
> 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/cbb87866-f170-4338-ba3f-e93dfc3861f3%40googlegroups.com
> .
>

-- 
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/CADHCKLSkb6MXuXE-u%3Dw2xP5bUOAyXvUsj4LBJH4W45ADQgUgDg%40mail.gmail.com.


Re: [web2py] Re: Web2py with python 3.8.0

2019-11-29 Thread Woody
Shouldn't that be done before the release rather than afterward?

-- 
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/cbb87866-f170-4338-ba3f-e93dfc3861f3%40googlegroups.com.


Re: [web2py] Re: Web2py with python 3.8.0

2019-11-29 Thread Kevin Keller
Some deprecated functions have been removed in 3.8 finally.


Hence py4web and web2py have to adapt to the new situation.

Django went through the same process already.



On Fri, 29 Nov 2019, 14:11 Woody,  wrote:

> What is causing the problem with Python 3.8? Is it causing problems with
> other applications? Is it an undocumented bug in Python? Is it likely that
> Python will be changed to fix the problem or will web2py have to conform to
> the Python changes?
>
> --
> 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/e3321a7d-b518-49ec-8d57-9fcdc8886022%40googlegroups.com
> .
>

-- 
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/CADHCKLQb6jdXCTbYfFK%2BHBbeNFj6vieWksempq8J7A%2BCbYR29Q%40mail.gmail.com.


[web2py] Re: Web2py with python 3.8.0

2019-11-29 Thread Woody
What is causing the problem with Python 3.8? Is it causing problems with other 
applications? Is it an undocumented bug in Python? Is it likely that Python 
will be changed to fix the problem or will web2py have to conform to the Python 
changes?

-- 
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/e3321a7d-b518-49ec-8d57-9fcdc8886022%40googlegroups.com.


[web2py] Re: Web2py with python 3.8.0

2019-11-28 Thread Massimo Di Pierro
At this time we do not support python 3.8. It seems to have broken both 
web2py and py4web in different ways. I think 3.8 should be fixed, not 
web2py,

On Friday, 22 November 2019 07:07:18 UTC-8, Woody wrote:
>
> I updated to Python 3.8 on Arch Linux today and I had the same problem 
> with 'escape'. I patched the languages.py file and got web2py to start, but 
> then hit another error:
>
> Traceback (most recent call last):
>   File "/home/www/web2py/gluon/restricted.py", line 219, in restricted
> exec(ccode, environment)
>   File "/home/www/web2py/applications/x10_security/models/db.py" 
> , line 
> 55, in 
> auth.define_tables(username=False, signature=False)
>   File "/home/www/web2py/gluon/tools.py", line 2092, in define_tables
> super(Auth, self).define_tables(username, signature, migrate, 
> fake_migrate)._table_signature_list
>   File "/home/www/web2py/gluon/authapi.py", line 322, in define_tables
> db.define_table(
>   File "/home/www/web2py/gluon/packages/dal/pydal/base.py", line 592, in 
> define_table
> table = self.lazy_define_table(tablename, *fields, **kwargs)
>   File "/home/www/web2py/gluon/packages/dal/pydal/base.py", line 623, in 
> lazy_define_table
> self._adapter.create_table(
>   File "/home/www/web2py/gluon/packages/dal/pydal/adapters/base.py", line 
> 798, in create_table
> return self.migrator.create_table(*args, **kwargs)
>   File "/home/www/web2py/gluon/packages/dal/pydal/migrator.py", line 299, in 
> create_table
> sql_fields_old = pickle.load(tfile)
> TypeError: file must have 'read', 'readinto' and 'readline' attributes
>
>
> I looked for a discussion or patch for this, but I didn't find one. Can 
> anybody tell me how to fix this?
>

-- 
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/a114a3ba-6bba-48a8-aa56-92bf5fcd046a%40googlegroups.com.


[web2py] Re: Web2py with python 3.8.0

2019-11-22 Thread Woody
I updated to Python 3.8 on Arch Linux today and I had the same problem with 
'escape'. I patched the languages.py file and got web2py to start, but then 
hit another error:

Traceback (most recent call last):
  File "/home/www/web2py/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
  File "/home/www/web2py/applications/x10_security/models/db.py" 
, line 
55, in 
auth.define_tables(username=False, signature=False)
  File "/home/www/web2py/gluon/tools.py", line 2092, in define_tables
super(Auth, self).define_tables(username, signature, migrate, 
fake_migrate)._table_signature_list
  File "/home/www/web2py/gluon/authapi.py", line 322, in define_tables
db.define_table(
  File "/home/www/web2py/gluon/packages/dal/pydal/base.py", line 592, in 
define_table
table = self.lazy_define_table(tablename, *fields, **kwargs)
  File "/home/www/web2py/gluon/packages/dal/pydal/base.py", line 623, in 
lazy_define_table
self._adapter.create_table(
  File "/home/www/web2py/gluon/packages/dal/pydal/adapters/base.py", line 798, 
in create_table
return self.migrator.create_table(*args, **kwargs)
  File "/home/www/web2py/gluon/packages/dal/pydal/migrator.py", line 299, in 
create_table
sql_fields_old = pickle.load(tfile)
TypeError: file must have 'read', 'readinto' and 'readline' attributes


I looked for a discussion or patch for this, but I didn't find one. Can 
anybody tell me how to fix this?

-- 
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/facebca6--4cd4-a643-a84d2a33e613%40googlegroups.com.


[web2py] Re: Web2py with python 3.8.0

2019-11-02 Thread Massimo Di Pierro
Should be fixed. Funny anough that import was not used.

On Saturday, 2 November 2019 13:46:41 UTC-7, Donald McClymont wrote:
>
> So this seems to be because cgi.escape which was deprecated has now been 
> removed.  I think there may have been a fix submitted for this - however if 
> not it should be fairly simple to include - looks like we just need to use 
> html.escape which will work for all reasonable versions of python 3.
>
> DOnald
>
> On Thursday, October 31, 2019 at 9:52:19 PM UTC, martel berends wrote:
>>
>> I had the same problem..I was curious to see if it should work out of the 
>> box, but that was not the case. Currently I'm using python 3.7.4 
>>
>> Op woensdag 30 oktober 2019 22:10:05 UTC+1 schreef Константин Комков:
>>>
>>> Hello! I can't start web2py with python 3.8.0. Are somebody have the 
>>> same problem? Web2py with python 3.7.3 and 3.7.5 work good. Thank you.
>>>
>>

-- 
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/3e0c2f43-1f90-476c-a80d-b7e1f77f8165%40googlegroups.com.


[web2py] Re: Web2py with python 3.8.0

2019-11-02 Thread Donald McClymont
So this seems to be because cgi.escape which was deprecated has now been 
removed.  I think there may have been a fix submitted for this - however if 
not it should be fairly simple to include - looks like we just need to use 
html.escape which will work for all reasonable versions of python 3.

DOnald

On Thursday, October 31, 2019 at 9:52:19 PM UTC, martel berends wrote:
>
> I had the same problem..I was curious to see if it should work out of the 
> box, but that was not the case. Currently I'm using python 3.7.4 
>
> Op woensdag 30 oktober 2019 22:10:05 UTC+1 schreef Константин Комков:
>>
>> Hello! I can't start web2py with python 3.8.0. Are somebody have the same 
>> problem? Web2py with python 3.7.3 and 3.7.5 work good. Thank you.
>>
>

-- 
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/70480515-8ece-49e1-891d-5c42d22f7478%40googlegroups.com.


[web2py] Re: Web2py with python 3.8.0

2019-10-31 Thread martel berends
I had the same problem..I was curious to see if it should work out of the 
box, but that was not the case. Currently I'm using python 3.7.4 

Op woensdag 30 oktober 2019 22:10:05 UTC+1 schreef Константин Комков:
>
> Hello! I can't start web2py with python 3.8.0. Are somebody have the same 
> problem? Web2py with python 3.7.3 and 3.7.5 work good. Thank you.
>

-- 
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/d061c672-fb6d-4bb3-91cd-8836ad13b7fe%40googlegroups.com.