raise ValueError:" Invalid flag provided." when import parted module in pyhon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
Fix Released
|
Medium
|
Unassigned | ||
Python |
Invalid
|
Undecided
|
Unassigned | ||
pyparted (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Maverick |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
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://
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/
from partition import Partition
File "/usr/lib/
partitionFl
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_
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)
[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/
from partition import Partition
File "/usr/lib/
partitionFl
ValueError: Invalid flag provided.
Test:
python-parted package from Debian archive works in Maverick
Changed in python: | |
assignee: | nobody → braulioareis (braulioareis) |
status: | New → Opinion |
Changed in python: | |
assignee: | braulioareis (braulioareis) → nobody |
status: | Opinion → New |
Changed in pyparted (Ubuntu): | |
assignee: | braulioareis (braulioareis) → nobody |
Changed in pyparted (Ubuntu): | |
status: | New → Confirmed |
Changed in oem-priority: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in python: | |
status: | New → Invalid |
Changed in oem-priority: | |
status: | Triaged → Fix Released |
tested