<div dir="ltr"><div><div>Hello all,<br><br></div>I'm am using cx_freeze on Windows to create an executable of a Python Script which includes vtk.</div><div>The python script executes fine. Vtk is correctly installed and PYTHONPATH and PATH variables are set accordingly.</div><div><br></div><div>I ran cx_freeze using a setup.py file, which created a build folder with an executable of the script and the necessary libraries, including the vtk files necessary for it to run in a "vtk" subfolder. No major problem there.</div><div><br></div><div>Double clicking on the .exe file in that folder launchs the program.<br></div><div>Double clicking on the .exe file after temporaly deleting my C:\Python folder also works.</div><div>So at that point I thought my .exe file was indeed "stand alone" and needed only the subfolders in the build folder (like the vtk one) to work on its own.</div><div><br></div><div>However, when I sent this build folder to a colleague, the execution fails because of vtk, with message :</div><div>Traceback (most recent call last):</div><div>File "C:\Python27\lib\site-<wbr>packages\cx_Freeze\<wbr>initscripts\__startup_.py", line 14 in run</div><div>File "C:\Python27\lib\site-<wbr>packages\cx_Freeze\<wbr>initscripts\Console.pu", line 26, in run</div><div>File "PediLoc_Main.py", line 28 in <module><br></div><div>File "C:\Users\Philippe\Documents\<wbr>Friz\PediLoc_Result.py", line 109 in <module></div><div>File "C:\Python27\Lib\site-<wbr>packages\vtk\lib\python2.7\<wbr>site-packages\vtk\__init__.py"<wbr>, line 41 in <module></div><div>File "C:\Python27\Lib\site-<wbr>packages\vtk\lib\python2.7\<wbr>site-packages\vtk\<wbr>vtkCommonCore.py", line 9, in <module></div><div>Import Error : DLL load failed : The specified module could not be found.</div><div><br></div><div>In the vtk subfolder of the build, there is vtkCommonCore-8.0.dll.<br></div><div><br></div><div>So I'm sort of stumped here. The .exe works on my computer, even when I take out Python juste to see if execution is possible without the python (and therefore, vtk) libraries.<br></div><div>But not on another computer....<br></div><div><br></div><div>Using VTK 8.0.1, Python 2.7, both my computer and my colleague's one are Windows 7, 64 bits machines.</div><div><br></div><div>Thanks for any insight,</div><div>ClĂ©ment<br></div><div><div><br></div></div></div>