python-protobuf isn't usable on python 2.6

Bug #900941 reported by Guillermo Gonzalez
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
protobuf (Ubuntu)
Invalid
Undecided
Unassigned
Natty
Won't Fix
Undecided
Unassigned
Oneiric
Won't Fix
Undecided
Unassigned

Bug Description

protobuf isn't built for python 2.6, here is the traceback:

Traceback (most recent call last):
  File "/home/guillermo/canonical/ubuntuone-client/trunk/bin/ubuntuone-syncdaemon", line 48, in <module>
    from ubuntuone.syncdaemon.main import Main
  File "/usr/lib/python2.6/dist-packages/ubuntuone-client/ubuntuone/syncdaemon/main.py", line 27, in <module>
    from ubuntuone.syncdaemon import (
  File "/usr/lib/python2.6/dist-packages/ubuntuone-client/ubuntuone/syncdaemon/action_queue.py", line 56, in <module>
    from ubuntuone.storageprotocol import protocol_pb2, content_hash
  File "/usr/lib/python2.6/dist-packages/ubuntuone-storage-protocol/ubuntuone/storageprotocol/protocol_pb2.py", line 3, in <module>
    from google.protobuf import descriptor
ImportError: No module named google.protobuf

dpkg -L and apt-cache output:

guillermo@naug:~/$ dpkg -L python-protobuf
/.
/usr
/usr/lib
/usr/lib/python2.7
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/google
/usr/lib/python2.7/dist-packages/google/protobuf
/usr/lib/python2.7/dist-packages/google/protobuf/internal
/usr/lib/python2.7/dist-packages/google/protobuf/internal/_net_proto2___python.so
/usr/lib/python2.7/dist-packages/google/protobuf/compiler
/usr/lib/python2.7/dist-packages/protobuf-2.4.0a.egg-info
/usr/lib/pyshared
/usr/lib/pyshared/python2.7
/usr/lib/pyshared/python2.7/google
/usr/lib/pyshared/python2.7/google/protobuf
/usr/lib/pyshared/python2.7/google/protobuf/internal
/usr/share
/usr/share/doc
/usr/share/doc/python-protobuf
/usr/share/doc/python-protobuf/README.Debian
/usr/share/doc/python-protobuf/copyright
/usr/share/pyshared
/usr/share/pyshared/google
/usr/share/pyshared/google/protobuf
/usr/share/pyshared/google/protobuf/__init__.py
/usr/share/pyshared/google/protobuf/descriptor.py
/usr/share/pyshared/google/protobuf/descriptor_pb2.py
/usr/share/pyshared/google/protobuf/message.py
/usr/share/pyshared/google/protobuf/reflection.py
/usr/share/pyshared/google/protobuf/service.py
/usr/share/pyshared/google/protobuf/service_reflection.py
/usr/share/pyshared/google/protobuf/text_format.py
/usr/share/pyshared/google/protobuf/internal
/usr/share/pyshared/google/protobuf/internal/__init__.py
/usr/share/pyshared/google/protobuf/internal/api_implementation.py
/usr/share/pyshared/google/protobuf/internal/containers.py
/usr/share/pyshared/google/protobuf/internal/cpp_message.py
/usr/share/pyshared/google/protobuf/internal/decoder.py
/usr/share/pyshared/google/protobuf/internal/encoder.py
/usr/share/pyshared/google/protobuf/internal/message_listener.py
/usr/share/pyshared/google/protobuf/internal/python_message.py
/usr/share/pyshared/google/protobuf/internal/type_checkers.py
/usr/share/pyshared/google/protobuf/internal/wire_format.py
/usr/share/pyshared/google/protobuf/compiler
/usr/share/pyshared/google/protobuf/compiler/plugin_pb2.py
/usr/share/pyshared/protobuf-2.4.0a.egg-info
/usr/share/pyshared/protobuf-2.4.0a.egg-info/PKG-INFO
/usr/share/pyshared/protobuf-2.4.0a.egg-info/namespace_packages.txt
/usr/share/pyshared/protobuf-2.4.0a.egg-info/top_level.txt
/usr/share/pyshared/protobuf-2.4.0a.egg-info/dependency_links.txt
/usr/share/pyshared/protobuf-2.4.0a.egg-info/SOURCES.txt
/usr/share/python
/usr/share/python/ns
/usr/share/python/ns/python-protobuf
/usr/lib/python2.7/dist-packages/google/protobuf/__init__.py
/usr/lib/python2.7/dist-packages/google/protobuf/descriptor.py
/usr/lib/python2.7/dist-packages/google/protobuf/descriptor_pb2.py
/usr/lib/python2.7/dist-packages/google/protobuf/message.py
/usr/lib/python2.7/dist-packages/google/protobuf/reflection.py
/usr/lib/python2.7/dist-packages/google/protobuf/service.py
/usr/lib/python2.7/dist-packages/google/protobuf/service_reflection.py
/usr/lib/python2.7/dist-packages/google/protobuf/text_format.py
/usr/lib/python2.7/dist-packages/google/protobuf/internal/__init__.py
/usr/lib/python2.7/dist-packages/google/protobuf/internal/api_implementation.py
/usr/lib/python2.7/dist-packages/google/protobuf/internal/containers.py
/usr/lib/python2.7/dist-packages/google/protobuf/internal/cpp_message.py
/usr/lib/python2.7/dist-packages/google/protobuf/internal/decoder.py
/usr/lib/python2.7/dist-packages/google/protobuf/internal/encoder.py
/usr/lib/python2.7/dist-packages/google/protobuf/internal/message_listener.py
/usr/lib/python2.7/dist-packages/google/protobuf/internal/python_message.py
/usr/lib/python2.7/dist-packages/google/protobuf/internal/type_checkers.py
/usr/lib/python2.7/dist-packages/google/protobuf/internal/wire_format.py
/usr/lib/python2.7/dist-packages/google/protobuf/compiler/plugin_pb2.py
/usr/lib/python2.7/dist-packages/protobuf-2.4.0a.egg-info/PKG-INFO
/usr/lib/python2.7/dist-packages/protobuf-2.4.0a.egg-info/namespace_packages.txt
/usr/lib/python2.7/dist-packages/protobuf-2.4.0a.egg-info/top_level.txt
/usr/lib/python2.7/dist-packages/protobuf-2.4.0a.egg-info/dependency_links.txt
/usr/lib/python2.7/dist-packages/protobuf-2.4.0a.egg-info/SOURCES.txt
/usr/lib/pyshared/python2.7/google/protobuf/internal/_net_proto2___python.so
/usr/share/doc/python-protobuf/changelog.Debian.gz
guillermo@naug:~/$ apt-cache policy python-protobuf
python-protobuf:
  Installed: 2.4.0a-2ubuntu2
  Candidate: 2.4.0a-2ubuntu2
  Version table:
 *** 2.4.0a-2ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages
        100 /var/lib/dpkg/status

Related branches

Revision history for this message
Bryce Harrington (bryce) wrote :

Hi Guillermo,

The patch looks fine in concept, but can you post separate versions each for natty, oneiric, and precise?

Changed in protobuf (Ubuntu):
status: New → Incomplete
Revision history for this message
Bryce Harrington (bryce) wrote :

Re-subscribe sponsors when the patches are ready to go.

Reason I ask is because in order to SRU this for natty/oneiric, policy is it has to be fixed in the development version first and verified good.

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Hi Bryce,

I'll work on the precise and natty patches during this week and re-subscribe spronsors.

Thanks

Revision history for this message
Stéphane Graber (stgraber) wrote :

Uploaded to oneiric.

Changed in protobuf (Ubuntu Oneiric):
status: New → Fix Committed
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

This does not need to be fixed in precise because 2.6 will not be supported, so this can waive the usual rule that would prevent it from moving to oneiric-updates until the bug is fixed in precise.

Changed in protobuf (Ubuntu):
status: Incomplete → Invalid
tags: added: verification-needed
Revision history for this message
Clint Byrum (clint-fewbar) wrote : Please test proposed package

Hello Guillermo, or anyone else affected,

Accepted protobuf into oneiric-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Hi Clint,

Thanks for the update.

I'm still trying to make it work on natty, but I'm not being able to build it for both python versions. I'll try to get some help from a more experienced ubuntu developer.

Regards,

Revision history for this message
Brian Murray (brian-murray) wrote :

I was unable to recreate this bug on natty:

bdmurray@hawkgirl:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"
bdmurray@hawkgirl:~$ python --version
Python 2.7.1+
bdmurray@hawkgirl:~$ python2.6
Python 2.6.6 (r266:84292, Mar 25 2011, 19:24:58)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from google.protobuf import descriptor

Revision history for this message
Brian Murray (brian-murray) wrote : Verification still needed

The fix for this bug has been awaiting testing feedback in the -proposed repository for oneiric for more than 90 days. Please test this fix and update the bug appropriately with the results. In the event that the fix for this bug is still not verified 15 days from now, the package will be removed from the -proposed repository.

tags: added: removal-candidate
Revision history for this message
Brian Murray (brian-murray) wrote :

The version of protobuf in oneiric-proposed has been removed as this bug report was not verified in a timely fashion.

Changed in protobuf (Ubuntu Oneiric):
status: Fix Committed → Triaged
Changed in protobuf (Ubuntu Natty):
status: New → Won't Fix
tags: removed: removal-candidate verification-needed
Revision history for this message
Rolf Leggewie (r0lf) wrote :

oneiric has seen the end of its life and is no longer receiving any updates. Marking the oneiric task for this ticket as "Won't Fix".

Changed in protobuf (Ubuntu Oneiric):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.