openerp-client trunk: deployment fails with python 2.6 (ubuntu 10.04)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo GTK Client (MOVED TO GITHUB) |
Fix Released
|
High
|
OpenERP sa GTK client R&D |
Bug Description
SCENARIO:
openerp-client trunk with latest updates from launchpad
python 2.6
ubuntu 10.04
DEPLOYMENT:
$ sudo python setup.py install
running install
running build
running build_conf
running build_py
package init file 'bin/__init__.py' not found (or not a regular file)
package init file 'bin/__init__.py' not found (or not a regular file)
running build_scripts
copying openerp-client -> build/scripts-2.6
changing mode of build/scripts-
running build_mo
running install_lib
running install_scripts
copying build/scripts-
changing mode of /usr/local/
running install_data
running install_egg_info
Removing /usr/local/
Writing /usr/local/
running install_mo
OPENERP-CLIENT FAILS WHEN LAUNCHED FROM DEFAULT PATH:
openerp-client
cd: 2: can't cd to /usr/lib/
/usr/bin/python: can't open file './openerp-
DEFAULT PATH:
$ which openerp-client
/usr/local/
CONTENT OF ABOVE SCRIPT:
$ cat /usr/local/
#!/bin/sh
cd /usr/lib/
exec /usr/bin/python ./openerp-client.py $@
BUT OPENERP-CLIENT SEEMS TO DEPLOY IN THIS OTHER DIRECTORY:
$ ls -l /usr/local/
total 168
drwxr-sr-x 3 root staff 4096 Nov 6 17:48 SpiffGtkWidgets
drwxr-sr-x 2 root staff 4096 Nov 6 17:48 common
-rw-r--r-- 1 root staff 4802 Nov 6 17:06 environment_info.py
-rw-r--r-- 1 root staff 4164 Nov 6 17:48 environment_
drwxr-sr-x 5 root staff 4096 Nov 6 17:48 modules
-rw-r--r-- 1 root staff 2059 Nov 6 17:06 observator.py
-rw-r--r-- 1 root staff 2568 Nov 6 17:48 observator.pyc
-rw-r--r-- 1 root staff 4627 Nov 6 17:06 openerp-client.py
-rw-r--r-- 1 root staff 4008 Nov 6 17:48 openerp-client.pyc
-rw-r--r-- 1 root staff 7923 Nov 6 17:06 options.py
-rw-r--r-- 1 root staff 7967 Nov 6 17:48 options.pyc
drwxr-sr-x 3 root staff 4096 Nov 6 17:48 plugins
drwxr-sr-x 2 root staff 4096 Nov 6 17:48 printer
-rw-r--r-- 1 root staff 1799 Nov 6 17:06 release.py
-rw-r--r-- 1 root staff 1057 Nov 6 17:48 release.pyc
-rw-r--r-- 1 root staff 13951 Nov 6 17:06 rpc.py
-rw-r--r-- 1 root staff 15682 Nov 6 17:48 rpc.pyc
-rw-r--r-- 1 root staff 1301 Nov 6 17:06 service.py
-rw-r--r-- 1 root staff 986 Nov 6 17:48 service.pyc
-rw-r--r-- 1 root staff 1977 Nov 6 17:06 signal_event.py
-rw-r--r-- 1 root staff 1646 Nov 6 17:48 signal_event.pyc
-rw-r--r-- 1 root staff 3402 Nov 6 17:06 tiny_socket.py
-rw-r--r-- 1 root staff 3786 Nov 6 17:48 tiny_socket.pyc
drwxr-sr-x 2 root staff 4096 Nov 6 17:48 tinygraph
drwxr-sr-x 2 root staff 4096 Nov 6 17:48 tools
-rw-r--r-- 1 root staff 6729 Nov 6 17:06 translate.py
-rw-r--r-- 1 root staff 6689 Nov 6 17:48 translate.pyc
drwxr-sr-x 5 root staff 4096 Nov 6 17:48 widget
drwxr-sr-x 2 root staff 4096 Nov 6 17:48 widget_search
Changed in openobject-client: | |
assignee: | nobody → OpenERP sa GTK client R&D (openerp-dev-gtk) |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in openobject-client: | |
status: | Confirmed → Fix Committed |
Changed in openobject-client: | |
status: | Fix Committed → Fix Released |
Just change that file to read
#!/bin/sh lib/python2. 6/dist- packages/ openerp- client
cd /usr/local/
exec /usr/bin/python ./openerp-client.py $@
works for me