This forum is now just an archive. Use the new Q&A website
It is currently Fri Apr 25, 2014 1:17 am

All times are UTC + 2 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Installation of GTK Client 6.1
PostPosted: Mon Mar 12, 2012 3:58 pm 
Offline

Joined: Wed Dec 15, 2010 9:56 am
Posts: 110
Hello,

I installed the 6.1 GTK client, but when I typed "openerp-server" in the command line, I had the following error:
Code:
/usr/bin/python: can't open file './openerp-client.py': [Errno 2] No such file or directory

So I modified the two following files:
sudo gedit /usr/local/bin/openerp-client
Code:
#!/bin/sh
cd /usr/local/lib/python2.6/dist-packages/openerp_client-6.1.1-py2.6.egg/openerp-client
exec /usr/bin/python ./openerp-client.py $@

And the file:
sudo gedit .openerprc
Code:
[path]
pixmaps = /usr/local/lib/python2.6/dist-packages/openerp_client-6.1.1-py2.6.egg/share/pixmaps/openerp-client
share = /usr/local/lib/python2.6/dist-packages/openerp_client-6.0.1-py2.6.egg/share/openerp-client

After that when I reexecuted the command: openerp-client, I got this error:
Code:
Traceback (most recent call last):
  File "./openerp-client.py", line 132, in <module>
    win = modules.gui.main.terp_main()
  File "/usr/local/lib/python2.6/dist-packages/openerp_client-6.1.1-py2.6.egg/openerp-client/modules/gui/main.py", line 685, in __init__
    self.ui = openerp_gtk_builder('openerp.ui', ['win_main', 'accelgroup1'])
  File "/usr/local/lib/python2.6/dist-packages/openerp_client-6.1.1-py2.6.egg/openerp-client/common/common.py", line 230, in openerp_gtk_builder
    ui.add_objects_from_file(terp_path(openerp_file), objects)
glib.GError: L'ouverture du fichier « openerp.ui » a échoué : Aucun fichier ou dossier de ce type

I found that openerp.ui file is in this directory:
/usr/local/lib/python2.6/dist-packages/openerp_client-6.1.1-py2.6.egg/share/openerp-client
But I don't know in which file do I have to modify its path.
Any hint?

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: Installation of GTK Client 6.1
PostPosted: Mon Mar 12, 2012 9:27 pm 
Offline

Joined: Wed Jan 27, 2010 6:21 pm
Posts: 1085
Location: Auckland, NZ
I know it isn't much help, but I can never get the client to work using the install script, so I just gave up and run it directly from a source directory and manually create a .desktop file, and never get an error. The error seems to be in the install script.

_________________
Graeme


Top
 Profile  
 
 Post subject: Re: Installation of GTK Client 6.1
PostPosted: Tue Mar 13, 2012 4:21 pm 
Offline

Joined: Wed Dec 15, 2010 9:56 am
Posts: 110
Thanks gdaddy for your reply, but I didn't use an install script, I've installed it from resources and still I have errors. :?


Top
 Profile  
 
 Post subject: Re: Installation of GTK Client 6.1
PostPosted: Tue Mar 13, 2012 7:29 pm 
Offline

Joined: Wed Jan 27, 2010 6:21 pm
Posts: 1085
Location: Auckland, NZ
you must have used the install script, e.g. sudo python setup.py install, because the filepaths and errors are the same.

_________________
Graeme


Top
 Profile  
 
 Post subject: Re: Installation of GTK Client 6.1
PostPosted: Thu Mar 15, 2012 12:01 pm 
Offline

Joined: Thu Mar 15, 2012 11:53 am
Posts: 1
Location: PARIS
I have found a clean (or not so ugly) solution to have the client working. With just little change in the default configuration...

The solution is 'ln -s' :)

Code:
cd /usr/local/share
ln -s /usr/local/lib/python2.6/dist-packages/openerp_client-6.1.1-py2.6.egg/share/openerp-client
cd /usr/local/share/pixmaps
ln -s /usr/local/lib/python2.6/dist-packages/openerp_client-6.1.1-py2.6.egg/share/pixmaps/openerp-client


After that i change my .openerprc to adapt the default pixmaps and share paths (to add local), and that's it!

If i put any other location in my .openerprc file, the error 'openerp.ui' appear.

But with this small ln -s, i was able to use the setup install script.

Hope this help!

--
Nicolas BLANC.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP