Skip to content

Pre install steps (old)

Martin 'Hasan' Bramwell edited this page Jan 17, 2014 · 1 revision

How to prepare prerequisites for the installation process (OLD).

Jump to instant script

The video Google Spreadsheets to OpenERP Data Pump: Step #1 Installation might help see how to recover from mistakes.

If you try to run . . .

sudo easy_install gspread

. . . in a completely fresh Linux installation it will fail. You first run ...

sudo apt-get install python-setuptools

Then you can run . . .

sudo easy_install gspread
sudo easy_install argparse
sudo easy_install Importing

Unfortunately, neither openerplib, nor GData_OpenERP_Data_Pump are in the easy_install registry, so you must start with bzr branch lp:openerp-client-lib and git clone git://github.com/martinhbramwell/GData_OpenERP_Data_Pump.git. Of course, most likely, you won't have bzr or git installed in your system either, so you will first have to run . . .

sudo apt-get install bzr
sudo apt-get install git

With those installed, you should then be able to obtain the missing files; ...

mkdir -p installers
cd installers
bzr branch lp:openerp-client-lib
git clone git://github.com/martinhbramwell/GData_OpenERP_Data_Pump.git

. . . only then can you install the last prerequisite openerplib:

sudo easy_install ./openerp-client-lib/

Listing the directory with ls you should now see :

yourself@yourselfPPLTS:~/installers$ ls -l
total 8
drwxr-xr-x 4 yourself yourself 4096 May  4 18:22 GData_OpenERP_Data_Pump
drwxrwxr-x 4 yourself yourself 4096 May  4 18:20 openerp-client-lib
yourself@yourselfPPLTS:~/installers$ 

You can test whether the pump will start at all using :

cd GData_OpenERP_Data_Pump/
./gDataTools.py -h
Messy? To do it all in one shot, just use this `"instant script"` :
mkdir -p installers
cd installers
#
sudo apt-get install -y python-setuptools
sudo apt-get install -y bzr
sudo apt-get install -y git
#
sudo easy_install gspread
sudo easy_install argparse
sudo easy_install Importing
#
bzr branch lp:openerp-client-lib
sudo easy_install ./openerp-client-lib/
#
git clone git://github.com/martinhbramwell/GData_OpenERP_Data_Pump.git
#
ls -l
#
cd GData_OpenERP_Data_Pump/
ls -l
./gDataTools.py -h
#