enlightx ha scritto:o meglio:
sudo apt-get install python-pycha
Fatto ora con import relatorio non mi da più errori.
Purtroppo l'installazione del modulo report_openoffice mi da ancora:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/openerp-server/netsvc.py", line 245, in dispatch
result = LocalService(service_name)(method, *params)
File "/usr/lib/python2.6/site-packages/openerp-server/netsvc.py", line 74, in __call__
return getattr(self, method)(*params)
File "/usr/lib/python2.6/site-packages/openerp-server/service/web_services.py", line 632, in execute
return self._execute(db, uid, wiz_id, datas, action, context)
File "/usr/lib/python2.6/site-packages/openerp-server/service/web_services.py", line 612, in _execute
return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
File "/usr/lib/python2.6/site-packages/openerp-server/wizard/__init__.py", line 178, in execute
res = self.execute_cr(cr, uid, data, state, context)
File "/usr/lib/python2.6/site-packages/openerp-server/wizard/__init__.py", line 73, in execute_cr
action_res = action(self, cr, uid, data, context)
File "/usr/lib/python2.6/site-packages/openerp-server/addons/base/module/wizard/wizard_module_upgrade.py", line 92, in _upgrade_module
db, pool = pooler.restart_pool(cr.dbname, update_module=True)
File "/usr/lib/python2.6/site-packages/openerp-server/pooler.py", line 62, in restart_pool
return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
File "/usr/lib/python2.6/site-packages/openerp-server/pooler.py", line 40, in get_db_and_pool
addons.load_modules(db, force_demo, status, update_module)
File "/usr/lib/python2.6/site-packages/openerp-server/addons/__init__.py", line 740, in load_modules
r = load_module_graph(cr, graph, status, report=report)
File "/usr/lib/python2.6/site-packages/openerp-server/addons/__init__.py", line 581, in load_module_graph
register_class(package.name)
File "/usr/lib/python2.6/site-packages/openerp-server/addons/__init__.py", line 409, in register_class
zimp.load_module(m)
File "/usr/lib/python2.6/site-packages/openerp-server/addons/report_openoffice.zip/report_openoffice/__init__.py", line 29, in <module>
File "/usr/lib/python2.6/site-packages/openerp-server/addons/report_openoffice.zip/report_openoffice/report_openoffice.py", line 33, in <module>
ImportError: No module named relatorio.templates.opendocument
Non so ma durante l'installazione o seguito parte della guida di openerp.com dato che mi dava un errore relativo a classi Python deprecate, non potrebbero essere queste manovre ad avermi causato il problema???
Cito dalla guida:
Ubuntu 9.04 comes with python 2.6 and the stable version until 5.0.6 is not compatible with python 2.6. For the latest stable version the above steps are sufficient.
Hence following steps must be performed to install openerp server till 5.0.6 on ubuntu 9.04.
Python 2.5 setting up:
$ sudo apt-get install python2.5 python2.5-dev python-profiler
Reinstall python-xml:
$ wget http://freefr.dl.sourceforge.net/sourceforge/pyxml/PyXML-0.8.4.tar.gz
$ tar xvzf PyXML-0.8.4.tar.gz
$ cd PyXML-0.8.4/
$ sudo python2.5 setup.py install
Make the following symbolic link:
$ sudo ln -s /usr/lib/python2.6/dist-packages/oldxml/_xmlplus/utils/boolean.so /usr/lib/python2.5/site-packages/oldxml/_xmlplus/utils/
Force openerp-server to be launched with Python2.5:
$ cd /usr/bin/
$ sudo cp openerp-server openerp-server.ORIG
$ sudo vi openerp-server
Replace the following line:
exec /usr/bin/python ./openerp-server.py $@
with:
exec /usr/bin/python2.5 ./openerp-server.py $@