1

Windows 7 64ビットにpytablesをインストールしましたが、すべてのテストに合格しました。コマンド プロンプトからの python と IDLE の両方で StringCol クラスを正常に表示でき、Eclipse の python コンソールでさえもそれを表示できます。

ただし、PyDev のオートコンプリートはクラスを検出できず、エディターは undefined variable: StringCol というエラーを表示し続けます。

エラーにもかかわらず、次のコードは PyDev を使用して Eclipse で正常に実行されます

from tables import *

if __name__ == '__main__':
    a = StringCol(34)
    print (a)

ワークスペースを切り替え、プロジェクトを最初から作成し、クラスを含む pyc を削除しました。何も役に立たないようです。明らかに本来あるべき場所に座っているクラスをpydevに認識させるにはどうすればよいですか?

4

1 に答える 1

1

Have you configured the "forced builtins" in the interpreter. From the getting-started guide:

Additionally, you may add other libraries that you want to treat as builtins, such as os, wxPython, OpenGL, etc. This is very important, because PyDev works on the java side only with static information, but some modules don't have much information when analyzed statically, so, PyDev creates a shell to get information on those.

于 2013-05-22T18:59:17.960 に答える