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 piscvau@yahoo.fr
Recipients piscvau@yahoo.fr, terry.reedy
Date 2018-09-07.18:30:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536345027.41.0.56676864532.issue34609@psf.upfronthosting.co.za>
In-reply-to
Content
Idle is unable to import unittest. and raises an attributeError.
Output of the Python shell Idle is included in the file bug idle.

several files raise this exception
on of them is included in this report
the Trace for Idle is as follows :
Python 3.6.5 (default, Apr  1 2018, 05:46:30) 
[GCC 7.3.0] on linux
Type "copyright", "credits" or "license()" for more information.
>>> 
[DEBUG ON]
>>> 
 RESTART: /home/odile/Documents/dev_logiciels/pyhton/openclassrooms/labyrinthe/roboc2/test/test_carte.py 
Traceback (most recent call last):
  File "/home/odile/Documents/dev_logiciels/pyhton/openclassrooms/labyrinthe/roboc2/test/test_carte.py", line 5, in <module>
    import unittest
  File "<frozen importlib._bootstrap>", line 968, in _find_and_load
  File "<frozen importlib._bootstrap>", line 148, in __enter__
  File "<frozen importlib._bootstrap>", line 174, in _get_module_lock
  File "<frozen importlib._bootstrap>", line 59, in __init__
  File "<frozen importlib._bootstrap>", line 59, in __init__
  File "/usr/lib/python3.6/bdb.py", line 51, in trace_dispatch
    return self.dispatch_line(frame)
  File "/usr/lib/python3.6/bdb.py", line 69, in dispatch_line
    self.user_line(frame)
  File "/usr/lib/python3.6/idlelib/debugger.py", line 24, in user_line
    self.gui.interaction(message, frame)
AttributeError: '_ModuleLock' object has no attribute 'name'
[DEBUG ON]

Idle version is 3.6.5
History
Date User Action Args
2018-09-07 18:30:27piscvau@yahoo.frsetrecipients: + piscvau@yahoo.fr, terry.reedy
2018-09-07 18:30:27piscvau@yahoo.frsetmessageid: <1536345027.41.0.56676864532.issue34609@psf.upfronthosting.co.za>
2018-09-07 18:30:27piscvau@yahoo.frlinkissue34609 messages
2018-09-07 18:30:27piscvau@yahoo.frcreate