[OT] Problem with SOAPpy and m2crypto with WSDL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
I hope you have an idea how to help me. I will look forward to open
eventually an entry in rhel/centos bugzilla if it is the case..
thanks in advance anyway for any suggestions

Problem: in both rhel/centos 5.1 and 5.2 x86_64 (but probably it is
not arch specific) it seems that m2crypto, needed
by yum, creates problems with SOAPpy (as downloaded by EPEL
repository, together with python-fpconst).

In Fedora 9 @ Home no problem with the script below, because it seems
m2crypto is not needed by yum and infact I have not it on the system

this is an example of code with problem

$ python
Python 2.4.3 (#1, Dec 11 2006, 11:39:03)
[GCC 4.1.1 20061130 (Red Hat 4.1.1-43)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import SOAPpy
>>> url = "https://websrv:8443/Soapsrv/services/srv?wsdl";
>>> proxy = SOAPpy.WSDL.Proxy(url)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/SOAPpy/WSDL.py", line 62, in __init__
self.wsdl = reader.loadFromStream(stream, wsdlsource)
File "/usr/lib/python2.4/site-packages/SOAPpy/wstools/WSDLTools.py",
line 28, in loadFromStream
document = DOM.loadDocument(stream)
File "/usr/lib/python2.4/site-packages/SOAPpy/wstools/Utility.py",
line 572, in loadDocument
return xml.dom.minidom.parse(data)
File "/usr/lib64/python2.4/site-packages/_xmlplus/dom/minidom.py",
line 1915, in parse
return expatbuilder.parse(file)
File "/usr/lib64/python2.4/site-packages/_xmlplus/dom/expatbuilder.py",
line 930, in parse
result = builder.parseFile(file)
File "/usr/lib64/python2.4/site-packages/_xmlplus/dom/expatbuilder.py",
line 207, in parseFile
parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: syntax error: line 1, column 0


if I do a
cd /usr/lib64/python2.4/site-packages/
mv M2Crypto M2Crypto.bck
and execute the script, I don't get the error anymore

I am only able to find in release notes of SOAPpy in version:
VERSION 0.10.4
--------------
[snip]
- WSDL tools now uses m2crypto for SSL if it's installed.
- Various other WSDL changes.
[snip]

I don't know if it is related.
the problem is that I can't remove m2crypto without removing yum
itself.... and it seems not a perfect solution to rename the dir...

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Removing:
 m2crypto                x86_64     0.16-6.el5.2     installed         1.7 M
Removing for dependencies:
 python-urlgrabber       noarch     3.1.0-2          installed         443 k
 yum                     noarch     3.2.8-9.el5_2.1  installed         2.2 M
 yum-rhn-plugin          noarch     0.5.3-6.el5      installed         156 k
 yum-security            noarch     1.1.10-9.el5     installed          43 k
 yum-updatesd            noarch     1:0.9-2.el5      installed          55 k


Any ideas about the correct syntax I have to use for url with m2crypto
or if possible to avoid using m2crypto even if it is there?

the package list on the system is:
python-urlgrabber-3.1.0-2
libselinux-python-1.33.4-5.el5
SOAPpy-0.11.6-5.el5
dbus-python-0.70-7.el5
pygobject2-2.12.1-5.el5
python-elementtree-1.2.6-5
pyOpenSSL-0.6-1.p24.7.2.2
python-fpconst-0.7.3-3.el5.1
python-2.4.3-21.el5
libxml2-python-2.6.26-2.1.2.1
python-iniparse-0.2.3-4.el5


Thanks again in advance for your time,
Gianluca

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux