Adding Modules to precompiled installation of Python

Chris Liechti cliechti at gmx.net
Wed Jul 24 02:33:05 EDT 2002


"Jayant Kulkarni" <jayant at tam.cornell.edu> wrote in
news:ahkqsd$r2b$1 at news01.cit.cornell.edu: 

> "Chris Liechti" <cliechti at gmx.net> wrote in message
> news:Xns9254A000DE623cliechtigmxnet at 62.2.16.82...
>> "Jayant Kulkarni" <jayant at tam.cornell.edu> wrote in
>> news:ahiii8$4u2$1 at news01.cit.cornell.edu:
>>
>> >  I am using the finite-element package Abaqus which comes with
>> > precompiled Python (ver 1.5). I want to interface this with Matlab
>> > using Pymat. (PyMat utility by Sterian). The problem is that as the
>> > python is precompiled I do not know how to import new modules..
>> >
> I changed the PYTHONPATH so that it
>      points 
> to the pymat.pyd file. I then tried
> >>> import PyMat
>  And I get the following error:
>  ImportError: dynamic module does not define init function (initPyMat)
> 

so this DLL isn't for python. maybe its for the matlab side.

>  If I try
> >>> import pymat
>  I get the error:
>  Fatal Python error: PyThreadState_Get: no current thread

this looks like a python extension. the error could mean that your 
precompiled python was built without threads, but i don't realy know. maybe 
someone else can jump in.

chris

-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list