1

Py2.4 で peachy を実行するプログラムがあります。TobiiPlugin.dll ファイルをインポートして、スクリプトを実行します。

import TobiiPlugin as tobii
tobii.setGazeSubjectProfile(3, 0)

しかし、コードを Py2.5 に移動すると、それは私に腹を立てて、

Traceback (most recent call last):
  File "C:\tobiiDll\TobiiPlugin\Debug\logger_speech.py", line 274, in <module>
    main()
  File "C:\tobiiDll\TobiiPlugin\Debug\logger_speech.py", line 242, in main
    tobii.setGazeSubjectProfile(3, 0)
  File "C:\Python25\lib\ctypes\__init__.py", line 325, in __getattr__
    func = self.__getitem__(name)
  File "C:\Python25\lib\ctypes\__init__.py", line 330, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'setGazeSubjectProfile' not found
>>>

どうやってすべてが行方不明になったのですか?この機能だけではありません。DLLから他のものを試しましたが、どちらも機能しませんでした。ありがとうございました!

4

1 に答える 1

0

何らかの理由で、Tobii SDK 3.0 Betaは Python 2.4 または Python 2.6 でのみ動作します。

于 2011-03-22T13:25:42.360 に答える