web2py online debugger under python3

147 views
Skip to first unread message

Clemens

unread,
Mar 30, 2020, 4:23:57 PM3/30/20
to web2py-users
Hello everybody!

I've switched my web2py app from python2 to python3. The app itself works fine, but the web2py online debugger doesn't work anymore and is mostly freezing. Sometimes a get the following error message:

Exception timeout: timeout('timed out',)

Traceback (most recent call last): File "/usr/lib/python3.6/socket.py", line 586, in readinto return self._sock.recv_into(b) socket.timeout: timed out

My configuration is as follows:

web2py 2.19.1-stable+timestamp.2020.03.21.21.49.28 (Running on Rocket 1.2.6, Python 3.6.9), Ubuntu 18.04 LTS

What do I have to change additionally that the online debugger is working under python3?


Thanks a lot for any support!


Best regards Clemens

Massimo Di Pierro

unread,
Apr 26, 2020, 2:46:00 AM4/26/20
to web2py-users
what browser?

Clemens

unread,
Apr 26, 2020, 9:46:19 AM4/26/20
to web2py-users
Firefox

Clemens

unread,
May 4, 2020, 9:50:22 AM5/4/20
to web...@googlegroups.com
Hello Massimo,

I hoped the latest web2py version would fix the problem. My current configuration is now:
web2py version 2.20.4-stable+timestamp.2020.05.03.05.18.50, Running on Rocket 1.2.6, Python 3.6.9, Ubuntu 18.04., Firefox 75.0 (64-bit)

But the online debugger still doesn't work. The debugger doesn't catch the breakpoint, set in my code. Instead, after waiting a few minutes I got the following new situation:

Screenshot_2020-05-04 interact.png


Screenshot_2020-05-04 interact-02.png

Additional information:
Same system, running everything with python 2, the online debugger works fine (just sudo update-alternatives, thus python 2.7.17 is used):
web2py version 2.20.4-stable+timestamp.2020.05.03.05.18.50, running on Rocket 1.2.6, Python 2.7.17

Do you have any idea, how I can fix this?

Best regards
Clemens


On Sunday, April 26, 2020 at 8:46:00 AM UTC+2, Massimo Di Pierro wrote:

AGRogers

unread,
May 4, 2020, 7:56:25 PM5/4/20
to web...@googlegroups.com
Hi Clemens

I definitely can't help you with this problem. Sorry. But I am interested in why you use the online debugger and not something else?

Thanks
Andrew

On Mon, 4 May 2020 at 23:50, Clemens <clemens....@claret-clover.de> wrote:
Hello Massimo,

I hoped the latest web2py version would fix the problem. My current configuration is now:
web2py version 2.20.4-stable+timestamp.2020.05.03.05.18.50, Running on Rocket 1.2.6, Python 3.6.9, Ubuntu 18.04., Firefox 75.0 (64-bit)

But the online debugger still doesn't work. The debugger doesn't catch the breakpoint, set in my code. Instead, after waiting a few minutes I got the following new situation:

Screenshot_2020-05-04 interact.png


Screenshot_2020-05-04 interact-02.png

Do you have any idea, how I can fix this?

Best regards
Clemens


On Sunday, April 26, 2020 at 8:46:00 AM UTC+2, Massimo Di Pierro wrote:
what browser?

On Monday, 30 March 2020 13:23:57 UTC-7, Clemens wrote:
Hello everybody!

I've switched my web2py app from python2 to python3. The app itself works fine, but the web2py online debugger doesn't work anymore and is mostly freezing. Sometimes a get the following error message:

Exception timeout: timeout('timed out',)

Traceback (most recent call last): File "/usr/lib/python3.6/socket.py", line 586, in readinto return self._sock.recv_into(b) socket.timeout: timed out

My configuration is as follows:

web2py 2.19.1-stable+timestamp.2020.03.21.21.49.28 (Running on Rocket 1.2.6, Python 3.6.9), Ubuntu 18.04 LTS

What do I have to change additionally that the online debugger is working under python3?


Thanks a lot for any support!


Best regards Clemens

--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/ccc32a55-4a15-4f88-9b0f-69326542b6f0%40googlegroups.com.

Clemens

unread,
May 5, 2020, 5:03:58 PM5/5/20
to web2py-users
Hi Andrew,

well, I would say, it's because I ever used it and it's okay for me. But which one would you recommend? And how to connect your favorite debugger with web2py? Never used another debugger for web2py.

Regards
Clemens


On Tuesday, May 5, 2020 at 1:56:25 AM UTC+2, AGRogers wrote:
Hi Clemens

I definitely can't help you with this problem. Sorry. But I am interested in why you use the online debugger and not something else?

Thanks
Andrew

To unsubscribe from this group and stop receiving emails from it, send an email to web...@googlegroups.com.

AGRogers

unread,
May 5, 2020, 9:11:00 PM5/5/20
to web...@googlegroups.com
Hi Clemens

I think a standalone debugger is much better. The online debugger could be great to debug applications in production  though.

Where are you doing your development? On your local machine or Python Anywhere or somewhere else?  I don't think it's possible to debug using Visual Studio Code or PyCharm if web2py is not running on your local machine. The debugger needs to connect to the python process. 

Anyhow, it's not hard to do once you know where to look. I managed to get PyCharm debugging in about 15 minutes - most of that was spent downloading the app for the first time.

Cheers
Andrew

To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/73792fd3-310e-43e6-89d6-5f615e12546d%40googlegroups.com.

Clemens

unread,
Jun 4, 2020, 3:48:37 PM6/4/20
to web2py-users
Hi Andrew,

I've switched over to PyCharm and really like it. Thanks a lot for the push!

Best regards
Clemens


On Wednesday, May 6, 2020 at 3:11:00 AM UTC+2, AGRogers wrote:
Hi Clemens

I think a standalone debugger is much better. The online debugger could be great to debug applications in production  though.

Where are you doing your development? On your local machine or Python Anywhere or somewhere else?  I don't think it's possible to debug using Visual Studio Code or PyCharm if web2py is not running on your local machine. The debugger needs to connect to the python process. 

Anyhow, it's not hard to do once you know where to look. I managed to get PyCharm debugging in about 15 minutes - most of that was spent downloading the app for the first time.

Cheers
Andrew

AGRogers

unread,
Jun 7, 2020, 9:31:16 PM6/7/20
to web...@googlegroups.com
Great. I have had weird problems with Visual Studio Code debugger. It seems to get confused sometimes about which line of code it is running and shows that I am executing a line different to what it is really executing. When i have that problem i switch to PyCharm and debug there. Then i head back to Visual Studio Code :)  


To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/a2cc1ed9-1a8f-4602-9058-15214a4c08f6o%40googlegroups.com.

Seth J

unread,
Jul 16, 2020, 5:28:32 PM7/16/20
to web2py-users
So, what would you recommend for "remote debugging" situation?  I have web2py running on internal firewalled Windows 2016 Server and have been struggling to adopt anything for debugging purposes.

AGRogers

unread,
Jul 16, 2020, 6:59:42 PM7/16/20
to web...@googlegroups.com
Hi Seth

I have no idea sorry. I would like to know the answer to this question though.

Andrew 

Reply all
Reply to author
Forward
0 new messages