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から他のものを試しましたが、どちらも機能しませんでした。ありがとうございました!