[Pythonmac-SIG] _program_name not found: dynamic libraries in Panther's Python

Geoff Ghose geoff at cmrr.umn.edu
Wed Dec 10 00:34:00 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I posted this query on usenet to not much avail, so I though I'd try a more directed audience.

I'm trying to compile pybliographer, a python program for bibtex 
databases. Previously I had it working with fink's 2.2 python. Then I 
got the hair brained scheme to make use of the Python built into Panther (
10.3). After some fudging with LDFLAGS (-framework Python) I can get the 
compiled python modules to compile and load.

However, this is the output:

[piglet:~/Development/pybliographer-1.0.11/compiled] geoff% 
pybliographer
This is pybliographer, version 1.0.11
Copyright (C) 1998-2000 Frederic GOBRY
This is free software with ABSOLUTELY NO WARRANTY.
For details, type `warranty'.
Useful commands:
        help     to get some help
        quit     to quit

dyld: python Undefined symbols:
_program_name
Trace/BPT trap

And BTW, I've upgraded to python 2.3 within fink and now the same thing happens when using the fink python.


The trap happens after an import _recode where recode is a compiled Python module named _recodemodule.so

And recodemodule does define "program_name". Looking at a ktrace it certainly appears like _recodemodule is be accessed.
And this code is well tested on numerous other UNIX platforms.


Is there something funny I should know about Python modules in OS X?

Thanks,

Geoff Ghose
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/1rBOqjXIZ5vyiW8RAmDoAKCGows0spkJZl44rT7MMAg/K3CNfQCeIIeV
xGUHWU+dhFNZ/BvBOZc8PXQ=
=G7Nq
-----END PGP SIGNATURE-----



More information about the Pythonmac-SIG mailing list