Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
请提供帮助:IPython for Emacs on Windows崩溃_Python_Windows_Emacs_Ipython - Fatal编程技术网

请提供帮助:IPython for Emacs on Windows崩溃

请提供帮助:IPython for Emacs on Windows崩溃,python,windows,emacs,ipython,Python,Windows,Emacs,Ipython,问题更新:为什么[1]中没有提示? 请参阅Emacs中IPython命令行的以下输出 Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] Type "copyright", "credits" or "license" for more information. IPython 0.10 -- An enhanced Interactive Python. ? -> In

问题更新:为什么[1]中没有提示?

请参阅Emacs中IPython命令行的以下输出

Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 0.10 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.


import sys
sys.path
Out[4]: 
['',
 'C:\\Python25\\scripts',
 'C:\\Python25\\lib\\site-packages\\pyflakes-0.4.0-py2.5.egg',
 'C:\\Python25\\lib\\site-packages\\pylint-0.21.3-py2.5.egg',
 'C:\\Python25\\lib\\site-packages\\logilab_astng-0.20.3-py2.5.egg',
 'C:\\Python25\\lib\\site-packages\\logilab_common-0.52.0-py2.5.egg',
 'C:\\Python25\\lib\\site-packages\\unittest2-0.5.1-py2.5.egg',
 'C:\\Python25\\Lib\\site-packages\\pyflakes',
 'C:\\Python25\\Lib\\site-packages\\Pymacs',
 'C:\\Python25\\Lib\\site-packages\\rope',
 'C:\\Python25\\Lib\\site-packages\\ropemacs',
 'C:\\Python25\\Lib\\site-packages\\ropemode',
 'C:\\WINDOWS\\system32\\python25.zip',
 'C:\\Python25\\DLLs',
 'C:\\Python25\\lib',
 'C:\\Python25\\lib\\plat-win',
 'C:\\Python25\\lib\\lib-tk',
 'C:\\Python25',
 'C:\\Python25\\lib\\site-packages',
 'C:\\Python25\\lib\\site-packages\\win32',
 'C:\\Python25\\lib\\site-packages\\win32\\lib',
 'C:\\Python25\\lib\\site-packages\\Pythonwin',
 'C:\\Python25\\lib\\site-packages\\IPython/Extensions',
 u'C:\\Home\\_ipython']

我正在Windows XP上使用IPython 0.10、Python 2.5、EmacsW32 23.1和IPython.el Rev.2927。当我在Emacs中调用pythonshell时,它总是崩溃。有人能帮忙解决这个问题吗?非常感谢

更新:我已尝试修复,但没有任何帮助

IPython崩溃,出现以下长时间调试信息:

错误:发生意外错误 在标记化输入时,请执行以下操作 回溯可能已损坏或无效 错误消息是:('EOF in 多行语句',(14,0))

---------------------------------------------------------------------------类型错误
Python 2.5.2:C:\Python25\Python.exe 2010年9月30日星期四14:00:08问题 在执行Python代码时发生错误。在这里 是函数调用的顺序 导致错误的原因是 最近(最里面的)通话最后一次

c:\Python25\Scripts\ipython-script.py 在() 1. 2. 3. 4. 5. 6. 7. ----> 8 全局加载入口点= 9 #!C:\Python25\python.exe 10#EASY-INSTALL-ENTRY-SCRIPT:'ipython==0.10','console#u scripts','ipython' 11要求='ipython==0.10' 12进口系统 13从pkg_资源导入加载入口点 14 15系统出口( 16加载入口点('ipython==0.10', '控制台脚本','ipython'() 17 ) 18 19 20 21 22 23 24 25 26 27 28 29 30 三十一

C:\Python25\lib\site packages\ipython-0.10-py2.5.egg\ipython\ipapi.pyc 在launch_new_实例中(user_ns=None, shellclass=无) 541 542 def check_hotname(自我,姓名): 543如果self.hotnames中的名称: 544 self.debug_堆栈(“热名称“%s”捕获“%name”) 545 546 547 def启动新实例(用户)= 无,shellclass=无): 548“创建并启动新的ipython实例。 549 550即使没有已初始化的 551 ipython会话正在运行。 552 553这也被用作“ipython”的鸡蛋入口点 剧本 554 555 """ -->556 ses=生成会话(用户,外壳类) 557 ses.mainloop() 558 559 560 def生成用户(用户=无): 561“”返回有效的用户交互命名空间。 562 563这构建了一个dict,其中包含了所需的最少信息,可以 经营 564有效的IPython用户命名空间,您可以将其传递给 各种嵌入 伊皮顿565班。 566 567此API当前已弃用。请使用 ipapi.make_user_namespace()代替 568创建本地和全局命名空间对象 同时。 569 570:参数: 571用户:类似dict,可选

C:\Python25\lib\site packages\ipython-0.10-py2.5.egg\ipython\ipapi.pyc 在make_会话中(user_ns=None, shellclass=无) 669 670 def make_会话(用户编号=无,外壳类别=无): 671“”生成,但不启动IPython会话。 672 673稍后,您可以对返回的对象调用obj.mainloop()。 674 675输入: 676 677-user_ns(None):用作用户名称空间的dict 带首字母 678数据。 679 680警告:当会话存在时,不应运行此操作 已经 681 682进口IPython.Shell 683如果shellclass为无: -->684返回IPython.Shell.start(用户) 685返回外壳类(user\n=user\n) 686 687 688 689 690 691 692 693 694 695 696 697 698 699

C:\Python25\lib\site packages\ipython-0.10-py2.5.egg\ipython\Shell.pyc 启动时(用户\u ns=None)1226
th_mode=special_opts.pop()1227
除KeyError外:1228
th_模式='tkthread'1229
返回THU外壳[THU模式]1230
1231232#这是 应该由外部代码调用。
1233 def启动(用户=无):
1234“返回正在运行的shell 例如,处理线程 选项。1235 1236这是一个 工厂功能将 实例化适当的IPython外壳
1237基于用户的线程 选择。需要这样一个选择器 因为1238不同的GUI 工具箱需要不同的螺纹 处理细节。”“1239 1240
shell=\u选择\u shell(sys.argv) ->1241返回shell(user_ns=user_ns)1242 1243#一些 用于向后兼容的别名
1244 IPythonShell=IPShell 1245 IPythonShellEmbed=IPShellEmbed
1246#************结束 文件 ***********1247124812491250 12511252
1253 1254 1255 1256

C:\Python25\lib\site packages\ipython-0.10-py2.5.egg\ipython\Shell.pyc 在里面 init(self=,argv=None, 用户\u ns=无,用户\u全局\u ns=无, 调试=1,shell_类=) 58#等待多线程shell的默认超时(秒) 59 GUI_超时=10 60 61

----------------------------------------------------------------------------- 干净的 63#接口。稍后在重新组织内部时,对 用这个 不应该改变。 65 66类IPShell: 67“创建IPython实例” 68 69 def init(self,argv=None,user\n
 62 # This class is trivial now, but I want to have it in to publish a
 81 def kill_embedded(self,parameter_s=''):
 82     """%kill_embedded : deactivate for good the current
774
775
776
777
778
779
780
781
782
783
784
785
  8 import sys
  9
 10 try:
 11     pyreadline_codepage=sys.stdout.encoding
 12 except AttributeError:        #This error occurs when pdb imports readline and doctest has replaced
 13                               #stdout with stdout collector
 14     pyreadline_codepage="ascii"   #assume