Tag Archives: python

web testing with robot framework

web testing with robot framework

oracle gnu/linux 8 beta now available

oracle gnu/linux 8 beta now available

new features

 

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 !

 

 

python 2 and python 3 packages

python 2 and python 3 packages seem to be installed all over the place

/usr/local/lib

  • /usr/local/lib/python2.7/dist-packages/
  • /usr/local/lib/python2.7/site-packages/
  • /usr/local/lib/python3.5/dist-packages/
  • /usr/local/lib/python3.5/site-packages/

/usr/lib

  • /usr/lib/python2.6/
  • /usr/lib/python2.7/
  • /usr/lib/python3/
  • /usr/lib/python3.5/

.local/lib

  • .local/lib/python2.7/dist-packages/
  • .local/lib/python2.7/site-packages/
  • .local/lib/python3.5/dist-packages/
  • .local/lib/python3.5/site-packages/

 

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