You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Stuart Doherty <sd...@avvasi.com> on 2010/08/30 22:26:24 UTC
mllib/__init__.py and local file handling in the xml_parse method
Hi QPid Dev,
I'm trying to get qpid going in a virtual environment on Ubuntu 8.04, python 2.5. I was encountering the following exception:
ValueError: unknown url type: /home/<myhomedir>/specs/amqp.0-10.dtd
...when doing a regular import of qpid.
I found message threads discussing the same issue:
http://www.mail-archive.com/users@qpid.apache.org/msg00437.html
But the recommended workaround isn't portable because a hard coded path is necessary, which is no good for a portable virtual environment.
I noticed that the first few lines of the xml_parse routine are doing a check on the python version, and if its 2.3 they prefix "file://" to the path of the dtd file, which happens to have the same affect as the workaround described above (but without clobbering portability).
So, my question is, am I missing something here? The revision that brings this change is:
http://svn.apache.org/viewvc?view=revision&revision=656301
I'm fairly new to chatting on dev lists so be gentle if I'm way out to lunch.
Thanks
Stu
P.S. I also had to do some juggling to get the "spec" files in the right place, but I guess this should be discussed in separate email.