PyImport_Import fails on linux

2005-06-30 Thread geert . van . muylem
Hi all, I'm currently migrating an application from a windows platform to linux. I have somewhere a module which uses embedded python: (a python script where I want to call some functions...)    // Initialize the python library    Py_Initialize();    PyObject *pName = PyString_FromString("RASBa

Crash in PyImport_Import()

2006-12-18 Thread Geert Van Muylem
Hi, The following script works fine when I call it from the python interpreter but not when I call it from a c application (embedded python) It crashes in the PyImport_Import() import ldap import distutils.sysconfig def TestInit(): l = ldap.open("192.168.1.2") l.simple_bind_s("","

FW: Crash in PyImport_Import()

2006-12-19 Thread Geert Van Muylem
? Regards, Geert _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Van Muylem Sent: maandag 18 december 2006 22:51 To: python-list@python.org Subject: Crash in PyImport_Import() Hi, The following script works fine when I call it from the python interpreter but