Scribusoid

Author Topic: import problems  (Read 1410 times)

Juha

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
  • Scribus User
import problems
« on: August 04, 2015, 02:50:14 pm »
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?
Thanks!

Juha

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
  • Scribus User
Re: import problems
« Reply #1 on: August 07, 2015, 01:26:18 pm »
I find out the reason for my import problems. The used python libraries must be compiled with same compiler(and version).

 

palmate