473,597 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
+ 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 2343
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...@yaho o.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
2980
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 "import numarray" allows the exe to run. Left in, I get "4.exe has generated errors" etc. I'm going around and around and there isn't much on Google. py2exe output is last.
5
4014
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 your setup.py scipt, please). Thanks in advance, Rene O.
3
5705
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 (Windows) ability, to add some version infos, comments, etc to the exe file. If I use explorer to check, these properties are visible and correct.
4
3583
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 a pure ISO 9660 level 1 image.
0
3924
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. It is almost like it is trying to implement it's own COM interfaces... below is the header, and a link to the dll+code: Zip file with header, example, and DLL:...
4
3997
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 ('23.7') on Windows XP & Win2000. The program runs without problem but as an exe it doesn't even get to showing the GUI. I get the following error log when I run the executable. Traceback (most recent call last): File "mpival3.py", line 1264, in ?
7
3430
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 for Python built by te python.org team is compiled with Microsoft Visual Studio 2003. It is linked with the C runtime msvcrt71.dll. The copyright to msvcrt71.dll is owned by Microsoft, and it is not an integral part of the Windows operating system....
0
13454
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 to search hi and lo for the example of how to exclude Tkinter. Coming soon: scipy includes and numpy include that gets rid of complaints of missing modules that are fantom errors. # Py2Exe version 6.3 setup file for wxPython GUI programs. #...
1
401
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 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
0
7969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7886
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8272
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
6688
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5847
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5431
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3886
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1494
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1238
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.