VNCdool无法连接到远程vnc服务器

2024-10-06 06:44:20 发布

您现在位置:Python中文网/ 问答频道 /正文

我陷入了这个错误,我不知道为什么我会犯这个错误。我在使用vncdool时成功地安装了所有的前置需求,我了解到它们现在支持python3。我正在使用RealVNC,但我想这并不重要。 下面是错误

client = api.connect('vnchost:192.168.1.19:5800',password='pw@0987676')
client.captureScreen('screenshot.png')
client.keyPress('enter')

File "C:\Python3.7.4\lib\site-packages\vncdotool\api.py", line 108, in proxy_call
    raise VNCDoException(result)
vncdotool.api.VNCDoException: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.DNSLookupError'>: DNS lookup failed: vnchost.
]

Tags: clientapiconnect错误passwordpython3pw我会