Tag Archives: python

there is now a @oracle nosql database

you can try the oracle nosql database community edition now and it should also be available in the oracle cloud “always free” tier later this year

oracle docs (there is support for java, node & python)

zeit now demos & zeit now examples

zeit now mono repo demos & examples on github

zeit official demos & examples

zeit official DB denos & examples

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