Start a new topic

DLL Load failed errors when scripting

Original Post by: chrisell Wed Jun 11 17:21:37 2014

I'm having some trouble with importing stuff in Creator 13 with Python 2.7 and I don't understand why.

For example, in Creator 4.2.2 with Python 2.5, I use this command:

from ctypes import *

And it works fine.

If I have that in a script in CR13 with Python 2.7, it throws an error and I have no idea why:

E: Traceback (most recent call last):

E: File "<string>", line 10, in <module>

E: File "c:\Python27\Lib\ctypes\", line 10, in <module>

E: from _ctypes import Union, Structure, Array

E: ImportError: DLL load failed: The specified procedure could not be found

I get a similar problem trying to run an old script that used tkinter.

This is my command:

from Tkinter import *

But then I get this error in CR13 which stops the script from running.

E: Traceback (most recent call last):

E: File "<string>", line 9, in <module>

E: File "c:\Python27\Lib\lib-tk\", line 38, in <module>

E: import FixTk

E: File "c:\Python27\Lib\lib-tk\", line 65, in <module>

E: import _tkinter

E: ImportError: DLL load failed: %1 is not a valid Win32 application.

Any ideas?

Original Post by: ChrisRogers Wed Jun 11 17:31:45 2014

When you say Creator 13 with Python 2.7, do you mean that you have Python 2.7 installed?

Original Post by: SteveThompson Wed Jun 11 19:16:46 2014

Can you also tell us what the value of the env var "PYTHONPATH" is on your workstation? This must point to the 2.7 installation when running CR13 and the 2.5 python installation when running 4.X.

Login to post a comment