473,464 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

problem with py2exe and microsoft speech SDK 5.1

>On May 3, 1:29 pm, Dave Lim <diband... at yahoo.com>
wrote:
>Hello, this is my first time in the mailing list so
bear with me.

Basically what I did was I followed this
site:http://surguy.net/articles/speechrecognition.xml
>>
So I installed microsoft speech SDK 5.1 and then
used
>pythonwin COM MakePy utility for it and it worked
out
>fine. However, I need to compile my program into a
.exe and I have no idea how to make this work. I
tried
>using py2exe but I get the error:

Traceback (most recent call last):
File "simple-speech-recognition.py", line 57, in
?
>TypeError: Error when calling the metaclass bases
cannot create 'NoneType' instances

If anybody knows a good solution to this problem I
would very much appreciate it if you can guide me
to
>the right path / solution.

Thank you very much!
-Dave Lim

_________________________________________________ _
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection aroundhttp://mail.yahoo.com
>
I've never done this, but I want to at some point, so
I went and
>grabbed some good links on packaging up Python apps:

http://davidf.sjsoft.com/mirrors/mcm.../install1.html
http://www.pharscape.org/content/view/33/51/
http://wiki.python.org/moin/Py2Exe
http://www.py2exe.org/index.cgi/Tutorial

There's also growth in using Python Eggs:
http://peak.telecommunity.com/DevCenter/PythonEggs
>
Mike
Thanks for the links. But I already have compiled it
successfully into an executable my only problem is i
still have that error. I still have the same error:

Traceback (most recent call last):
File "simple-speech-recognition.py", line 57, in ?
TypeError: Error when calling the metaclass bases
cannot create 'NoneType' instances

I used py2exe and I also added typelibs in the options
however that didn't seem to fix my problem. Below is
my setup.py, can anyone tell me what I'm lacking or
doing wrong here?

setup.py

from distutils.core import setup
import py2exe

setup(options = {"py2exe": {"typelibs":
[('{C866CA3A-32F7-11D2-9602-00C04F8EE628}',0,5,0)]}},
console = ["simple.py"])

Dave

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
May 4 '07 #1
1 2333
Hi Dave,

I can't help you but maybe you'll have more luck if you try also the
dedicated py2exe mailing list:

https://lists.sourceforge.net/lists/...o/py2exe-users

francois

On May 4, 7:36 am, Dave Lim <diband...@yahoo.comwrote:
On May 3, 1:29 pm, Dave Lim <diband... at yahoo.com>
wrote:
Hello, this is my first time in the mailing list so
bear with me.
Basically what I did was I followed this

site:http://surguy.net/articles/speechrecognition.xml
So I installed microsoft speech SDK 5.1 and then
used
pythonwin COM MakePy utility for it and it worked
out
fine. However, I need to compile my program into a
.exe and I have no idea how to make this work. I
tried
using py2exe but I get the error:
Traceback (most recent call last):
File "simple-speech-recognition.py", line 57, in
?
TypeError: Error when calling the metaclass bases
cannot create 'NoneType' instances
If anybody knows a good solution to this problem I
would very much appreciate it if you can guide me
to
the right path / solution.
Thank you very much!
-Dave Lim
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam

protection aroundhttp://mail.yahoo.com
I've never done this, but I want to at some point, so
I went and
grabbed some good links on packaging up Python apps:
http://davidf.sjsoft.com/mirrors/mcm.../install1.html
http://www.pharscape.org/content/view/33/51/
http://wiki.python.org/moin/Py2Exe
http://www.py2exe.org/index.cgi/Tutorial
There's also growth in using Python Eggs:

http://peak.telecommunity.com/DevCenter/PythonEggs
Mike

Thanks for the links. But I already have compiled it
successfully into an executable my only problem is i
still have that error. I still have the same error:

Traceback (most recent call last):
File "simple-speech-recognition.py", line 57, in ?
TypeError: Error when calling the metaclass bases
cannot create 'NoneType' instances

I used py2exe and I also added typelibs in the options
however that didn't seem to fix my problem. Below is
my setup.py, can anyone tell me what I'm lacking or
doing wrong here?

setup.py

from distutils.core import setup
import py2exe

setup(options = {"py2exe": {"typelibs":
[('{C866CA3A-32F7-11D2-9602-00C04F8EE628}',0,5,0)]}},
console = ["simple.py"])

Dave

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com

May 5 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
5
by: Rene Olsthoorn | last post by:
Dear readers, py2exe has a problem including libxml2. Not at building time, but at runtime. The libxml2.dll cannot be loaded... Is there anyone that NOT has the problem? (and can you drop me...
3
by: Werner Merkl | last post by:
Hi, Python is really great, for small to big programs. For my colleagues and some circumstances I sometimes need to "compile" a script using py2exe. Cause I use Windows, I like to use the...
4
by: Werner Merkl | last post by:
Hi, we have written a Python EXE program, which should run via AUTORUN.INF from a CD/DVD (Windows of course). For this CD/DVD we us a imaging tool from Microsoft, which seam to generate...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
4
by: bwaha | last post by:
First time trying to create an executable with py2exe. I have a small program which makes use of python23 (2.3.5?), wxpython ('2.6.2.1'), matplotlib ('0.83.2'), win32com (latest?), Numeric...
7
by: sturlamolden | last post by:
This question has been asked many times, and last time I was accused of spreading FUD. So now I will rather propose a solution. The reason for the problem is as follows: The binary installer...
0
bartonc
by: bartonc | last post by:
You can find the original author of the script by ggling " Py2Exe version 6.3 setup" The cool thing about this is that it calls py2exe, just in case you're uncomfortable with the command line. I had...
1
by: Dave Lim | last post by:
Hello, this is my first time in the mailing list so bear with me. Basically what I did was I followed this site: http://surguy.net/articles/speechrecognition.xml So I installed microsoft...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.