Version 2.5.0-5ubuntu1 breaks python code using the cpp module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu One storage protocol |
Fix Released
|
High
|
dobey | ||
protobuf (Ubuntu) |
Fix Released
|
Undecided
|
Steve Langasek | ||
Trusty |
Won't Fix
|
Undecided
|
Steve Langasek | ||
ubuntuone-storage-protocol (Ubuntu) |
Fix Released
|
High
|
dobey | ||
Trusty |
Fix Released
|
High
|
dobey |
Bug Description
The 2.5.0-5ubuntu1 upload in proposed includes the following change:
* python-protobuf: switch back to the pure Python implementation, as
upstream appears to no longer be maintaining the current C++ based Python
binding. See the following upstream issues for details:
- https:/
- https:/
However, the cpp_message.py is still included, and tries to import the C++ based module which no longer exists, which results in the following failure in the ubuntuone-
Traceback (most recent call last):
File "/usr/bin/u1trial", line 40, in <module>
main()
File "/usr/lib/
suite = test_runner.
File "/usr/lib/
config[
File "/usr/lib/
module_suite = self._load_
File "/usr/lib/
module = __import__(modpath, None, None, [""])
File "/tmp/adt-
from ubuntuone.
File "/tmp/adt-
from ubuntuone.
File "/tmp/adt-
from ubuntuone.
File "/tmp/adt-
from google.protobuf import descriptor as _descriptor
File "/usr/lib/
from google.
File "/usr/lib/
from google.
ImportError: cannot import name _net_proto2_
make[1]: *** [override_
It seems like this python module should instead issue a DeprecationWarning and fall back to using the pure python implementation, whilst code which uses the cpp module in some way, transitions over to the pure python implementation.
Related branches
- Roberto Alsina (community): Approve
-
Diff: 21 lines (+5/-1)1 file modifiedrun-tests (+5/-1)
Changed in ubuntuone-storage-protocol: | |
importance: | Undecided → High |
assignee: | nobody → Rodney Dawes (dobey) |
status: | New → In Progress |
Changed in ubuntuone-storage-protocol (Ubuntu Trusty): | |
assignee: | nobody → Rodney Dawes (dobey) |
Changed in ubuntuone-storage-protocol: | |
status: | In Progress → Fix Committed |
Changed in ubuntuone-storage-protocol: | |
status: | Fix Committed → Fix Released |
This bug was fixed in the package protobuf - 2.5.0-5ubuntu2
---------------
protobuf (2.5.0-5ubuntu2) trusty; urgency=medium
* Remove cpp_message.py from the python bindings package, since it requires
the C++ module implementation that we're no longer shipping.
LP: #1275826.
-- Steve Langasek <email address hidden> Mon, 03 Feb 2014 20:17:09 +0000