This question has been flagged
2 Replies
4397 Views

installed from http://nightly.openerp.com/7.0/nightly/deb/

the error is "bash: /usr/bin/openerp-server: /usr/bin/python2.6: bad interpreter: No such file or directory"

true, the system is using 2.7.  so, if i symlink 2.6 to 2.7, i get the following:

"Traceback (most recent call last):
  File "/usr/bin/openerp-server", line 2, in <module>
    import openerp
ImportError: No module named openerp"

i don't know anything about python. how can i resolve this? (edit: i guess i could study it, lol!)

Avatar
Discard
Author

solved by also symlinking this: "ln -s /usr/lib/python2.6/dist-packages/openerp /usr/lib/python2.7/dist-packages/openerp"

Would you have any other tips? Couldn't solve this, even with those tricks.

Author Best Answer

@zigloo: sorry, this worked for me so it's all I have. Make sure that you linked python properly:

$ sudo ln -s /usr/bin/python2.7 /usr/bin/python2.6

$ sudo ln -s /usr/lib/python2.6/dist-packages/openerp /usr/lib/python2.7/dist-packages/openerp

$ sudo /etc/init.d/openerp start

Avatar
Discard
Best Answer

Hello, copy stuff from /usr/lib/python2.6/ to /usr/lib/python2.7/ too. It's nasty but it helps. Would someone explain why the new version is linked to 2.6??? (my is 7.0-2326467)


 

Avatar
Discard