Public bug reported: This happens on the up-to-date Ubuntu 12.04.
$ lsb_release -rd Description: Ubuntu 12.04.5 LTS Release: 12.04 parted: 2.3-8ubuntu5.2 python-parted: 3.6-4 $ python Python 2.7.3 (default, Feb 27 2014, 20:00:17) [GCC 4.6.3] 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/python2.7/dist-packages/parted/__init__.py", line 60, in <module> from partition import Partition File "/usr/lib/python2.7/dist-packages/parted/partition.py", line 260, in <module> partitionFlag[__flag] = _ped.partition_flag_get_name(__flag) ValueError: Invalid flag provided. >>> The symptoms are exactly the same as in bug 669931. However, the patch from that bug doesn't apply. ** Affects: pyparted (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1350946 Title: import parted fails with ValueError: Invalid flag provided To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pyparted/+bug/1350946/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs