473,383 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

_struct in Python 2.5.2

Hi,

I am trying to run this application
http://svn.navi.cx/misc/trunk/python/bemused/
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
message:

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
<module>
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
Olaf
Feb 24 '08 #1
2 3890
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.
Where did you get your copy of Python 2.5.2 from, and how did you
install it? _struct should be there; if it isn't, something went
wrong during the installation.

Regards,
Martin
Feb 24 '08 #2
On Feb 24, 10:39 am, Olaf Schwarz <olaf_schwarz...@yahoo.dewrote:
Hi,

I am trying to run this applicationhttp://svn.navi.cx/misc/trunk/python/bemused/
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
message:

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
<module>
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
Olaf
Hi Olaf,
If you are still stuck, run
../configure
make
make install

if you skip the command make, then the required files (<python-install-
path>lib/python2.5/lib-dynload/_struct.so) doesn't get created. Get
the latest 2.5.2 rpm from python.org, it works.

Good luck.
-N
Mar 4 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Emile van Sebille | last post by:
QOTW: "If we get 2.3.3c1 out in early December, we could release 2.3.3 final before the end of the year, and start 2004 with a 100% bug-free codebase <wink>." -- Tim Peters "cjOr proWe vbCould...
0
by: Emile van Sebille | last post by:
QOTW: "Have you ever used the copy module? I am *not* a beginner, and have used it *once* (and I can't remember what for, either)." -- Michael Hudson "It will likely take a little practice...
0
by: Emile van Sebille | last post by:
QOTW (in the OS agnostic category): "There is a (very popular) Python package out there which exposes the win32 api. I'm not sure what it's called. (win32api? pythonwin? win32all?)" -- Francis...
0
by: Emile van Sebille | last post by:
QOTW (advanced interfaces track): "I'm firmly in favour of any language that can DWIMNWIS." -- Tim Delaney QOTW (MS roadkill track): "Underestimate MS at your own risk. It is one thing to not...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.