Question #708582 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/708582
Summary changed to:
Issues in accessing VNC (linux application) using Sikuli
Description changed to:
Hi Team,
Am trying to set up sikuli with pycharm and use it to perform actions on the
linux applications which are connected through VNC.
Imported sikulix4python project in pycharm and am able to use from
sikulix4python import * and create a sikuli object & access functions like
click(), hover() etc.
Can you please shed some light after importing above project how can we pass
the control of sikuli object to VNC.
Tried below steps, but no luck.
Installed Jython 2.7 software in laptop.
Did pip install pyjnius
Tried pip install sikuli but resulted in below error. (Tried it so that i could
use from sikuli import * and its corresponding methods)
JDK and JRE are installed and verified os.environ.get("JRE_HOME")) is returning
correct path. Tried installing this after upgrading setuptools and pip too but
no luck.
Collecting sikuli
Using cached sikuli-0.1.tar.gz (17.4 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 1
[57 lines of output]
WARNING: Skipping page
https://github.com/kevlened/pyjnius/releases/download/v1.1/jnius-1.1-dev.win32-py2.7.exe
because the GET request got Content-Type: application/octet-stream. The only
supported Content-Types are application/vnd.pypi.simple.v1+json,
application/vnd.pypi.simple.v1+html, and text/html
error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 1
[8 lines of output]
'readlink' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File
"AppData\Local\Temp\pip-wheel-v0gllke9\jnius_d1c87504add246fb9dc13c82bf18ddc9\setup.py",
line 121, in
raise Exception('Unable to determine JRE_HOME')
Exception: Unable to determine JRE_HOME
[end of output]
note: This error originates from a subprocess, and is likely not a problem
with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Traceback (most recent call last):
File
"AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\installer.py",
line 75, in fetch_build_egg
subprocess.check_call(cmd)
File "AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 369,
in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command
'['\\AppData\\Local\\Programs\\Python\\Python310\\python.exe', '-m', 'pip',
'--disable-pip-version-check', 'wheel', '--no-deps', '-w',
'\\AppData\\Local\\Temp\\tmp5pjet_q5', '--quiet', '--find-links',
'https://github.com/kevlened/pyjnius/releases/download/v1.1/jnius-1.1-dev.win32-py2.7.exe',
'jnius>=1.1-dev']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File
"AppData\Local\Temp\pip-install-kzuno3ti\sikuli_8b23f849344340c29a60e1524d12572d\setup.py",
line 16, in
setup(
File
"AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\__init__.py",
line 152, in setup
_install_setup_requires(attrs)
File
"AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\__init__.py",
line 147, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File
"AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py",
line 806, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File
"AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources\__init__.py",
line 766, in resolve
dist = best[req.key] = env.best_match(
File
"AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources\__init__.py",
line 1051, in best_match
return self.obtain(req, installer)
File
"AppData\Local\Programs\Python\Python310\lib\site-packages\pkg_resources\__init__.py",
line 1063, in obtain
return installer(requirement)
File
"AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\dist.py",
line 877, in fetch_build_egg
return fetch_build_egg(self, req)
File
"AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\installer.py",
line 77, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command
'['\\AppData\\Local\\Programs\\Python\\Python310\\python.exe', '-m', 'pip',