** Description changed: + Impact: Python code using pkg_resources where the code uses wadllib (or + launchpadlib) will spuriosly fail, causing problems in other packages. + Development fix: cjwatson is fixing as part of his Python 3 port. + Stable fix: drop the requirement from the requires.txt, as it is not doing anything + and only breaking code. elementtree is merged in to Python as of 2.6, and having + then entry won't change what is installed on Ubuntu. + Test case: + 1. Install python-wadllib from lucid. + 2. Check that "elementtree" is listed in /usr/share/pyshared/wadllib-1.1.4.egg-info/requires.txt + 3. Install python-wadllib from lucid-proposed + 4. Check that "elementtree" is no-longer listed in /usr/share/pyshared/wadllib-1.1.4.egg-info/requires.txt + Regression potential: very low, as the line was redundant. + Binary package hint: python-wadllib With the python-wadllib in maverick installed, the following code fails: - - Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) + Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from pkg_resources import require >>> require("wadllib") Traceback (most recent call last): - File "<stdin>", line 1, in <module> - File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 654, in require - needed = self.resolve(parse_requirements(requirements)) - File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 552, in resolve - raise DistributionNotFound(req) + File "<stdin>", line 1, in <module> + File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 654, in require + needed = self.resolve(parse_requirements(requirements)) + File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 552, in resolve + raise DistributionNotFound(req) pkg_resources.DistributionNotFound: elementtree - >>> + >>> It is because `/usr/share/pyshared/wadllib-1.1.4.egg-info/requires.txt` contains `elementtree`, but in fact `elementree` is not used when the user is using python >= 2.5
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/681394 Title: existing dependency on elementree at python level To manage notifications about this bug go to: https://bugs.launchpad.net/wadllib/+bug/681394/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs