Start a new topic

Creator 15 Openflight Script Tkinter Import Error

I have trouble with running Python 2.7 OpenFlight Script with Tkinter in Creator 15. However the script is running fine in Creator 4.2 (with Python 2.5).

The error message is following:

E: Traceback (most recent call last):

E: File "", line 30

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: The specified module could not be found.

The script is a GUI application. All of the Python directories needed are in sys.path.

Could you help me resolve this issue?

We've seen Python modules fail to load similar to this. Usually this happens when a DLL required by the Python module cannot be loaded. The dependent DLL may fail to load if either:

  • The DLL is not found in the program's PATH.
  • The DLL is compiled in a way that is incompatible with Creator.
Can you verify that the PATH is set up such that the DLLs upon which Tkinter depend will be "found" at runtime?

The PATH is set up, every dependency is in that. We did not have any problem with Creator 4.2 but the version 15 cannot load even base modules such as math.

Is it not possible to use external Python libraries in Creator any more?

You should be able to load base Python modules in Creator without problem. I am able to load math in CR 15 so I suspect something may be wrong in your set up. What is the error message you get when you try to import math in Creator OpenFlight Script Editor? I suspect PYTHONPATH may not be set up correctly for Creator to find your installation.

Login to post a comment