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

Lenard Lindstrom len-l at telus.net
Wed Jun 6 16:20:51 UTC 2007


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.

-- 
Lenard Lindstrom
<len-l at telus.net>




More information about the Pyrex mailing list