ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Import Error
Posted by Sean on Feb-14-2014 05:22
I am having a problem running my python executable on other machines.  It works fine when running it on the machine I build it on.  I am compiling the source code into an executable using py2exe.  The executable contains chart images produced by ChartDirector's pychartdir.  When I try to run my executable on another machine I am receiving the error:
          ImportError: Error loading "C:\\exeTest\\dist\\chartdir.dll" [error code = 126]

Can anyone help me with this?

The other machine I am running the executable on does not have Python installed.  But, since this is a python executable it shouldn't need python installed.

Exact error traceback:

Traceback (most recent call last):
  File "gui.py", line 7, in <module>
  File "pychartdir.pyo", line 5, in <module>
  File "pychartdir27.pyo", line 12, in <module>
  File "pychartdir27.pyo", line 10, in __load
ImportError: Error loading "H:\\HOT test\\dist\\chartdir.dll" [error code = 126]

  Re: Import Error
Posted by Sean on Feb-14-2014 22:34
Nevermind, I had to manually add chartdir.dll into the package for the executable and the problem was solved.