473,405 Members | 2,415 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,405 software developers and data experts.

Python with MSC.Mentat


Hi all,

I'm running into a very strange problem at work.
We're using an application called MSC.Mentat (modelling/meshing
application) which provides a programmable interface through Python.

Because we were told that the Python version they ship is missing some
libraries we compiled it ourselves on both Solaris 9 and RedHat EL 3.0

When we use some of our inhouse scripts, which were written by a
student who has left us a long time ago, the scripts work great on the
Solaris version. (they were once written with Python 1.5 in mind so we
get some string/strop errors but nothin terribly wrong)

However, if we use the exact same method for our Linux version, Mentat
(which calls the Python scripts) core dumps with the following
messages:

Traceback (most recent call last):
File "main_process.py", line 6, in ?
from read_data_file import retrieve_param
File "read_data_file.py", line 3, in ?
from pickle import *
File "pickle.py", line 33, in ?
import struct
ImportError:
/cadappl/python/2.2.4-64/lib/python2.2/lib-dynload/struct.so:
undefined symbol: PyInt_FromLong
Exception py_mentat.error: 'Error in module main\n' in 'garbage
collection' ignored
Fatal Python error: unexpected exception during garbage collection

When I do an 'nm' on the struct.so file I can see that PyInt_FromLong
is undefined (along with a whole batch of others) but this is the same
on the Solaris version so that can't be it.

Do you have any idea what could cause this?

Kind regards,

Jeroen Kleijer
Jul 19 '05 #1
0 1364

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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.