Tag Archives: python3

eclipse red robotframework problems

if you having a problem getting eclipse red to run python 3 robotframework libraries/modules/packages

try running pip3 as root so that the libraries/modules/packages end up installed globally instead of a hidden .local directory

# pip3 install --upgrade pip
# pip3 install robotframework 
# pip3 install robotframework-seleniumlibrary

# ls -l /usr/local/bin/
total 24
lrwxrwxrwx 1 root root 17 Feb 9 13:50 chromedriver -> /opt/chromedriver
lrwxrwxrwx 1 root root 16 Feb 9 13:32 geckodriver -> /opt/geckodriver
-rwxr-xr-x 1 root root 205 Feb 9 13:08 pip
-rwxr-xr-x 1 root root 205 Feb 9 13:08 pip3
-rwxr-xr-x 1 root root 205 Feb 9 13:08 pip3.5
-rwxr-xr-x 1 root root 80 Feb 9 13:11 pybot
-rwxr-xr-x 1 root root 202 Feb 9 13:11 rebot
-rwxr-xr-x 1 root root 198 Feb 9 13:11 robot

 

python 2 pip and python 3 pip wierdness

python 2 pip and python 3 pip wierdness bizarrely if you run

# aptitude install python3-pip
# pip3 install --upgrade pip

you will end up with the following files

# ls -l /usr/local/bin/
total 24
-rwxr-xr-x 1 root root 205 Feb 9 13:08 pip
-rwxr-xr-x 1 root root 205 Feb 9 13:08 pip3
-rwxr-xr-x 1 root root 205 Feb 9 13:08 pip3.5

and so bizarrely if you type pip it will now run pip3 !

 

 

a very nasty python2 python3 hack

i did have a very nasty python 2 to python 3 hack to get the eclipse ide nokia/RED robot framework editor to work with python 3 but theres a better version below

$ cd ~
$ mkdir eclipse-red
$ ln -s /usr/bin/python3 eclipse-red/python

after you have created your symlink run eclipse

  • and goto Window → Preferences → Robot Framework → Installed frameworks → Add 
  • and if you are lucky nokia/RED should find Robot Framework 3.0.2 (Python 3.5.2 on linux) instead of the python 2 version

how to use eclipse ide and nokia red with python 3