Base_report_designer still uses libxslt

Bug #514273 reported by GEM
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
Vinay Rana (OpenERP)

Bug Description

windows vista
openerp v5.0.7 and before

when I want to built manually the server using sources and using windows, and when installed, if I want to import a document with base_report_designer I have this error :

File "netsvc.pyo", line 244, in dispatch
File "netsvc.pyo", line 73, in __call__
File "service\web_services.pyo", line 633, in execute
File "service\web_services.pyo", line 613, in _execute
File "wizard\__init__.pyo", line 177, in execute
File "wizard\__init__.pyo", line 73, in execute_cr
File "C:\Program Files\OpenERP AllInOne\Server\addons\base_report_designer\wizard\base_report_designer_modify.py", line 154, in _upload_report
File "C:\Program Files\OpenERP AllInOne\Server\addons\base_report_designer\wizard\tiny_sxw2rml\tiny_sxw2rml.py", line 321, in sxw2rml
ImportError: No module named libxslt

to solve this :

in sources file server\setup.py
line 151 in "packages":[......,"select", "libxslt", "libxml2"]
I add as you see libxslt and libxml2
and the error is solved.
see topic page 1 and 2 here :
http://www.openobject.com/forum/topic12205.html
the official build for windows on openerp site has not this problem.

Revision history for this message
GEM (nimp3) wrote :

in my system, I have
- folder c:\python25\lib\site-packages\lxml\........
- c:\python25\lib\site-packages\libxml2.py
- c:\python25\lib\site-packages\libxslt.py

I tried to cut paste this two files in folder lxml, and the problem is solved too when I build.

Does this 2 files under linux are in folder lxml ?

Thx for answer

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Well, Does this problem belong to you only or a generic one?

We need to test on a windows based-machine.

Generally, lxml is a pythonic libxml2 and libxslt binding.

Thanks.

Revision history for this message
GEM (nimp3) wrote :

Hi Jay,
thanks for your help,
the problem was found by another person named DL on the openerp forum (see the link of the topic I gave).
He says that the installer downloadable on the openerp site has not this error (v5.0.6),
but the problem is if somebody build openerp manually with last sources using windows :
see the topic http://www.openobject.com/forum/topic12184.html
and I have verified, differences between official version (dll ok) and manual build are (not this dll):
iconv.dll
libexslt.dll
libxml2.dll
libxslt.dll
as I said if I add libxslt and libxml2 in the list of modules to take in server\setup.py, it's ok.
If you want I can build with the manually method 2 servers (with and without libxml2 and libxslt in the list) that you could download and test.
The question is how openerp build is setup for windows, with linux or windows, perhaps that if it is with linux, installed modules in python are not all the same dependenties xor path ?

affects: openobject-server → openobject-addons
Changed in openobject-addons:
assignee: nobody → mtr(OpenERP) (mtr-openerp)
status: New → Confirmed
summary: - windows ImportError: No module named libxslt
+ Base_report_designer still uses libxslt
Revision history for this message
Richard (John) Nopkins@Servosoft (richard-nopkins) wrote :

any progress mtr?

its important i suppose.

Revision history for this message
Paul J Stevens (paul-nfg) wrote :

I believe attached patch fixes this bug.

Revision history for this message
GEM (nimp3) wrote :

solved with server rev 2010 :
http://bazaar.launchpad.net/~openerp/openobject-server/5.0/revision/2010
add libraries for the server build.
you can build it manually or stand v5.0.8.

Revision history for this message
Paul J Stevens (paul-nfg) wrote :

GEM,

the patch was/is for trunk, not 5.0

Revision history for this message
GEM (nimp3) wrote :

ok

Changed in openobject-addons:
assignee: mtr(OpenERP) (mtr-openerp) → vra (openerp) (vra-openerp)
importance: Undecided → Medium
milestone: none → 5.0.8
status: Confirmed → In Progress
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Paul J Stevens ,
It has been committed with your name by revision 2675 <email address hidden>.
Thank you for the patch.
Thank you for reporting GEM.

Changed in openobject-addons:
status: In Progress → Fix Released
Revision history for this message
GEM (nimp3) wrote :

Hi,Jay,
I suppose that libxslt and libxml2 are used nowhere now in openrerp ?
It's just to know if I can delete them from the list of modules to load when I build manually installer for windows.
Thanks

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello GEM,

Yes, I guess only this(official) module was missing the changes.
If you find any other module with old dependencies, let us be aware of those.

Thanks.

Changed in openobject-addons:
status: Fix Released → Confirmed
Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

I just removed the libxml2 and libxslt dependencies in the setup.py.

Changed in openobject-addons:
status: Confirmed → Fix Released
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.