This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author geitda
Recipients brett.cannon, geitda, jcdlr, om364@, ppperry, terry.reedy
Date 2020-04-21.19:14:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1587496451.54.0.1819289458.issue33065@roundup.psfhosted.org>
In-reply-to
Content
I wish I could be more helpful than to just pipe up with a "this bug affects me, too," note, but wanted to poke this bug report since it's been dormant for 14 months.
With Python 3.8.2 I tried using the pgpdump module (version 1.5, installed from pip) on Windows 10 and wanted to step through how it worked. As soon as I enabled the debugger in IDLE it stopped working, throwing a very similar stack trace. Here's the MWE:

>>> import pgpdump
>>> <turn on debugger, Locals is checked by default>
[DEBUG ON]
>>> pgpdump.BinaryData(b'')
<focus auto-switches to debug window>
<click Step button>
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    pgpdump.BinaryData(b'')
  File "C:\Python38\lib\site-packages\pgpdump\data.py", line 13, in __init__
    if not data:
  File "C:\Python38\lib\site-packages\pgpdump\data.py", line 13, in __init__
    if not data:
  File "C:\Python38\lib\bdb.py", line 88, in trace_dispatch
    return self.dispatch_line(frame)
  File "C:\Python38\lib\bdb.py", line 112, in dispatch_line
    self.user_line(frame)
  File "C:\Python38\lib\idlelib\debugger.py", line 24, in user_line
    self.gui.interaction(message, frame)
AttributeError: 'BinaryData' object has no attribute 'length'

This error only occurs when the Locals checkbox in the debugging window is checked - it runs as expected as long as Locals is unchecked (this minimum [not]working example throws a "pgpdump.utils.PgpdumpException: no data to parse" error, as it should). A longer example with actual data will run for several steps while Locals is unchecked, but fails with the first Step once Locals is checked. A side note is that the specific error here is that the class BinaryData is being asked about it's 'length', rather than the OP's error of _ModuleLock not having a 'name'
Is there anything else I can do to help fix this, given that I'm not familiar with programming bdb or the IDLE debugger GUI?
History
Date User Action Args
2020-04-21 19:14:11geitdasetrecipients: + geitda, brett.cannon, terry.reedy, ppperry, jcdlr, om364@
2020-04-21 19:14:11geitdasetmessageid: <1587496451.54.0.1819289458.issue33065@roundup.psfhosted.org>
2020-04-21 19:14:11geitdalinkissue33065 messages
2020-04-21 19:14:10geitdacreate