2010-07-22 58 views
1

我有一個程序,在Py2.4中運行桃色。我導入TobiiPlugin.dll文件,然後運行我的腳本。Python 2.5導入dll AttributeError

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中的其他人,他們也沒有工作。謝謝!

回答