Re: [google-appengine] Debugger in Python 3

2022-01-10 Thread Sajal Gupta
Thank you. I have done both.

Regards

On Sunday, January 9, 2022 at 1:34:14 AM UTC+5:30 Wesley C (Google) wrote:

> Hi, there are several issues at play here:
>
> 1. *missing pdb section in the 3.x docs*: this section may be missing 
> possibly because it doesn't work in Python 3 or hasn't been tested or 
> validated. The best thing to do here is to go to the Python 3 page you 
> linked to, scroll down to the bottom, and click the blue "Send feedback" 
> button, then specify the Python 2 page PDB section link like you did in 
> your email and ask why this section is missing from *this* (Python 3) page.
>
> 2. *dev_appserver.py running on Python 3 still requires the presence of a 
> 2.7 interpreter*: Look specifically at the blue sidebar on this page: 
> https://cloud.google.com/appengine/docs/standard/python3/tools/using-local-server#running_the_local_development_server
>   
> which tells you how to specify the location of your Python 3 interpreter. 
> While there is an internal bug created against removing final 2.x 
> dependencies (for a purely 3.x version), I don't see an equivalent external 
> bug for an App Engine dev_appserver issue 
>  
> yet, so if you want there to be a public record tracking this work, please 
> file 
> a new bug in that same component 
> 
> .
>
> Depending on how you feel, you can take either (or both) of the above 
> actions.
>
> Best regards,
> --Wesley
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "A computer never does what you want... only what you tell it."
> wesley chun :: @wescpy  :: Software 
> Architect & Engineer
> Developer Advocate at Google 
>  by day; at 
> night: Core Python 
>
>
>
> On Sat, Jan 8, 2022 at 1:17 AM Sajal Gupta  wrote:
>
>> Hello,
>>
>> I am trying to use debugger in python 3 in localhost - using 
>> dev_appserver. While I find documentation for python debugger usage in 
>> python 2.7 documentation, there is no similar section for python 3.
>>
>> See the url below for python 2: 
>> https://cloud.google.com/appengine/docs/standard/python/tools/using-local-server#debugging_with_pdb
>>
>> But corresponding section for python 3 is missing: 
>> https://cloud.google.com/appengine/docs/standard/python3/tools/using-local-server
>>
>> IDE's own debugger doesn't seem to work - I am using pycharm. Trying to 
>> use it gives the following error:
>> ===
>> /usr/bin/python2.7 "/Applications/PyCharm 
>> CE.app/Contents/plugins/python-ce/helpers/pydev/pydevd.py" --multiproc 
>> --qt-support=auto --client 127.0.0.1 --port 57002 --file 
>> /Users/sajal/google-cloud-sdk/bin/dev_appserver.py 
>> --runtime_python_path=/usr/bin/python3 --support_datastore_emulator=yes 
>> Connected to pydev debugger (build 213.6461.77)
>>
>> *ERROR: (dev_appserver) python2: command not found*
>> Process finished with exit code 1
>> 
>>
>> Could you please advise.
>>
>> Thank you.
>>
>> Sajal
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-appengi...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/17f597c9-ce21-4a28-a6d7-bf8e26b5d935n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/673cc961-f7b8-4316-9833-48c0e2d56663n%40googlegroups.com.


Re: [google-appengine] Re: When will GAE Python 2.7 be shutdown

2022-01-10 Thread Sajal Gupta

Thank you. This is helpful.

Regards
On Sunday, January 9, 2022 at 1:54:40 AM UTC+5:30 Wesley C (Google) wrote:

> Hi again,
>
>1. *dev_appserver*: I replied in my other email that the tool 
>currently is available for Python 3 but still requires some components 
> from 
>2.7 to function properly and suggested you can file an external bug to 
> make 
>it fully functional in 3.x.
>2. *bundled services*: Google has made available as many of the 
>bundled services as possible, but unfortunately there's currently no plan 
>on making search available in the next generation runtimes. It is 
> currently 
>recommended to migrate to Elastic Search using a Compute Engine VM 
>
> 
>  as 
>recommended here 
>
> .
>  
>The goal is not "to move people away from App Engine," but to make 
>developers' apps more portable, so they can take their apps elsewhere if 
>App Engine isn't the right fit for their needs (removing the notion of 
>"vendor lock-in") by encouraging developers to migrate away from those 
>legacy bundled services. They are strickly a migration tool to ease 
>upgrading to Python 3 and will not receive any new features... all of the 
>innovation is going into any standalone Cloud equivalent services.
>3. *2.x support*: As Alejandro alluded to, there are no current plans 
>to shutdown the Python 2 runtime, even with the sunset of Python 2 
>, older Java, PHP 5, and Go 
>versions older than 1.11, by their respective communities. Google Cloud 
> has 
>assured users by expressing continued long-term support of these 
>legacy runtimes 
>, 
>including maintaining the Python 2 runtime 
>. So while there 
>is no requirement for users to migrate to Python 3 at this time, 
> developers 
>like you are expressing interest in updating their applications to the 
>latest language releases.
>
> Best regards,
> --Wesley
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "A computer never does what you want... only what you tell it."
> wesley chun :: @wescpy  :: Software 
> Architect & Engineer
> Developer Advocate at Google 
>  by day; at 
> night: Core Python 
>
>
>
> On Fri, Jan 7, 2022 at 11:38 PM Sajal Gupta  wrote:
>
>> Thanks Alejandro.
>>
>> *dev_appserver*: The challenge seems to be that it needs python 2 
>> installation for it to support python 3.x. So, looks like dev_appserver is 
>> still not "native" to python 3.x.And possibly due to this, I am not able to 
>> run dev_appserver in debugger mode for python 3.x applications.  That is 
>> what I meant about dev_appserver not being available fully for python 3.x. 
>>
>> *Bundled services: *Yes, I looks like now memcache and task queue is 
>> being made available for python 3.x and these seem to be in beta as of now. 
>> However, from what I understand, *search * is not available as yet 
>> unless there is a concrete plan to make it available for 3.x. The current 
>> suggestion for search seems to be host our own on Kubernetes, which defeats 
>> the whole purpose of someone using Google App Engine - which hides all the 
>> infra from the developers.
>>
>> So, unless, the unstated intent of Google team is to move people away 
>> from App Engine eventually, current, proposed migration path is not helping.
>>
>> *Notice of termination of python 2.x*: Thank you. This helps.
>>
>> Regards
>>
>> Sajal
>> On Friday, January 7, 2022 at 9:24:48 PM UTC+5:30 Alejandro L wrote:
>>
>>> Hello,
>>>
>>> Thank you for your message.
>>>
>>> As you mention, Python has ended support for versions 2.x, and we do 
>>> encourage our users to use a 3.x version. However, I would like to answer 
>>> all your questions, point by point:
>>>
>>> 0 - Dev_appserver does indeed have support for Python 3, which you can 
>>> find here 
>>> 
>>>  
>>> [1].
>>>
>>> 1 - GAE still supports many 2.x bundled services in the Python 3 
>>> runtime, including memcache and task queue. You can find more information 
>>> about this in this paragraph 
>>> 
>>>  
>>> [2] from the migrate to Python 3 page, and in this link 
>>>  
>>> [3]. However, currently, the recommendation is to consider migrating to 
>>> unbundled 
>>> Google Cloud products 
>>> 

[google-appengine] When will we get App Engine Flex on Java 11?

2022-01-10 Thread Tom Harris
Hi all:

We have a set of microservices written in Java that run on App Engine 
standard, and one that runs in App Engine Flex. Last year, we upgraded all 
the App Engine standard services to run spring boot with Java 11, and all 
are now running fine in production. However, our one App Engine Flex 
service is still stuck on Java 8, waiting for Java 11 support for Flex. 
This service currently runs with Jetty 9 and is using web sockets and 
google cloud pub/sub.

Is support for the App Engine Flex platform with Java 11 planned? If so, 
when? And if not, what is the suggested alternative? We cannot keep running 
things on Java 8 forever, as it has end-of-life for a while now.

Thanks,
Tom Harris

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b517c603-29e9-4ec5-bb80-6de6007447d9n%40googlegroups.com.