我试图在我的Ubuntu 12.04上运行dogtail 0.8.2以便能够自动执行一些测试。我在这里下载了dogtail 0.8.2:https://fedorahosted.org/released/dogtail/并使用以下命令进行安装。
sudo python ./setup.py install --prefix=/usr/local
然后我想运行这个例子:https://git.fedorahosted.org/cgit/dogtail.git/tree/examples/gedit-test-utf8-tree-api.py 但我最终出现了以下错误。
Traceback (most recent call last):
File "./gedit.py", line 6, in <module>
from dogtail import tree
File "/usr/local/lib/python2.7/dist-packages/dogtail/tree.py", line 63, in <module>
from config import config
File "/usr/local/lib/python2.7/dist-packages/dogtail/config.py", line 15, in <module>
class _Config(object):
File "/usr/local/lib/python2.7/dist-packages/dogtail/config.py", line 117, in _Config
'scratchDir' : '/'.join((_userTmpDir('dogtail'), '')),
File "/usr/local/lib/python2.7/dist-packages/dogtail/config.py", line 13, in _userTmpDir
return '-'.join(('/'.join(('/tmp', baseName)), os.getlogin()))
OSError: [Errno 2] No such file or directory
我对Python很陌生,所以它可能是一个非常简单的问题,但我真的不知道如何从这里继续。我很乐意在这里提供任何帮助。