DEBUGGER NOT WORKING

Answered

The debugger is not working but file is running normally. I cannot seem to find the issue posted anywhere else. 

When I am running it is saying: 

"Connection to Python Debugger failed. Interrupted function call: accept failed." and I am also getting this error.

Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.1\plugins\python-ce\helpers\pydev\pydevd.py", line 28, in <module>
from _pydevd_bundle.pydevd_constants import IS_JYTH_LESS25, IS_PYCHARM, get_thread_id, get_current_thread_id, \
File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.1\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_constants.py", line 216, in <module>
from _pydev_imps._pydev_saved_modules import thread
File "C:\Program Files\JetBrains\PyCharm Community Edition 2021.1.1\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_saved_modules.py", line 21, in <module>
import xmlrpc.client as xmlrpclib
File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\xmlrpc\client.py", line 135, in <module>
from decimal import Decimal
File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\decimal.py", line 3, in <module>
from _decimal import *
AttributeError: module 'numbers' has no attribute 'Number'

Process finished with exit code 1

0
2 comments

Do you have any modules shadowing standard libraries (e.g. numbers.py, site.py, etc.)?

1

Yes. I just changed it's name and it started working. Thanks a lot. 

 

0

Please sign in to leave a comment.