import problems

Previous topic - Next topic


I have compiled Scribus 1.5.0 codes & required libraries in my Windows machine. I had Python 2.7.5 installed forehand in my machine. I compiled same python version sourcecodes for Scribus(python27.dll). I do not know if I could build proper working directory to run Scribus.

My problem is that when running scripts, importing any other imports than "import scribus", will fail.

import _socket
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

I have checked that scribus is running python interpreter that is installed in computer(not the one inside scribus working directory).
I have checked that correct dll/pyd files are found by script.
I have checked that reading msvcr90.dll and python27.dll are successfull.
I tried to get Scribus use other than installed python by changing path variable. No success. Scribus will always use installed python.

How could I force Scribus to use python inside scribus working directory?

Could someone give advice?


I find out the reason for my import problems. The used python libraries must be compiled with same compiler(and version).