numpy 1.6.1和python 2.7以及ropemacs崩溃代码完成

发布于 2025-01-07 22:04:19 字数 1272 浏览 0 评论 0原文

所以现在我将 python 从 2.7 更新到 2.7.2,我无法再在 emacs 中调用绳索代码辅助。

import numpy as np
x = np.arange(0, 5, 0.1)

在执行 M-/ 或 Mx rod-code-assist 时,我有典型的 rod 0.9.3、ropemode-0.1-rc2、pymacs 0.24-beta2、ropemacs 0.6

我在 numpy 命名空间上得到以下跟踪,但我在 python 中没有得到2.7: (对于 sciPy 来说也是如此;矛盾的是,matplotlib 仍然有效)

pymacs-report-error: Python: Traceback (most recent call last):
  <abridged>
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\ast.py", line 30, in walk
    return method(node)
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\evaluate.py", line 166, in _Call
    if '__new__' in pyobject:
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\pyobjects.py", line 32, in __contains__
    return key in self.get_attributes()
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\utils.py", line 10, in _wrapper
    setattr(self, name, func(self, *args, **kwds))
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\builtins.py", line 81, in get_attributes
    result = _object_attributes(self.builtin, self)
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\builtins.py", line 123, in _object_attributes
    child = getattr(obj, name)
AttributeError: __abstractmethods__

so now that I updated python from 2.7 to 2.7.2 i can no longer invoke rope-code assist in emacs.

import numpy as np
x = np.arange(0, 5, 0.1)

I have the typical rope 0.9.3, ropemode-0.1-rc2, pymacs 0.24-beta2, ropemacs 0.6

when doing M-/ or M-x rope-code-assist I get the following trace on numpy namespaces which I didn't get in python 2.7:
(Same deal for sciPy; paradoxically, matplotlib still works)

pymacs-report-error: Python: Traceback (most recent call last):
  <abridged>
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\ast.py", line 30, in walk
    return method(node)
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\evaluate.py", line 166, in _Call
    if '__new__' in pyobject:
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\pyobjects.py", line 32, in __contains__
    return key in self.get_attributes()
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\utils.py", line 10, in _wrapper
    setattr(self, name, func(self, *args, **kwds))
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\builtins.py", line 81, in get_attributes
    result = _object_attributes(self.builtin, self)
  File "c:\devel\Python\2.7-bin\lib\site-packages\rope\base\builtins.py", line 123, in _object_attributes
    child = getattr(obj, name)
AttributeError: __abstractmethods__

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文