Robot framework, Sikuli hello_world demo script is failing? - robotframework

I have installed Robot framework 2.8.7 in a solaris server and added sikuli library to it . when tried to run demo script "Hello world" i'm getting the following error.
bash-3.2# pybot /robot/robotframework-SikuliLibrary-master/demo/hello_world/testsuite_sikuli_demo.txt
*[ WARN ] Test get_keyword_names failed! Connecting remote server at http://127.0.0.1:42821/ failed: <Fault 0: 'Failed to invoke method get_keyword_names in class org.robotframework.remoteserver.servlet.ServerMethods: java.lang.RuntimeException'>
[ ERROR ] Error in file '/robot/robotframework-SikuliLibrary-master/demo/hello_world/testsuite_sikuli_demo.txt': Initializing test library 'SikuliLibrary' with no arguments failed: Failed to get_keyword_names!
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/SikuliLibrary/sikuli.py", line 41, in __init__
self.remote = self._connect_remote_library()
File "/usr/lib/python2.7/site-packages/SikuliLibrary/sikuli.py", line 138, in _connect_remote_library
self._test_get_keyword_names(remote)
File "/usr/lib/python2.7/site-packages/SikuliLibrary/sikuli.py", line 155, in _test_get_keyword_names
raise RuntimeError('Failed to get_keyword_names!')*
I have done the same setup on windows machine and it is working fine. Python version used in solaris is 2.6.Can you let me know how to resolve this?
Thanks

Related

Pyinstaller No such file or directory:

I recently compiled a python 3 file using pyinstaller. When I tried to run
./main
it said the following message:
Fatal Python error: (pygame parachute) Segmentation Fault
Traceback (most recent call last):
File "pygame/pkgdata.py", line 67, in getResource
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/_MEIkMQ7na/pygame/freesansbold.ttf'
Aborted (core dumped)
I do use the pygame module.
Try this:
pyinstaller -F --add-data="<PATH_OF_FILE_IN_YOUR_ENV>/pygame/freesansbold.ttf;/pygame/freesansbold.ttf" main.py
Basically you need to find freesansbold.ttf from your virtual environment and explicitly add it inside the bundle.

NameError: name 'error' is not defined

So I was making a cheat program for a game using scapy, and when I ran it in visual studios it worked fine, but when I say in cmd
python myprogram.py
It says:
Traceback (most recent call last):
File "ScapyTest.py", line 135, in <module>
sniff(prn=action)
File "C:\Program Files\Python36\lib\site-packages\scapy\sendrecv.py", line
592, in sniff
sel = select([s],[],[],remain)
File "C:\Program Files\Python36\lib\site-packages\scapy\supersocket.py",
line 38, in fileno
return self.ins.fileno()
File "C:\Program Files\Python36\lib\site-packages\scapy\arch\pcapdnet.py",
line 232, in fileno
error("Cannot get selectable PCAP fd on Windows")
NameError: name 'error' is not defined
Im unsure if it literally means it doesnt know what an error is, or if there is some logical reason behind it not knowing what an error is. It is something with sniff but im not sure what. There are also no errors in my code so I dont know why its saying this
This looks like an old bug. You should get the current development version (from the official repository, install it and try again.

Install AutoIt Library for Robot Framework - Win 10

I am trying to install the autoIt library to use it with robotFramework, but I keep encoutering this error:
Don't think we need to unregister the old one...
%SYSTEMROOT%\system32\regsvr32.exe /S C:\xxx xxx\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll
Traceback (most recent call last):
File "setup.py", line 70, in <module>
subprocess.check_call(cmd, shell=True)
File "C:\Python27\lib\subprocess.py", line 504, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '%SYSTEMROOT%\system32\regsvr32.exe /S C:\xxx xxx\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll' returned non-zero exit status 1
I have tried all the solution found so far on stackoverflow:
Run cmd as Administrator
Set HOMEDRIVE environment variable
Manually run this command %SYSTEMROOT%\system32\regsvr32.exe /S C
C:\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll (which throw no
error)
Using a fixed setup
py script :https://github.com/qitaos/robotframeworkautoitlibrary/issues/30
( which trhow this error :subprocess.CalledProcessError: Command 'python "C:\xxx xxx\Python27\Lib\site-packages\win32com\client\makepy.py" "C:\xxx xxx\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll"' returned non-zero exit status 1
Does anyone have others solutions ?
(If not I will go for SikuliX, even if AutoIt is the best for Win automation)
Thanks !

saltstack dotnet install fails on windows minion

I'm trying to install applications on windows server 2012r2 minion. Namely I'm interested on MS management and .NET frameworks. I can install apps like winscp and firefox successfully, so basically it should work.
Install of .NET (dotnet.sls) gives me this:
# salt 'minion3' pkg.install dotnet
minion3:
----------
dotnet:
Unable to locate package dotnet
.sls points to MS download site, where the actual file can be downloaded.
On the minion side I've got:
2016-04-13 11:41:27 [salt.loaded.int.module.cmdmod][INFO ] Executing command 'Powershell -NonInteractive "Import-Module ServerManager"' in directory 'C:\\Windows\\system32\\config\\systemprofile'
2016-04-13 11:41:28 [salt.loaded.int.module.win_pkg][ERROR ] Unable to locate package dotnet
And asking for the available versions (pkg.available_version dotnet) gives me:
minion3:
The minion function caused an exception: Traceback (most recent call last):
File "c:\salt\bin\lib\site-packages\salt\minion.py", line 1071, in _thread_return
return_data = func(*args, **kwargs)
File "c:\salt\bin\lib\site-packages\salt\modules\win_pkg.py", line 103, in latest_version
latest_available = _get_latest_pkg_version(pkg_info)
File "c:\salt\bin\lib\site-packages\salt\modules\win_pkg.py", line 1088, in _get_latest_pkg_version
return sorted(pkginfo, cmp=_reverse_cmp_pkg_versions).pop()
IndexError: pop from empty list
None of the other state files I've tried do not give above errors.
So, what is going on and how to correct this?

Cloudify nodecellar,Task failed 'script_runner.tasks.run' -> RecoverableError('ProcessException: ',)

when I try to install nodecellar with Cloudify,I am getting the following error
2015-07-13T17:31:03 LOG <nodecellar> [mongod_a50aa.configure] ERROR: Exception raised on operation [script_runner.tasks.run] invocation
Traceback (most recent call last):
File "/root/cloudify.host_dba5c/env/local/lib/python2.7/site-packages/cloudify/decorators.py", line 125, in wrapper
result = func(*args, **kwargs)
File "/root/cloudify.host_dba5c/env/local/lib/python2.7/site-packages/script_runner/tasks.py", line 58, in run
return process_execution(script_func, script_path, ctx, process)
File "/root/cloudify.host_dba5c/env/local/lib/python2.7/site-packages/script_runner/tasks.py", line 74, in process_execution
script_func(script_path, ctx, process)
File "/root/cloudify.host_dba5c/env/local/lib/python2.7/site-packages/script_runner/tasks.py", line 143, in execute
stderr_consumer.buffer.getvalue())
How can I fix this problem?
This exception is raised by the Cloudify Script Plugin you ran a script, which exited with a non-zero error code. Here is the source of that error.
The script that returned non-zero code is that script which is mapped to the configure operation on the mongod node. Which script that is depends on the version of the Nodecellar blueprint that you are using.
I can't give a more detailed answer without information regarding the specific blueprint version, which Cloudify version you have installed, details about your provider (local, Vagrant, Openstack, AWS), and OS (Ubuntu, Centos, etc).

Resources