WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Executable file exiting (https://forum.worldviz.com/showthread.php?t=4980)

ptjt255 03-12-2014 02:58 AM

Executable file exiting
 
I have created an executable version of some code but when I try and run it, it starts to load and then just exits - do you know why this might be happening?

Thanks
:confused:

ptjt255 03-12-2014 03:33 AM

1 Attachment(s)
I have the run code with the console visible and attach the error that I'm getting. I have numpy installed on the PC that I'm creating the exe file on and the exe file works on this PC but as soon as I try and run the exe file on any other machine that doesn't have numpy installed, I get the attached error message.

Jeff 03-12-2014 06:30 AM

If a file is not automatically included in the executable you can manually add it in the second step of the publish wizard.

ptjt255 03-12-2014 07:26 AM

Thanks Jeff, I think I knew that somewhere in the depths if my memory from a similar issue a few years ago.

Unfortunately, in this instance adding the missing files hasn't worked.

I have tried just running the code that seems to be causing the problems:

C:\Program Files\WorldViz\Vizard30\python\numpy\_int_.py

and I'm getting the following error:

C:\Program Files\WorldViz\Vizard30\python\numpy

Traceback (most recent call last):
File "", line 1, in ?
File "C:\Program Files\WorldViz\Vizard30/python\viz.py", line 14, in ?
import vizmat
File "C:\Program Files\WorldViz\Vizard30/python\vizmat.py", line 3, in ?
from random import random
File "random\__init__.py", line 3, in ?
from mtrand import *
File "numpy.pxi", line 74, in mtrand
File "C:\Program Files\WorldViz\Vizard30\python\numpy\__init__.py", line 37, in ?
import testing
File "C:\Program Files\WorldViz\Vizard30\python\numpy\testing\__ini t__.py", line 3, in ?
from numpytest import *
File "C:\Program Files\WorldViz\Vizard30\python\numpy\testing\numpy test.py", line 19, in ?
from numpy.distutils.exec_command import splitcmdline
File "C:\Program Files\WorldViz\Vizard30\python\numpy\distutils\__i nit__.py", line 6, in ?
import ccompiler
File "C:\Program Files\WorldViz\Vizard30\python\numpy\distutils\cco mpiler.py", line 6, in ?
from distutils.ccompiler import *
File "distutils\__init__.py", line 6, in ?
import ccompiler
File "distutils\ccompiler.py", line 7, in ?
from distutils import ccompiler
ImportError: cannot import name ccompiler
** ERROR: Failed to initialize python

Frank Verberne 03-12-2014 12:58 PM

It's best to trigger the code using numpy while compiling the executable. Then, the files that Vizard needs to run the executable will be compiled in the executable. You can also add files manually, but chances are you're missing out on one or two 'obscure' files (a .dll file).

ptjt255 03-13-2014 03:41 AM

1 Attachment(s)
Thanks Frank.

I have tried everything, including adding the missing files and the executable still isn't working, although the error in the console has now changed to the attached. :mad:

Any other thoughts??

Many thanks.

ptjt255 03-13-2014 09:59 AM

I need to start running this code on Monday, so I'm getting a little nervous! Any chance that I can send it to you Jeff to convert to an exe?

Many thanks.

mspusch 03-13-2014 12:21 PM

Hi ptjt255,

which license of Vizard are you using / do you own?

If it's a Vizard LITE, there are some restrictions about what an executable can do and which modules can be included.

All best,

Matthias

ptjt255 03-14-2014 12:32 AM

Hi Matthias,

I'm using a development licence.

Jeff 03-18-2014 01:01 AM

I tried publishing a simply numpy example with Vizard and it worked fine. Can you reduce your code to the smallest example possible that reproduces the issue when published? Perhaps reduce it to some numpy code or even import statements related to that library and then post that here.


All times are GMT -7. The time now is 01:54 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC