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] Debugger in Python 3

2022-01-08 Thread wesley chun
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-appengine+unsubscr...@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/CAB6eaA53uPMNzgTLBFxN7f%3DRtQcB8yU4UCztjxhHd2EqyMNFzQ%40mail.gmail.com.