简体   繁体   中英

PyDev interactive Console 'runfile' error

when i try to run code in the interactive console using Alt+Ctrl+Enter it gives that error

Traceback (most recent call last):
  File "<input>", line 1, in <module>
NameError: name 'runfile' is not defined

using python 2.7.6 eclipse 4.4 PyDev 3.7

This is really a bug in PyDev 3.7 (and 3.7.1).

The next version should have it fixed. You can apply the change: https://github.com/fabioz/PyDev.Debugger/commit/06fb7661875f27ae72aba6e037bb353a8629633c locally to have it fixed in your local installation (that file is in org.python.pydev/pysrc/pydevconsole.py)

This problem seems to be related to the latest Pydev version 3.7

I have experienced the same problem on 2 installations after upgrading Pydev from 3.6 to 3.7

Eclipse 4.3.2 Python 2.7.6 and 3.4.0 Pydev upgraded from 3.6 to 3.7

After uninstalling Pydev 3.7 and reinstalling version 3.6 the problem is gone for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM