python debug模式报错_新手求助, PycharmDebug 模式报错 Traceback (most recent call last)

博客展示了Python在Debug模式下的报错信息,包含ModuleNotFoundError、ImportError、SyntaxError等多种错误,如找不到'_pydevd_bundle_ext'模块,无法从'code'导入'InteractiveConsole',以及'exec'调用缺少括号等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1

2019-08-06 06:33:55 +08:00

D:\Anaconda\python.exe "D:\jetbrains\PyCharm 2019.1.2\helpers\pydev\pydevd.py" --multiproc --qt-support=pyside --client 127.0.0.1 --port 6835 --file D:/PythonDemo/code/cal.py

Traceback (most recent call last):

File "D:\jetbrains\PyCharm 2019.1.2\helpers\pydev\_pydevd_bundle\pydevd_cython_wrapper.py", line 2, in

from _pydevd_bundle_ext.pydevd_cython import trace_dispatch, PyDBAdditionalThreadInfo, global_cache_skips, global_cache_frame_skips

ModuleNotFoundError: No module named '_pydevd_bundle_ext'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "D:\jetbrains\PyCharm 2019.1.2\helpers\pydev\_pydevd_bundle\pydevd_console_integration.py", line 2, in

from code import InteractiveConsole

ImportError: cannot import name 'InteractiveConsole' from 'code' (D:\PythonDemo\code\__init__.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "D:\jetbrains\PyCharm 2019.1.2\helpers\pydev\pydevd.py", line 28, in

from _pydevd_bundle.pydevd_additional_thread_info import PyDBAdditionalThreadInfo

File "D:\jetbrains\PyCharm 2019.1.2\helpers\pydev\_pydevd_bundle\pydevd_additional_thread_info.py", line 17, in

from _pydevd_bundle.pydevd_cython_wrapper import PyDBAdditionalThreadInfo

File "D:\jetbrains\PyCharm 2019.1.2\helpers\pydev\_pydevd_bundle\pydevd_cython_wrapper.py", line 32, in

mod = __import__(check_name)

File "_pydevd_bundle\pydevd_cython_win32_37_64.pyx", line 139, in init _pydevd_bundle.pydevd_cython_win32_37_64

File "D:\jetbrains\PyCharm 2019.1.2\helpers\pydev\_pydevd_bundle\pydevd_breakpoints.py", line 16, in

from _pydevd_bundle.pydevd_comm import get_global_debugger

File "D:\jetbrains\PyCharm 2019.1.2\helpers\pydev\_pydevd_bundle\pydevd_comm.py", line 80, in

from _pydevd_bundle import pydevd_console_integration

File "D:\jetbrains\PyCharm 2019.1.2\helpers\pydev\_pydevd_bundle\pydevd_console_integration.py", line 4, in

from _pydevd_bundle.pydevconsole_code_for_ironpython import InteractiveConsole

File "D:\jetbrains\PyCharm 2019.1.2\helpers\pydev\_pydevd_bundle\pydevconsole_code_for_ironpython.py", line 305

exec code in self.locals

^

SyntaxError: Missing parentheses in call to 'exec'

Process finished with exit code 1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值