[Pyrex] Pyrex import error

Paul Malyschko paul.malyschko at gmail.com
Tue Nov 1 20:13:33 CET 2005


Hi all,

First of all I would like to thank Greg for creating Pyrex in the
first place.  You have saved me from the death of a thousand cuts that
was Python extension creation.

On to my particular problem.

I'm running Mac OS X 10.3 with MacPython 2.4.1 and have just installed
Pyrex 0.9.3.1.  After forgetting to link an important library the
first time round in setup.py, I then came across an error whereby the
there seems to be no initmodule function:

Traceback (most recent call last):
  File "test.py", line 1, in ?
    import headache
ImportError: Loaded module does not contain symbol _initheadache

Thinking that it was perhaps my bad coding, I used the prime numbers
example code and compiled it with distutils.  Unfortunately, I
received the same error.

I'm not sure whether it's a bug in the code, or if I'm missing
anything that is Mac specific, or if it's my particular set up that is
causing the errors.  I'm a newbie to Pyrex coding, so it is likely I'm
doing something dumb.  If anyone has any clues, help would be greatly
appreciated.

Cheers,
Paul.



More information about the Pyrex mailing list