This forum is now just an archive. Use the new Q&A website
It is currently Thu Apr 24, 2014 12:05 am

All times are UTC + 2 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 39 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: No module named lxml
PostPosted: Thu Mar 01, 2012 10:26 am 
Offline

Joined: Tue Oct 18, 2011 8:52 am
Posts: 19
Location: Algiers
tadaaaaaa !

That's your problem.

You're using the compiled version of python, which is in /usr/local/bin instead of the packaged version which should be in /usr/bin/.

This is because in linux, /usr/local/bin has precedence over /usr/bin most of times, you can however change this in the PATH environement variable (in your .bashrc for permanent effect) by putting /usr/bin/ before /usr/local/bin, but that would be a bad idea.

Please follow the following steps :
1. Locate the filename to which the DAEMON variable is set to in /etc/init.d/openerp-server.
2. Paste that file in here. It should contain a line that looks like :

Code:
exec /usr/local/bin/python ./openerp-server.py $@


If it looks like this, please change that line to :

Code:
exec /usr/bin/python ./openerp-server.py $@


I hope that will do the trick.

However, if it is already set to /usr/bin/python, then we should investigate the problem further.


Last edited by ychaouche on Thu Mar 01, 2012 2:34 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: No module named lxml
PostPosted: Thu Mar 01, 2012 11:54 am 
Offline

Joined: Wed Feb 29, 2012 4:20 pm
Posts: 20
Location: Maroc
I open this file, and I find


PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/openerp-server
PID_DIR=/var/run/openerp
PIDFILE=$PID_DIR/$NAME.pid
DAEMONOPTS="--logfile=/var/log/openerp-server.log --log-level=debug_rpc_answer --pidfile=${PIDFILE}"

What is the probleme?


Top
 Profile  
 
 Post subject: Re: No module named lxml
PostPosted: Thu Mar 01, 2012 12:04 pm 
Offline

Joined: Wed Feb 29, 2012 4:20 pm
Posts: 20
Location: Maroc
Also I open /etc/bin/openerp-server

I find this

#!/bin/sh
cd /usr/lib/python2.6/site-packages/openerp-server
exec /usr/bin/python26 ./openerp-server.py $@


Top
 Profile  
 
 Post subject: Re: No module named lxml
PostPosted: Thu Mar 01, 2012 2:56 pm 
Offline

Joined: Tue Oct 18, 2011 8:52 am
Posts: 19
Location: Algiers
That's messed up.

By any chance, is /usr/bin/python26 pointing to /usr/local/bin/python2.6 ?

(Is it python26 or python2.6 by the way ?)

Please paste the result of this command

Code:
$ file /usr/bin/python26


Top
 Profile  
 
 Post subject: Re: No module named lxml
PostPosted: Thu Mar 01, 2012 4:03 pm 
Offline

Joined: Wed Feb 29, 2012 4:20 pm
Posts: 20
Location: Maroc
What I have after this command

file /usr/bin/python26
/usr/bin/python26: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped


Top
 Profile  
 
 Post subject: Re: No module named lxml
PostPosted: Thu Mar 01, 2012 4:20 pm 
Offline

Joined: Tue Oct 18, 2011 8:52 am
Posts: 19
Location: Algiers
I really don't understand why your python version is twenty six in some places and two dot six in others. Maybe this is causing the issue.

EDIT

I think I have spotted what caused you all this mess, it's in your installation procedure. In your earlier, you pasted something like this :

Code:
./configure --with-python=/usr/bin/python26


You did this in several steps of your installation procedure. I think this is related to your issue.

Can you see if you have a folder named /usr/lib/python26 (twenty six) ?

Also, I suggest you edit your /etc/bin/openerp-server file to change python26 (python twenty six) to python2.6 (python two dot six). It should look like this :

Code:
#!/bin/sh
cd /usr/lib/python2.6/site-packages/openerp-server
exec /usr/bin/python2.6 ./openerp-server.py $@


Try that and let me know.


Top
 Profile  
 
 Post subject: Re: No module named lxml
PostPosted: Thu Mar 01, 2012 5:24 pm 
Offline

Joined: Wed Feb 29, 2012 4:20 pm
Posts: 20
Location: Maroc
I haven't this folder, I have Only /usr/lib/python2.6

Also I change to 2.6, BUT the same probleme


Top
 Profile  
 
 Post subject: Re: No module named lxml
PostPosted: Thu Mar 01, 2012 6:37 pm 
Offline

Joined: Tue Oct 18, 2011 8:52 am
Posts: 19
Location: Algiers
You mentionned earlier that you opened /etc/bin/openerp-server. Is this a typo or is the file really there ? because the /etc/init.d/openerp-server says that the DAEMON variable is set to

Code:
DAEMON=/usr/bin/openerp-server


/usr/bin/openerp-server and not /etc/bin/openerp-server.

If there is a file in /etc/bin/openerp-server, then please do again your edits in /usr/bin/openerp-server, otherwise we'll investigate further.


Top
 Profile  
 
 Post subject: Re: No module named lxml
PostPosted: Fri Mar 09, 2012 4:36 pm 
Offline

Joined: Wed Mar 07, 2012 9:28 pm
Posts: 7
Location: Brasil
--


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 39 posts ]  Go to page Previous  1, 2, 3

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