WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-20-2008, 07:02 AM
djdesmangles djdesmangles is offline
Member
 
Join Date: Nov 2006
Posts: 88
Exclamation Publish EXE with win32com

Hello Wizards,

I got a problem there. My script is importing the win32com python module. It's running fine inside Vizard, but when I try to publish my .exe the interpreter tell me that there's no module named pythoncom. Can I have some advices?

Thanks !!
viz.FOREVER !!
D.
Reply With Quote
  #2  
Old 06-20-2008, 01:23 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The win32com module probably depends on some dll located in the windows system folder. If this is the case, then you will need to manually add the file to your published exe.
Reply With Quote
  #3  
Old 06-23-2008, 01:40 PM
djdesmangles djdesmangles is offline
Member
 
Join Date: Nov 2006
Posts: 88
Exclamation AAAAAAARRRGGG !!!! Help !!

All right Farshi !!

It's working, thanks. But now I got this problem when runninmg the exe (I don't understand why, but it's working fine in the IDE):

************************************************** ****************************
** Loading PHCS1.4.py
************************************************** ****************************
** NOTIFY: 0 joystick(s) detected
Traceback (most recent call last):
File "<string>", line 11, in ?
File "PHCS1.4.py", line 170, in ?
class ContextEvents(win32com.client.getevents("SAPI.SpSh aredRecoContext")):
TypeError: Error when calling the metaclass bases
cannot create 'NoneType' instances
** Load Time: 0.60 seconds
** WARNING: There were errors in your script, press any key to exit

This thing is driving me crazy...

viz.FOREVER !!
D.
Reply With Quote
  #4  
Old 07-03-2008, 10:07 AM
djdesmangles djdesmangles is offline
Member
 
Join Date: Nov 2006
Posts: 88
Question I really need some help...

Hello Wizards,

I really need some help there, I don't understand why my application works in Vizard and not when it's in .exe !!! I still got this error:
TypeError: Error when calling the metaclass bases cannot create 'NoneType' instances when I running the .exe.

I think this line of code is the source of my headache:
class ContextEvents(win32com.client.getevents("SAPI.SpSh aredRecoContext")):

Any suggestions ?

viz.FOREVER !!
D.
Reply With Quote
  #5  
Old 07-03-2008, 05:32 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Is there supposed to be a space in the string "SAPI.SpSh aredRecoContext"? I'm not familiar with the win32com library, so I don't know what is causing the error.
Reply With Quote
  #6  
Old 08-12-2008, 05:17 PM
djdesmangles djdesmangles is offline
Member
 
Join Date: Nov 2006
Posts: 88
Question Anything yet ?

Hello Wizards !!

Did you find something about my mysterious metaclass ?

viz.FOREVER !!!
D.
Reply With Quote
  #7  
Old 08-13-2008, 12:36 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
I've created an exe that uses win32com and it works fine on other machines. Is the exe not working on the same machine that has Vizard installed, or are you running the exe on a different machine? If it is not working when you run it on a different machine, then are you sure you have the SAPI engine installed on that machine?
Reply With Quote
  #8  
Old 08-13-2008, 03:49 PM
djdesmangles djdesmangles is offline
Member
 
Join Date: Nov 2006
Posts: 88
Unhappy It's not working at all !!!!

Hello Farshi...

My exe is not working at all: not working on my workstation, not working on a test machine. I still got the error...

viz.FOREVER !!!
D.
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
Publish as EXE - Introduction tobin Vizard 19 02-12-2009 02:51 AM
publish .exe n.. gakusei08 Vizard 3 05-07-2008 09:47 AM


All times are GMT -7. The time now is 02:09 AM.


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