472,354 Members | 1,337 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 software developers and data experts.

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 2249
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...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.