openerp-server-5.0.15 not start (ubuntu 10-10)

Bug #673975 reported by Tanel Kurvits
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Ubuntu 10.10
root@tanel-VirtualBox:~/Downloads/Openerp/5.0/openerp-client-5.0.15# openerp-client
WARNING:common.options:Config file /root/.openerprc does not exist !
CRITICAL:init:Failed to open file 'openerp-icon.png': No such file or directory
CRITICAL:init:Ensure that the file /root/.openerprc is correct

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

Revision history for this message
Antony Lesuisse (OpenERP) (al-openerp) wrote :

From that directory you probably need to type:

./bin/openerp-client.py

Otherwise you are probably starting the ubuntu version found in the PATH. I checked the client tgz on ubuntu 10.10 and it seems to run fine so i'm closing this bug.

Changed in openobject-client:
status: New → Invalid
Revision history for this message
Tanel Kurvits (tanel-kurvits) wrote :

Not correct. I installed it used kommand
setup.py install

Notice that is fresh test virtual machine installed for testing OPENERP.
Ubuntu packages not installed at all. I installed that VM only for test openerp version 5.0.15. So if i type openerp-server then it made openerp-server installation time is that right? Why that not working then? Please remove in BATH not working openerp-client executable then!

Ok i tryd now:

root@tanel-VirtualBox:~/Downloads/Openerp/5.0/openerp-client-5.0.15# ./bin/openerp-client.py
Traceback (most recent call last):
  File "./bin/openerp-client.py", line 104, in <module>
    import modules
  File "/root/Downloads/Openerp/5.0/openerp-client-5.0.15/bin/modules/__init__.py", line 24, in <module>
    import gui
  File "/root/Downloads/Openerp/5.0/openerp-client-5.0.15/bin/modules/gui/__init__.py", line 23, in <module>
    import main
  File "/root/Downloads/Openerp/5.0/openerp-client-5.0.15/bin/modules/gui/main.py", line 34, in <module>
    import rpc
  File "/root/Downloads/Openerp/5.0/openerp-client-5.0.15/bin/rpc.py", line 36, in <module>
    import pytz
ImportError: No module named pytz

So even that way not working. Bug is different but result is same. Client not start. Now we finded already second bug! Is im right?

Changed in openobject-client:
status: Invalid → New
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.