import xcb.xproto fails

Bug #583157 reported by tadfisher@gmail.com
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
xpyb (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Fresh Lucid install. python-xpyb-1.2-2 from universe.

Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import xcb
>>> import xcb.xproto
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/xcb/xproto.py", line 11, in <module>
    class CHAR2B(xcb.Struct):
AttributeError: 'module' object has no attribute 'Struct'

Revision history for this message
Jaen Saul (slowbyte) wrote :

Same here, on latest Lucid:

/usr/lib/pymodules/python2.6/xcb/xproto.py in <module>()
      9 from array import array
     10
---> 11 class CHAR2B(xcb.Struct):
     12 def __init__(self, parent, offset, size):
     13 xcb.Struct.__init__(self, parent, offset, size)

AttributeError: 'module' object has no attribute 'Struct'

Changed in xpyb (Ubuntu):
status: New → Confirmed
Revision history for this message
Luper Rouch (luper-rouch) wrote :

To workaround this issue, create a symlink in the module's dir:

sudo ln -s /usr/lib/pymodules/python2.6/xcb/xcb.so.0.0.0 /usr/lib/pymodules/python2.6/xcb/xcb.so

Revision history for this message
Vsevolod Novikov (nnseva) wrote :

There are also bad softlinks installed in the
/usr/lib/pyshared/python2.6/xcb

xcb.so
xcb.so.0

linked to

../../../python2.6/dist-packages/xcb/xcb.so.0.0.0

instead of

/usr/lib/pyshared/python2.6/xcb/xcb.so.0.0.0

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.