Re: [web2py] PYTHON 3

2018-02-14 Thread Anthony
On Wednesday, February 14, 2018 at 11:13:35 AM UTC-5, Ramos wrote:
>
> But appadmin.py is not my code...
>

Sorry, didn't notice that was in appadmin.py. But the same principle 
applies -- appadmin.py is a controller within your app, so when you upgrade 
the framework, you must also upgrade appadmin.py (as well as appadmin.html 
and web2py.js). The new version of appadmin.py has changed that line to:

except Exception as e:

Anthony

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] PYTHON 3

2018-02-14 Thread António Ramos
But appadmin.py is not my code...

i got another error after fixing appadmin.py exception error.

[image: Imagem inline 1]

2018-02-14 15:52 GMT+00:00 Anthony :

> If you are running an app under Python 3, then the app code itself must be
> valid Python 3 code. Under Python 3, your code should be:
>
> except Exception as e:
>
> If you are seeing errors in your app code, there's a good chance the
> problem is that your old Python 2 code is no longer valid in Python 3.
> There are tools to help you update your code to Python 3.
>
> Anthony
>
>
> On Wednesday, February 14, 2018 at 10:40:10 AM UTC-5, Ramos wrote:
>>
>> got an error with python 3.6
>> Any help?
>>
>> [image: Imagem inline 1]
>>
>> 2018-02-12 20:59 GMT+00:00 LoveWeb2py :
>>
>>> With that said, Thank you for all of your hard work and to all the
>>> contributors for making such a wonderful framework. :)
>>>
>>>
>>> On Monday, February 12, 2018 at 3:58:30 PM UTC-5, LoveWeb2py wrote:

 Makes sense, Anthony. Please don't ever call anything web3py. It
 doesn't make any sense and all new users won't understand what it means. If
 you want to have a brainstorming session I'd be happy to help. I bet all
 the users on this forum have a lot of great ideas!!

 On Monday, February 12, 2018 at 3:44:13 PM UTC-5, Anthony wrote:
>
> On Sunday, February 11, 2018 at 4:10:45 PM UTC-5, Carlos Cesar
> Caballero wrote:
>>
>>
>> > PS: For the love of all that's holy,  please don't name it web3py.
>>
>
> The name "web3py" was just a placeholder name for a completely new
> framework -- it was not intended to be the name for web2py with Python 3
> support.
>
> Anthony
>
 --
>>> 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.
>>> 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.
> 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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] PYTHON 3

2018-02-14 Thread Anthony
If you are running an app under Python 3, then the app code itself must be 
valid Python 3 code. Under Python 3, your code should be:

except Exception as e:

If you are seeing errors in your app code, there's a good chance the 
problem is that your old Python 2 code is no longer valid in Python 3. 
There are tools to help you update your code to Python 3.

Anthony

On Wednesday, February 14, 2018 at 10:40:10 AM UTC-5, Ramos wrote:
>
> got an error with python 3.6
> Any help?
>
> [image: Imagem inline 1]
>
> 2018-02-12 20:59 GMT+00:00 LoveWeb2py :
>
>> With that said, Thank you for all of your hard work and to all the 
>> contributors for making such a wonderful framework. :)
>>
>>
>> On Monday, February 12, 2018 at 3:58:30 PM UTC-5, LoveWeb2py wrote:
>>>
>>> Makes sense, Anthony. Please don't ever call anything web3py. It doesn't 
>>> make any sense and all new users won't understand what it means. If you 
>>> want to have a brainstorming session I'd be happy to help. I bet all the 
>>> users on this forum have a lot of great ideas!!
>>>
>>> On Monday, February 12, 2018 at 3:44:13 PM UTC-5, Anthony wrote:

 On Sunday, February 11, 2018 at 4:10:45 PM UTC-5, Carlos Cesar 
 Caballero wrote:
>
>
> > PS: For the love of all that's holy,  please don't name it web3py. 
>

 The name "web3py" was just a placeholder name for a completely new 
 framework -- it was not intended to be the name for web2py with Python 3 
 support.

 Anthony

>>> -- 
>> 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.
>> 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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] PYTHON 3

2018-02-14 Thread António Ramos
got an error with python 3.6
Any help?

[image: Imagem inline 1]

2018-02-12 20:59 GMT+00:00 LoveWeb2py :

> With that said, Thank you for all of your hard work and to all the
> contributors for making such a wonderful framework. :)
>
>
> On Monday, February 12, 2018 at 3:58:30 PM UTC-5, LoveWeb2py wrote:
>>
>> Makes sense, Anthony. Please don't ever call anything web3py. It doesn't
>> make any sense and all new users won't understand what it means. If you
>> want to have a brainstorming session I'd be happy to help. I bet all the
>> users on this forum have a lot of great ideas!!
>>
>> On Monday, February 12, 2018 at 3:44:13 PM UTC-5, Anthony wrote:
>>>
>>> On Sunday, February 11, 2018 at 4:10:45 PM UTC-5, Carlos Cesar Caballero
>>> wrote:


 > PS: For the love of all that's holy,  please don't name it web3py.

>>>
>>> The name "web3py" was just a placeholder name for a completely new
>>> framework -- it was not intended to be the name for web2py with Python 3
>>> support.
>>>
>>> Anthony
>>>
>> --
> 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.
> 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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] PYTHON 3

2018-02-12 Thread LoveWeb2py
With that said, Thank you for all of your hard work and to all the 
contributors for making such a wonderful framework. :)

On Monday, February 12, 2018 at 3:58:30 PM UTC-5, LoveWeb2py wrote:
>
> Makes sense, Anthony. Please don't ever call anything web3py. It doesn't 
> make any sense and all new users won't understand what it means. If you 
> want to have a brainstorming session I'd be happy to help. I bet all the 
> users on this forum have a lot of great ideas!!
>
> On Monday, February 12, 2018 at 3:44:13 PM UTC-5, Anthony wrote:
>>
>> On Sunday, February 11, 2018 at 4:10:45 PM UTC-5, Carlos Cesar Caballero 
>> wrote:
>>>
>>>
>>> > PS: For the love of all that's holy,  please don't name it web3py. 
>>>
>>
>> The name "web3py" was just a placeholder name for a completely new 
>> framework -- it was not intended to be the name for web2py with Python 3 
>> support.
>>
>> Anthony
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] PYTHON 3

2018-02-12 Thread LoveWeb2py
Makes sense, Anthony. Please don't ever call anything web3py. It doesn't 
make any sense and all new users won't understand what it means. If you 
want to have a brainstorming session I'd be happy to help. I bet all the 
users on this forum have a lot of great ideas!!

On Monday, February 12, 2018 at 3:44:13 PM UTC-5, Anthony wrote:
>
> On Sunday, February 11, 2018 at 4:10:45 PM UTC-5, Carlos Cesar Caballero 
> wrote:
>>
>>
>> > PS: For the love of all that's holy,  please don't name it web3py. 
>>
>
> The name "web3py" was just a placeholder name for a completely new 
> framework -- it was not intended to be the name for web2py with Python 3 
> support.
>
> Anthony
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] PYTHON 3

2018-02-12 Thread Anthony
On Sunday, February 11, 2018 at 4:10:45 PM UTC-5, Carlos Cesar Caballero 
wrote:
>
>
> > PS: For the love of all that's holy,  please don't name it web3py. 
>

The name "web3py" was just a placeholder name for a completely new 
framework -- it was not intended to be the name for web2py with Python 3 
support.

Anthony

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] PYTHON 3

2018-02-11 Thread Carlos Cesar Caballero Díaz



PS: For the love of all that's holy,  please don't name it web3py.

:)


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Python 3 is catching up to us...

2012-06-21 Thread Manuele Pesenti

Il 21/06/2012 07:30, Jason (spot) Brower ha scritto:

Not a big deal still at this point but wanted to point out:
http://www.noobslab.com/2012/06/ubuntu-1210-quantal-quetzal-alpha-1-is.html
Python 2 will not be in Ubuntu by default anymore.
BR,
Jason
well I agree but you're in the same situation if you plan to use a 
stable version of some distros such as CentOS for example in which 
python 2.6 is not yet supported :)


M.

--





Re: [web2py] Python 3 is catching up to us...

2012-06-21 Thread Ralo Tannahill
CENTOS 6 (released in 2011) has python 2.6.6

Regards

On Thursday, 21 June 2012 08:39:52 UTC+2, Manuele wrote:

 Il 21/06/2012 07:30, Jason (spot) Brower ha scritto: 
  Not a big deal still at this point but wanted to point out: 
  
 http://www.noobslab.com/2012/06/ubuntu-1210-quantal-quetzal-alpha-1-is.html 
  Python 2 will not be in Ubuntu by default anymore. 
  BR, 
  Jason 
 well I agree but you're in the same situation if you plan to use a 
 stable version of some distros such as CentOS for example in which 
 python 2.6 is not yet supported :) 

  M. 


-- 





Re: [web2py] Python 3 is catching up to us...

2012-06-21 Thread LightDot
Luckily, it is now :)

Red Hat EL = Scientific linux = CentOS
version 5.x has python 2.4.3
version 6.x has python 2.6.6

Fedora 17 has python 2.7.3, while 3.x can be installed in parallel since 
Fedora 13.

Just to note for anyone not aware how Red Hat works, all these older python 
versions get security updates backported to them.

Regards


On Thursday, June 21, 2012 8:39:52 AM UTC+2, Manuele wrote:

 Il 21/06/2012 07:30, Jason (spot) Brower ha scritto: 
  Not a big deal still at this point but wanted to point out: 
  
 http://www.noobslab.com/2012/06/ubuntu-1210-quantal-quetzal-alpha-1-is.html 
  Python 2 will not be in Ubuntu by default anymore. 
  BR, 
  Jason 
 well I agree but you're in the same situation if you plan to use a 
 stable version of some distros such as CentOS for example in which 
 python 2.6 is not yet supported :) 

  M. 


On Thursday, June 21, 2012 8:39:52 AM UTC+2, Manuele wrote:

 Il 21/06/2012 07:30, Jason (spot) Brower ha scritto: 
  Not a big deal still at this point but wanted to point out: 
  
 http://www.noobslab.com/2012/06/ubuntu-1210-quantal-quetzal-alpha-1-is.html 
  Python 2 will not be in Ubuntu by default anymore. 
  BR, 
  Jason 
 well I agree but you're in the same situation if you plan to use a 
 stable version of some distros such as CentOS for example in which 
 python 2.6 is not yet supported :) 

  M. 


-- 





Re: [web2py] Python 3 and the future of web2py

2011-07-12 Thread cjrh
On Tuesday, July 12, 2011 12:29:19 AM UTC+2, Jonathan Lundell wrote:

 P3 needs some killer feature to motivate a migration, seems to me. 
 Especially when we're hearing from web2py users who need/want to stick with 
 2.4…


I think there are *many* Pythonistas with that view.  I suppose that there 
won't be one single killer feature for 3, but rather a steady accumulation 
of small but useful additions.   Regarding the need for a specific Python 
version: I have been able to get away so far with using my own custom Python 
for web2py deployments, even on shared hosting, so I pretty much choose 
which Python.  I *really* don't want to use 2.4 any more, and even 2.5 has 
some gimpy restrictions on ** kwargs usage.  My standard deploy is currently 
2.6 just because I know all the libraries are available, but I am starting 
to use 2.7.  At least one site is running on 2.7 right now.




Re: [web2py] Python 3 and the future of web2py

2011-07-12 Thread Ross Peoples
I know that Python 2.5 is the officially supported Python version of web2py, 
but I've been coding all of my stuff with the assumption that this will 
eventually change to Python 2.6, or even 2.7. I have applications running on 
both 2.6 and 2.7 in production. But since I'm using Ubuntu 10.04 Server to 
run most of my sites, Python 2.6.5 is my primary target until the next LTS 
version of Ubuntu Server. Although I've been hearing that the new version of 
Mac OS X Lion will have Python 2.7.

I guess this all goes back to the fact that I think Python 3 is cool because 
it's new, and I'm sure I will start playing with it soon, but no 
distributions are really using or supporting it yet, so it probably will be 
another year or two before any serious Python 3 movement begins (not just 
with web2py). By then, there will probably some kind of huge speed boost, 
or, as you mention, an accumulation of small features that will entice more 
people to start switching to it. I know that it's been out for a while, but 
I still consider it to be somewhat beta since the barrier for entry is so 
high. I'm sure others feel the same way, but again, this will probably 
change soon.


Re: [web2py] Python 3 and the future of web2py

2011-07-12 Thread pbreit
I suspect 2.6 is going to be popular for some time since that's what's in 
the current Ubuntu LTS (10.04).

Re: [web2py] Python 3 and the future of web2py

2011-07-12 Thread LightDot
Also, python 2.6.5 is in RHEL 6 / SL 6 / CentOS 6, which many linux 
hosting/VPS companies will be using for years to come.


Re: [web2py] Python 3 and the future of web2py

2011-07-11 Thread Ovidio Marinho
Hello Men's,

still do not control everything that can offer web2py with Python 2.7, and I
think we can not worry about versions, the important features are present, we
need to master well web2py, python Guido cares about him.



   Ovidio Marinho Falcao Neto
 ovidio...@gmail.com
 88269088
   Paraiba-Brasil



2011/7/11 Francisco Costa m...@franciscocosta.com

 I read this on the announcement of the latest Python release:
 http://www.python.org/download/releases/3.2.1/

 Since the final release of Python 2.7, the 2.x line will only receive
 bugfixes, and new features are developed for 3.x only.

 Does web2py have any plans to migrate to Python 3.x now that new
 features won't be developed for Python 2.x ?


Re: [web2py] Python 3 and the future of web2py

2011-07-11 Thread Jonathan Lundell
On Jul 11, 2011, at 6:32 AM, Francisco Costa wrote:
 
 I read this on the announcement of the latest Python release:
 http://www.python.org/download/releases/3.2.1/
 
 Since the final release of Python 2.7, the 2.x line will only receive
 bugfixes, and new features are developed for 3.x only.
 
 Does web2py have any plans to migrate to Python 3.x now that new
 features won't be developed for Python 2.x ?

Is there a compelling new feature in Python 3? I don't have enough experience 
with it to know.

Re: [web2py] Python 3 and the future of web2py

2011-07-11 Thread cjrh
http://www.python.org/download/releases/3.2.1/

I highlighted the ones I am interested in below:

   - numerous improvements to the unittest module
   - PEP 3147 http://www.python.org/dev/peps/pep-3147, support for .pyc 
   repository directories
   - PEP 3149 http://www.python.org/dev/peps/pep-3149, support for version 
   tagged dynamic libraries
   - *PEP 3148 http://www.python.org/dev/peps/pep-3148, a new futures 
   library for concurrent programming*
   - PEP 384 http://www.python.org/dev/peps/pep-0384, a stable ABI for 
   extension modules
   - PEP 391 http://www.python.org/dev/peps/pep-0391, dictionary-based 
   logging configuration
   - *an overhauled GIL implementation that reduces contention*
   - an extended email package that handles bytes messages
   - a much improved ssl module with support for SSL contexts and 
   certificate hostname matching
   - a sysconfig module to access configuration information
   - additions to the shutil module, among them archive file support
   - many enhancements to configparser, among them mapping protocol support
   - improvements to pdb, the Python debugger
   - countless fixes regarding bytes/string issues; among them full support 
   for a bytes environment (filenames, environment variables)
   - many consistency and behavior fixes for numeric operations



Re: [web2py] Python 3 and the future of web2py

2011-07-11 Thread cjrh
Oh, I also watched a video from PyCon: the dictionary-based logging system 
is supposed to be the final word on how to do Python logging for all apps 
and users.  Apparently there were a lot of custom-made in-house logging 
systems for many different projects, and they tried to make one to replace 
all the hacky ones.  So we would probably use that too.

I didn't bold it only because it isn't something I find especially 
interesting ;)


Re: [web2py] Python 3 and the future of web2py

2011-07-11 Thread cjrh
I just realized you asked about Python *3* not 3.2!  The stuff I posted was 
the delta from 3.1 to 3.2 only.  To see what changes from 2 to 3, read here 
(isn't too long, worth skimming at the very least): 
http://docs.python.org/py3k/whatsnew/3.0.html



Re: [web2py] Python 3 and the future of web2py

2011-07-11 Thread Jonathan Lundell
On Jul 11, 2011, at 1:38 PM, cjrh caleb.hatti...@gmail.com wrote:

 I just realized you asked about Python 3 not 3.2!  The stuff I posted was the 
 delta from 3.1 to 3.2 only.  To see what changes from 2 to 3, read here 
 (isn't too long, worth skimming at the very least): 
 http://docs.python.org/py3k/whatsnew/3.0.html
 
Some of the stuff has found it's way into 2.7. The unittest improvements spring 
to mind, because I've been using them. 

P3 needs some killer feature to motivate a migration, seems to me. Especially 
when we're hearing from web2py users who need/want to stick with 2.4…

That GIO video someone posted had GvR saying that they had no immediate plans 
to put P3 on GAE (they're doing 2.7). That kind of thing motivates me to put it 
back in the drawer and think about it in a year or two.