_struct in Python 2.5.2

Olaf Schwarz olaf_schwarz_hh at yahoo.de
Sun Feb 24 16:39:23 CET 2008


I am trying to run this application
on uNSLUng Linux 6.10 using the optware python packages.

As I obtained segmentation faults using Python 2.4, I have upgraded to
2.5.2. Now the execution terminates a lot earlier with this error

  File "/usr/local/bemused_mpd/bemused-mpd.py", line 33, in <module>
    import bemused
  File "/usr/local/bemused_mpd/bemused.py", line 27, in <module>
    import bluetooth, syslog
  File "/opt/lib/python2.5/site-packages/bluetooth.py", line 2, in
    import struct
  File "/opt/lib/python2.5/struct.py", line 30, in <module>
    from _struct import Struct, error
ImportError: No module named _struct

I found out that there has been a file named _struct.so in 2.5.1 but
it has disappeared in 2.5.2. With no package available for downgrading
to 2.5.1 and no idea how to resolve this I am stuck at this point.

Any help appreciated.

Thank you

More information about the Python-list mailing list