Sorry, grabbed the wrong file. *This* is the patch I'm uploading for the Maverick SRU.
** Patch added: "pyparted_3.4-2ubuntu1.1.debdiff" https://bugs.launchpad.net/ubuntu/+source/pyparted/+bug/669931/+attachment/1731945/+files/pyparted_3.4-2ubuntu1.1.debdiff ** Description changed: + During Maverick's development cycle, pyparted and parted in Ubuntu got + out of sync. pyparted added a new constant that parted didn't yet have, + so we dropped that constant. + + Later in the development cycle, the constant was added back. parted's + awareness of this constant and pyparted's lack of awareness results in + an exception being raised immediately when you attempt to import the + parted module. + + IMPACT: The python-parted package is unusable, because the parted module + can not be imported + + DEVELOPMENT: The bug was fixed in Natty by undoing the change in version + 3.4-2ubuntu1 (i.e. 3.4-2ubuntu2 is the same as 3.4-2, except for + changelog entries) + + PATCH: Attached at + <http://launchpadlibrarian.net/59071487/pyparted_3.4-2ubuntu1.1.debdiff>. + This is identical to the patch uploaded for Natty, with the exception of + the version number + + REPRODUCTION: Run "import parted" at a Python prompt: + + Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) + [GCC 4.4.5] on linux2 + Type "help", "copyright", "credits" or "license" for more information. + >>> import parted + Traceback (most recent call last): + File "<stdin>", line 1, in <module> + File "/usr/lib/pymodules/python2.6/parted/__init__.py", line 53, in <module> + from partition import Partition + File "/usr/lib/pymodules/python2.6/parted/partition.py", line 249, in <module> + partitionFlag[__flag] = _ped.partition_flag_get_name(__flag) + ValueError: Invalid flag provided. + + REGRESSION: Minimal risk. Can't do much worse than an un-importable + module. + + ==== + Original description (changed by broder): + Ubuntu Version: Maverick Arch: i386 Summery: According changelog, no_PED_PARTITION_DIAG.patch is for parted 2.2, but in Maverick, the parted is 2.3. Packages: ii libparted0debian1 2.3-2ubuntu1 The GNU Parted disk partitioning shared library ii parted 2.3-2ubuntu1 The GNU Parted disk partition resizing program ii python-parted 3.4-2ubuntu1 Python interface for libparted Step to reproduce: - Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) + Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import parted Traceback (most recent call last): - File "<stdin>", line 1, in <module> - File "/usr/lib/pymodules/python2.6/parted/__init__.py", line 53, in <module> - from partition import Partition - File "/usr/lib/pymodules/python2.6/parted/partition.py", line 249, in <module> - partitionFlag[__flag] = _ped.partition_flag_get_name(__flag) + File "<stdin>", line 1, in <module> + File "/usr/lib/pymodules/python2.6/parted/__init__.py", line 53, in <module> + from partition import Partition + File "/usr/lib/pymodules/python2.6/parted/partition.py", line 249, in <module> + partitionFlag[__flag] = _ped.partition_flag_get_name(__flag) ValueError: Invalid flag provided. Test: python-parted package from Debian archive works in Maverick -- raise ValueError:" Invalid flag provided." when import parted module in pyhon https://bugs.launchpad.net/bugs/669931 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs