robot command not found if installing robotframework with pip --user - robotframework

I am getting an error when execute robot scripts through CMD (windows)
'robot' is not recognized as an internal or external command, operable
program or batch file"
My team installed Python in C:\Python27 folder and I installed ROBOT framework and all required libraries with the following command
"python -m pip install -U setuptools --user, python -m pip install -U robotframework --user"
We are not authorized to install anything in C drive and all libraries were installed successfully. But when I try to execute the scripts through CMD then getting error.
Note:
All Robot Libaries are installed in "C:\Users\bab\AppData\Roaming\Python\Python27\site-packages"
I did set up the Env variables with above path
Scripts are working through ECLIPSE and using the command below
Command
C:\Python27\python.exe -m robot.run --listener C:\Users\bab\AppData \Local\Temp\RobotTempDir2497069958731862237\TestRunnerAgent.py:61106 --argumentfile C:\Users\bab\AppData\Local\Temp\RobotTempDir2497069958731862237\args_c4fe2372.arg C:\Users\bab\Robot_Sframe\E2Automation
Please help me, as this step is very key to integrate my scripts with Jenkins

Thanks a lot, it works for me. Just write the following in the terminal:
python -m robot "your file name"
In this case the file name is TC1.robot, so the command would be:
python -m robot TC1.robot

I was getting an error when executing robot scripts through linux command of
sudo pip install robotframework
and the below command worked for me:
sudo pip3 install robotframework

I've installed robotframework using this command "sudo pip3 install robotframework" in jenkins server. and now my jenkins pipeline script can now run my robot scripts

I'm not very comfort with Windows environment, so let me give my two cents:
1) Try to set the PATH or PYTHONPATH to the location where your robot file is
2) Try to run robot from python script. I saw that you tried it above, but take a look at the RF User Guide and see if you are doing something wrong:
https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#using-robot-and-rebot-scripts
maybe just
python -m robot ....
is fine

Thanks, It worked , first I cd to the Site packeges where Robot is installed and ran with Python -m command cd Users\babo\AppData\Roaming\Python\Python27\site-packages\robot>C:\Python27\python.exe -m robot.run -d Results C:\Users\bab\Robot_Sframe\E2EAutomation\Test_Suite\Enrollment_834.robo
We can close this

Related

Centos6 PHP7 Install SPL_Types

I am running CentOS 6 and am trying to install the SPL_Types extension for PHP7. I have php7 up and running however, any time I do pecl install SPL_Types,
I get massive compiler errors and can't find a way around. Ubuntu users can fix the issue by installing libpcre3-dev, but this is not a valid package on CentOS 6. I have verified that pcre and pcre-devel are installed and the latest version. Does anyone have a solution to this?
EDIT 1: A full log when I run the sudo pecl install SPL_Types command: http://pastebin.com/QG3mFjaf
I got it figured out. For those who wish to know, I had to use a third party source to compile and install the extension, then I had to edit my php.ini file manually to add the new module.
https://github.com/esminis/php_pecl_spl_types
then once you have it, run the commands:
phpize --clean
phpize
chmod +x configure
./configure --prefix=/usr
make install
Then, edit your php.ini file and under the dynamic modules section, add
extension=spl_types.so
Restart the httpd service by doing
sudo service httpd restart
Then verify the new module is loaded with phpinfo().

Unable to build Dockerfile Error: Unable to access jarfile /dev/docker-files/billing/wlp-extended-8.5.5.9.jar

here's the directory of my ubuntu.
/../../../
BillingMicroservice.war
db-derby-10.11.1.1-bin.tar.gz
Dockerfile
wlp-extended-8.5.5.9.jar
wlp-runtime-8.5.5.9.jar
and here's my Dockerfile
FROM ubuntu
ADD wlp-extended-8.5.5.9.jar /dev/root/
ADD wlp-runtime-8.5.5.9.jar /dev/root/
ADD BillingMicroservice.war /dev/root/
ADD db-derby-10.11.1.1-bin.tar.gz /dev/root/
RUN apt-get update
RUN apt-get install -y default-jre
RUN java -jar /dev/docker-files/billing/wlp-runtime-8.5.5.9.jar --acceptLicense /dev/docker-files/billing/
RUN java -jar /dev/docker-files/billing/wlp-extended-8.5.5.9.jar --acceptLicense /dev/docker-files/billing/
EXPOSE 9080
when i try to execute the following command in my ubuntu:
docker build -t xxxxxx/billing . and it will log the error
Error: Unable to access jarfile /dev/docker-files/billing/wlp-extended-8.5.5.9.jar
please help me with this, thnx.
The RUN instruction is running inside the container, and according to your Dockerfile;
ADD wlp-extended-8.5.5.9.jar /dev/root/
You added that file inside /dev/root/ inside your image. I think those two RUN instructions should be:
RUN java -jar /dev/root/wlp-runtime-8.5.5.9.jar --acceptLicense /dev/root/
RUN java -jar /dev/root/wlp-extended-8.5.5.9.jar --acceptLicense /dev/root/

How to install wkhtmltopdf patched qt without compiling?

I'm using google cloud instance for host Odoo, somo reports print to pdf ok, but other with custom paperformat get the following error:
"The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt, and will be ignored.QXcbConnection: Could not connect to display"
I google it, and to solve I need to compile wkhtmltopdf like this:
http://www.grobak.net/id/blog/how-fix-wkhtmltopdf-failed-error-code-6 but this proccess need 3 hs and I'm building a script to install google instances on the run with odoo dependencies.
the .deb package have a dependency broken
Anyone know other solution?
My system configuration is Ubuntu 14.04 and 64 bit. So, i am downloading according to that.
First you have to check your system OS name by
lsb_release -a
Check to see if your Ubuntu Linux operating system architecture is 32-bit or 64-bit, open up a terminal and run the following command below.
file /sbin/init
Download wkhtmltopdf patched with qt using below command
sudo wget -P Downloads https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
Here, replace "trusty" with your OS name and if 64 bit only then keep "amd64" like that , otherwise change it to "i386" and down load the deb file.
After that execute the following commands,
cd ~/Downloads
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
Now, check wkhtmltopdf version with below command,
wkhtmltopdf -V
Enjoy!!
After trying many ways I finally made it work.
First I removed all my previous installation by
sudo apt-get remove --purge wkhtmltopdf
sudo apt-get autoremove
Then I opened wkhtmltopdf.org and navigated into their Downloads > Archive. In Archive section I downloaded 0.12.1 .deb version by
wget <copy the link from website for the.deb file and paste it in terminal here>.
sudo dpkg -i <package name>
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
This is because odoo looks for wkhtmltopdf in /usr/bin directory otherwise gives IOError. I also set my webkit_path parameter in Odoo System Parameters to /usr/bin.
Thats it. Hope this helps
I was facing same issue with wkhtmltopdf 0.12.4
installed new version of wkhtmltopdf 0.12.6-1
follow below commands to install wkhtmltopdf 0.12.6-1
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos7.x86_64.rpm
yum localinstall wkhtmltox-0.12.6-1.centos7.x86_64.rpm #centos specific command

configring git bash on windows to run phpunit

I'm using a Win7x64 PC in order to write my php code. I'm still on the learning phase of using PHPUnit. I'm using phpunit from bash command line. I'll like to have the colors in git bash when I run my tests.
I got bash when I installed git for windows. On git commands, I get the coloring.
ps: using phpunit --colors doesn't change anything

Three20 error with xcode 4.0.2

i get this error:
shell script Invocation Error
Env: python: No such file or directory
run custom shell script "lint"
PhaseScriptExecution Lint /Users/Nasser/Library/Developer/Xcode/DerivedData/abc-fgspuusakfyzczfehhbduewymfmp/Build/Intermediates/Three20Core.build/Debug-iphonesimulator/Three20Core.build/
Script-668E63EA131A42F500ACE4AB.sh
cd /Users/Nasser/Documents/test2/abc/three20/src/Three20Core
/bin/sh -c /Users/Nasser/Library/Developer/Xcode/DerivedData/abc-fgspuusakfyzczfehhbduewymfmp/Build/
Intermediates/Three20Core.build/Debug-iphonesimulator/Three20Core.build/Script-668E63EA131A42F500ACE4AB.
sh
env: python: No such file or directory
you need to install python.
The best way is to use MacPorts. Download and install MacPorts, then install Python via MacPorts by typing the following commands in the Terminal:
sudo port install python26 python_select
sudo python_select python26
i figured it out myself.
i changed in each Three20 project the line in: "build phases > lint > shell" to:
/usr/bin/env /opt/local/bin/python2.6 ../scripts/lint

Resources