[Pyrex] [Mac Inter Core Duo OS 10.4.9 ] Next question: cmd line build of init

David Goldsmith David.L.Goldsmith at noaa.gov
Wed Jun 6 16:50:10 UTC 2007


Traceback (most recent call last):
  File "run_SolveSAC_Wrap.py", line 1, in <module>
    import SolveSAC_Wrap as SSW
ImportError: dynamic module does not define init function 
(initSolveSAC_Wrap)

"That's all she wrote," ATS.

DG

Lenard Lindstrom wrote:
> David Goldsmith wrote:
>   
>> Hi!  OK, I got my pyx to convert to c, I compiled it and linked it.  
>> When I try to "drive" it w/ a run*.py I get:
>>
>> ImportError: dynamic module does not define init function
>>
>> I googled this and found a 2003 thread regarding a soln. that uses 
>> distutils, which is all well and good, but I'm unfamiliar w/ the use of 
>> distutils (I know, I know, I need to learn) and regardless, I like to 
>> know how to build software "by hand" before I use a tool (so that I have 
>> a better understanding of exactly what the tool is doing).  So, how do I 
>> solve this problem building my thing at the command line?
>>
>>   
>>     
> I don't think this is a linking problem. Python is trying to import a 
> dynamic library as a Python extension module. Without the full traceback 
> it's impossible to know what is being imported.
>
>   

-- 
ERD/ORR/NOS/NOAA <http://response.restoration.noaa.gov/emergencyresponse/>



More information about the Pyrex mailing list