← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 674231] Re: openerp-client trunk: deployment fails with python 2.6 (ubuntu 10.04)

 

** Changed in: openobject-client
       Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/674231

Title:
  openerp-client trunk: deployment fails with python 2.6 (ubuntu 10.04)

Status in OpenObject GTK Client:
  Fix Committed

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-2.6/openerp-client from 644 to 755
  running build_mo
  running install_lib
  running install_scripts
  copying build/scripts-2.6/openerp-client -> /usr/local/bin
  changing mode of /usr/local/bin/openerp-client to 755
  running install_data
  running install_egg_info
  Removing /usr/local/lib/python2.6/dist-packages/openerp_client-6.0.0_rc1_1.egg-info
  Writing /usr/local/lib/python2.6/dist-packages/openerp_client-6.0.0_rc1_1.egg-info
  running install_mo

  OPENERP-CLIENT FAILS WHEN LAUNCHED FROM DEFAULT PATH:

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

  DEFAULT PATH:

  $ which openerp-client
  /usr/local/bin/openerp-client

  CONTENT OF ABOVE SCRIPT:

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

  BUT OPENERP-CLIENT SEEMS TO DEPLOY IN THIS OTHER DIRECTORY:

  $ ls -l /usr/local/lib/python2.6/dist-packages/openerp-client/
  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_info.pyc
  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





References