The python35 dll from Miniconda 3 not works on a embedded C application

0 views
Skip to first unread message

JKN_RB

unread,
Jul 21, 2016, 5:24:33 AM7/21/16
to conda - Public
Hi.
I've a C developed application that launch python 3 scripts and uses the results of this scripts inside the application. 
To do this I started installing the Python 3.5.2 (on windows) and coping the python35.dll in the same folder of the C application. On C program main, I wrote this:

int main (int argc, char *argv[])

{

Py_SetProgramName(argv[0]);               

                // Initialize the Python Interpreter

                Py_Initialize();

                PySys_SetArgv(argc,argv);               

                // Build the name object

pName = PyUnicode_DecodeFSDefault("py_script");               

                // Load the module object

pModule = PyImport_Import(pName);

                if(pModule) {

                               pFunc   = PyObject_GetAttrString(pModule, "nameFunction");

                }

….

}


This works perfect. But now I want to use the Miniconda3 because I need to implement "numba" on my scripts. I uninstall the python35 and install miniconda3,and I copy the python35.dll from miniconda folder to my application folder as same before but now does not work. The C application do not starts.


I've observed that the dll of Python35 installation and the dll of miniconda installation are NOT the same, I think miniconda 3 installs the 3.5.1 version (I'm not sure of this).


There is more differences between the Python35 and de Miniconda3 that prevent that it works correctly?




Thanks for your help.



Reply all
Reply to author
Forward
0 new messages