Title: IDLE debugger: problem importing user created module
Type: behavior Stage: test needed
Components: IDLE Versions: Python 3.6
Status: open Resolution:
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: jcdlr, terry.reedy
Priority: normal Keywords:

Created on 2018-03-13 05:02 by jcdlr, last changed 2018-03-13 12:26 by terry.reedy.

Messages (2)
msg313721 - (view) Author: Joshua De La Rosa (jcdlr) Date: 2018-03-13 05:02
Taking my first coding class, so I don't know much about coding or python in general, but I  ran into a problem when using the Debugger function for a homework assignment that neither I nor my professor could make sense of. My program executes successfully without running the Debugger or, in the case that I am running the Debugger, it only raises an error when I "Step" through the imported module that I implemented in another program, rather than just hitting "Go". The error it reports is:
AttributeError: '_ModuleLock' object has no attribute 'name'

Not sure which file to submit, since the I created my own module that is used in the program that raises the error when I step through it with the Debugger mode on.
msg313744 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2018-03-13 12:26
I cannot do anything from this bare description, as I cannot think of any reason why stepping should introduce an error.  It sounds like there are two files involved.  Try to reduce them to the minimum needed to reproduce the issue and then upload.
Date User Action Args
2018-03-13 12:26:02terry.reedysettype: compile error -> behavior
title: debugger issue concerning importing user created modules into another program -> IDLE debugger: problem importing user created module
messages: + msg313744
stage: test needed
2018-03-13 05:02:16jcdlrcreate