【问题标题】:Debug fails on pycharm在 pycharm 上调试失败
【发布时间】:2015-11-26 13:38:43
【问题描述】:

我是 Python 新手,正在尝试使用 PyCharm 运行脚本。当我运行脚本时,我得到以下输出

/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/bin/python2.7
-u /Applications/PyCharm CE.app/Contents/helpers/pydev/pydev_run_in_console.py 56230 56231 

/Users/chintan.shah/Documents/python-dev/python-scripts/src/examples/kalman_filter.py 29325

/usr/local/lib/python2.7/site-packages/IPython/utils/traitlets.py:5:
UserWarning: IPython.utils.traitlets has moved to a top-level traitlets package.
warn("IPython.utils.traitlets has moved to a top-level traitlets package.")

Running /Users/chintan.shah/Documents/python-dev/python-scripts/src/examples/kalman_filter.py
PyDev console: using IPython 4.0.0

此外,当我尝试调试时,代码不会在调试点停止并且我收到警告

IPython.utils.traitlets has moved to a top-level traitlets package.
warn("IPython.utils.traitlets has moved to a top-level traitlets package.")

脚本应该显示一些图,但它没有。当我在 PyCharm 的 Python 控制台中复制粘贴整个文件时,一切正常。

【问题讨论】:

  • 我的给出了同样的警告,但运行良好。

标签: python django python-2.7 pycharm jetbrains-ide


【解决方案1】:

也许你已经安装了 IPython 4.0。如果是这种情况,我建议您降级您的版本。我也使用 Pycharm,在我的案例中我所做的是禁用 IPython,如以下链接中所述:Disable ipython console in pycharm

【讨论】:

    猜你喜欢
    • 2016-09-07
    • 1970-01-01
    • 2019-05-06
    • 1970-01-01
    • 2014-05-18
    • 2017-12-27
    • 2017-01-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多