Home » OPENERPKU » Install OpenERP Client

Install OpenERP Client

Setelah install server openerp, sekarang masuk ke client openerp. Langkah-langkahnya sebagai berikut:

$sudo apt-get install python python-gtk2 python-glade2 python-matplotlib python-egenix-mxdatetime python-xmltv python-tz python-hippocanvas

$tar zxvf Downloads/openerp-client-6.0.2.tar.gz -C .

Untuk mencoba running aplikasi OpenERP Client caranya:
$cd openerp-client-6.0.2/bin/

$python openerp-client.py
Jika muncul form login OpenERP, maka berhasil running.

$cd ..

$sudo python setup.py install

Sekarang coba jalankan OpenERP Client:
$openerp-client

Selamat jika program yang mas bro install berhasil, tapi ya jangan berkecil hati klo ga bisa running.. Guugling-guugling, nemu solusinya dibawah ini..

Ketika menjalankan openerp-client, terdapat error seperti dibawah:

cd: 2: can't cd to /usr/local/lib/python2.7/dist-packages/openerp-client
/usr/bin/python: can't open file './openerp-client.py': [Errno 2] No such file or directory

Penanganannya:
$cd /

$sudo find * |grep openerp-client.py

home/telenais/openerp-client-6.0.2/build/lib.linux-i686-2.7/openerp-client/openerp-client.py
home/telenais/openerp-client-6.0.2/bin/openerp-client.py
usr/local/lib/python2.7/dist-packages/openerp_client-6.0.2-py2.7.egg/openerp-client/openerp-client.py
usr/local/lib/python2.7/dist-packages/openerp_client-6.0.2-py2.7.egg/openerp-client/openerp-client.pyc

Amati path dari openerp tersebut, hanya gara-gara salah path itulah yang menyebabkan openerp client ga bisa jalan..

Edit file openerp-client:
$sudo vim /usr/local/bin/openerp-client

#!/bin/sh
cd /usr/local/lib/python2.7/dist-packages/openerp-client
exec /usr/bin/python ./openerp-client.py $@

Ganti menjadi:

#!/bin/sh
cd /usr/local/lib/python2.7/dist-packages/openerp_client-6.0.2-py2.7.egg/openerp-client
exec /usr/bin/python ./openerp-client.py $@

Edit file .openerprc:
$cd

$pwd
/home/telenais
$sudo vim .openerprc

[path]
pixmaps = /usr/share/pixmaps/openerp-client
share = /usr/share/openerp-client

Ganti menjadi:

[path]
pixmaps = /usr/local/lib/python2.7/dist-packages/openerp_client-6.0.2-py2.7.egg/share/pixmaps/openerp-client
share = /usr/local/lib/python2.7/dist-packages/openerp_client-6.0.2-py2.7.egg/share/openerp-client

Sekarang jalankan $openerp-client
Dan Alhamdulillah installasi berhasil.. Berikutnya setting OpenERP Webclient, semoga lancar semua sampai tujuan.. ^_^

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s