WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-12-2014, 02:58 AM
ptjt255 ptjt255 is offline
Member
 
Join Date: Oct 2008
Posts: 24
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
Reply With Quote
  #2  
Old 03-12-2014, 03:33 AM
ptjt255 ptjt255 is offline
Member
 
Join Date: Oct 2008
Posts: 24
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.
Attached Thumbnails
Click image for larger version

Name:	Picture1.jpg
Views:	695
Size:	67.3 KB
ID:	630  
Reply With Quote
  #3  
Old 03-12-2014, 06:30 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
If a file is not automatically included in the executable you can manually add it in the second step of the publish wizard.
Reply With Quote
  #4  
Old 03-12-2014, 07:26 AM
ptjt255 ptjt255 is offline
Member
 
Join Date: Oct 2008
Posts: 24
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 "<string>", 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
Reply With Quote
  #5  
Old 03-12-2014, 12:58 PM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
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).
Reply With Quote
  #6  
Old 03-13-2014, 03:41 AM
ptjt255 ptjt255 is offline
Member
 
Join Date: Oct 2008
Posts: 24
Thumbs down

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.

Any other thoughts??

Many thanks.
Attached Thumbnails
Click image for larger version

Name:	Picture1.png
Views:	710
Size:	121.2 KB
ID:	631  
Reply With Quote
  #7  
Old 03-13-2014, 09:59 AM
ptjt255 ptjt255 is offline
Member
 
Join Date: Oct 2008
Posts: 24
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.
Reply With Quote
  #8  
Old 03-13-2014, 12:21 PM
mspusch mspusch is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 223
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
Reply With Quote
  #9  
Old 03-14-2014, 12:32 AM
ptjt255 ptjt255 is offline
Member
 
Join Date: Oct 2008
Posts: 24
Hi Matthias,

I'm using a development licence.
Reply With Quote
  #10  
Old 03-18-2014, 01:01 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing of an imported .py file Uttama_vizard Vizard 2 05-04-2010 06:18 AM
problems with output to a text file within executable Saz Vizard 1 07-01-2009 11:01 AM
executable file with avatars incorrectly displayed aa-chris Vizard 2 11-03-2008 10:28 AM
File Management Uttama_vizard Vizard 2 07-01-2008 09:44 AM
Writing text files with executable adimov Vizard 1 03-21-2008 03:21 PM


All times are GMT -7. The time now is 03:45 PM.


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