Hi,
I have a question about xml.dom.minidom module.
Suppose I have a node n.
When I try
>>> n.toprettyxml(" ")
I get the warning:
AttributeError: Node instance has no instance 'nodeType'.
I am using python 2.4.4 on WinXP.
Any help is appreciated.
-Bijan
On Jun 3, 2007, at 3:00 AM, [EMAIL PROTECTED] wrote:
Send Python-win32 mailing list submissions to
python-win32@python.org
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.python.org/mailman/listinfo/python-win32
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Python-win32 digest..."
Today's Topics:
1. Need help with win32 com_error 'Exception occurred'
(Richard Gordon)
----------------------------------------------------------------------
Message: 1
Date: Sat, 02 Jun 2007 15:09:39 -0400
From: "Richard Gordon" <[EMAIL PROTECTED]>
Subject: [python-win32] Need help with win32 com_error 'Exception
occurred'
To: <python-win32@python.org>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
I've got a fatal bug using Parente's pyTTS with Python 2.3 on
Windoze 32 using MS SAPI 5.1 and Hammond's win32 module. The test
program is
import pyTTS
tts = pyTTS.Create()
tts.Speak('Hello world.')
The resulting debug trace is:
PythonWin 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit
(Intel)] on win32.
Portions Copyright 1994-2006 Mark Hammond - see 'Help/About
PythonWin' for further copyright information.
Traceback (most recent call last):
File "C:\PROGRA~1\Python23\Lib\site-packages\pythonwin\pywin
\framework\scriptutils.py", line 307, in RunScript
debugger.run(codeObject, __main__.__dict__, start_stepping=0)
File "C:\PROGRA~1\Python23\Lib\site-packages\pythonwin\pywin
\debugger\__init__.py", line 60, in run
_GetCurrentDebugger().run(cmd, globals,locals, start_stepping)
File "C:\PROGRA~1\Python23\Lib\site-packages\pythonwin\pywin
\debugger\debugger.py", line 631, in run
exec cmd in globals, locals
File "C:\yakitome\test\examples\ex1.py", line 4, in ?
tts.Speak('Hello world.')
File "C:\PROGRA~1\Python23\Lib\site-packages\pyTTS\sapi.py",
line 213, in Speak
self.speech.Speak(text, flagsum)
File "C:\Program Files\Python23\lib\site-packages\win32com
\gen_py\C866CA3A-32F7-11D2-9602-00C04F8EE628x0x5x0.py", line 2637,
in Speak
, Flags)
com_error: (-2147352567, 'Exception occurred.', (0, None, None,
None, 0, -2147201015), None)
Can anyone out there shed some light on this issue?
The system does not have a sound card --- could that be the problem?
My head is about to explode trying to solve this, so your help and
suggestions will be much appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/
20070602/a0f0f7b7/attachment.htm
------------------------------
_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
End of Python-win32 Digest, Vol 51, Issue 3
*******************************************
Bijan Berenji
Applied Physics PhD candidate, Stanford University
Research Assistant, Stanford Linear Accelerator Center
_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32