looks like the best option to vnc from Python is vncdotool module. I've been using it with Python2 without any problem. Now I am moving toward to Python3. It seems not working at all on my Mac. Here is the problem.
after creating venv and install pip3 install vncdotool. I get immediate error when running the vncdo command. It says "print data". looks like it is running Python2 code "print 'xxx' vs print('xxx')"
(vnc) mac:vnc user$ vncdo
Traceback (most recent call last):
File "/Users/user/Documents/code/vnc/bin/vncdo", line 11, in <module>
load_entry_point('vncdotool==0.10.0', 'console_scripts', 'vncdo')()
File "/Users/user/Documents/code/vnc/lib/python3.6/site-packages/pkg_resources/__init__.py", line 565, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/Users/user/Documents/code/vnc/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
return ep.load()
File "/Users/user/Documents/code/vnc/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2291, in load
return self.resolve()
File "/Users/user/Documents/code/vnc/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2297, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/Users/user/Documents/code/vnc/lib/python3.6/site-packages/vncdotool/command.py", line 79
print data
^
SyntaxError: Missing parentheses in call to 'print'
(vnc) Mac:vnc user$
when I run python3 in interactive mode, and trying to import the api module. I got another error saying Queue is not available.
(vnc) Mac:vnc user$ python
Python 3.6.1 (default, Apr 4 2017, 09:40:21)
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from vncdotool import api
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/user/Documents/code/rdpvnc/lib/python3.6/site- packages/vncdotool/api.py", line 8, in <module>
import Queue
ModuleNotFoundError: No module named 'Queue'
>>>
I checked the github page seeing that there is indeed python3 support. however, there is not much info anywhere on internet.
setup.py added python 3 8 months ago