SliTaz SliTaz Forum

You are not logged in.

#1 2012-05-29 20:18:13

tazpider
Member
Registered: 2012-03-20
Posts: 71

OpenERP python installation fails - missing packages

Hello guys,

I'm trying to install OperERP from source tarball (because there's an old version in repository).

First I have installed python, setuptools, python-babel and gcc as installer asked for them.

All dependencies are as follows:

`postgresql-client, python-dateutil, *python-feedparser, python-gdata,

python-ldap, *python-libxslt1, python-lxml, python-mako, python-openid,

*python-psycopg2, *python-pybabel, python-pychart, python-pydot,

python-pyparsing, python-reportlab, python-simplejson, *python-tz,

python-vatnumber, python-vobject, python-webdav, *python-werkzeug, python-xlwt,

*python-yaml, python-zsi`

These marked with * can not be found in repository. The last message from console is:

[c]Downloading http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz
Processing psycopg2-2.4.5.tar.gz
Running psycopg2-2.4.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-KqUib1/psycopg2-2.4.5/egg-dist-tmp-cbKm0g
Error: pg_config executable not found.

Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:

    python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.
error: Setup script exited with 1[/c]
Please advice how I should proceed to get it working.

P.S. 1 How can I install a few packages with "tazpkg get-install" at once?

P.S. 2 I'm using SliTaz as frugal usb stick, so capacity really matters. When I finish installation, how can I create simple package with just an OpenERP to install single package without any additional pyton dependecies on the main system?

P.S. 3 It seems like I would need MySQL server to have a database, however there's no mysql-server package in repository. Is there a simple way to solve it?

Thank you for help in advance (and sorry fo my longest post ever smile)

Offline

#2 2012-05-29 22:07:29

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: OpenERP python installation fails - missing packages

Missing Packages that are in the repository, but not under the names you were looking for:

feedparser, libxslt-python, psycopg2, python-babel, python-pytz, python-pyyaml, python-zsi and mysql (yes, it's the same as mysql-server).

Note: no python-werkzeug - install that one manually.

Note: I don't think you need MySQL - it's probably already using sqlite or something similar. It would require python-mysql if it needed MySQL.

Offline

#3 2012-05-30 10:04:22

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: OpenERP python installation fails - missing packages

Please test undigest packages:

http://mirror.slitaz.org/packages/undigest/openerp-server-6.1-1.tazpkg

http://mirror.slitaz.org/packages/undigest/python-werkzeug-8c085bb.tazpkg

Offline

#4 2012-05-30 18:13:19

tazpider
Member
Registered: 2012-03-20
Posts: 71

Re: OpenERP python installation fails - missing packages

Thank you for reply

With my knowledge probably it would take ages if I tried to build packages by myself smile

After ~1h of basic testing I can say that it installs and works fine.

Until you pack system with 'tazlito writeiso'...

After restart (although I've added openerp-server to RUN_DAEMONS in /etc/rcS.conf) there are some errors.

Starting it manually (/etc/init.d/openerp-server start) doesn't help neither

Web client starts and such notification pops up:

[c]OpenERP Server Error
Client Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/openerp/addons/web/common/http.py", line 180, in dispatch
    response["result"] = method(controller, self, **self.params)
  File "/usr/lib/python2.7/site-packages/openerp/addons/web/controllers/main.py", line 353, in get_list
    dbs = proxy.list()
  File "/usr/lib/python2.7/site-packages/openerp/addons/web/common/openerplib/main.py", line 117, in proxy
    result = self.connector.send(self.service_name, method, *args)
  File "/usr/lib/python2.7/site-packages/openerp/addons/web/common/http.py", line 611, in send
    raise fault

Server Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/openerp/addons/web/common/http.py", line 592, in send
    result = openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/usr/lib/python2.7/site-packages/openerp/netsvc.py", line 360, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/usr/lib/python2.7/site-packages/openerp/service/web_services.py", line 117, in dispatch
    return fn(*params)
  File "/usr/lib/python2.7/site-packages/openerp/service/web_services.py", line 310, in exp_list
    cr = db.cursor()
  File "/usr/lib/python2.7/site-packages/openerp/sql_db.py", line 465, in cursor
    return Cursor(self._pool, self.dbname, serialized=serialized)
  File "/usr/lib/python2.7/site-packages/openerp/sql_db.py", line 173, in __init__
    self._cnx = pool.borrow(dsn(dbname))
  File "/usr/lib/python2.7/site-packages/openerp/sql_db.py", line 366, in _locked
    return fun(self, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/openerp/sql_db.py", line 421, in borrow
    result = psycopg2.connect(dsn=dsn, connection_factory=PsycoConnection)
OperationalError: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/tmp/.s.PGSQL.5432"?[/c]
I think everything would be ok under stardard installation, but unfortunately can't confirm

Offline

#5 2012-05-31 11:28:37

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: OpenERP python installation fails - missing packages

Add postgresql in RUN_DAEMONS (before openerp-server).

Offline

#6 2012-05-31 15:35:45

tazpider
Member
Registered: 2012-03-20
Posts: 71

Re: OpenERP python installation fails - missing packages

Current status:

RUN_DAEMONS="dbus hald slim firewall httpd postgresql openerp-server"

After boot 'opererp-server' is running, but 'postgresql' is not. I tried to start it manually:

[c]postgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA environment variable.[/c]
When you try to run web client you get "Cannot connect to destination (localhost)"

Offline

#7 2012-06-04 11:36:26

tazpider
Member
Registered: 2012-03-20
Posts: 71

Re: OpenERP python installation fails - missing packages

How can I check if postrgresql is really running?

When I do

/etc/init.d/postgresql start

it looks like everything is fine, no errors nor other warnings, but still when you try to run web client you get "Cannot connect to destination (localhost)"

Offline

#8 2012-06-05 16:41:06

tazpider
Member
Registered: 2012-03-20
Posts: 71

Re: OpenERP python installation fails - missing packages

It works if you manually start openerp with

/etc/init.d/openerp-server start

so I guess it's everything ok with postgresql

Thank you for support

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.020 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]