[IronPython] 0.9.2 Module Search Path Error

Anthony Tarlano mailinglist.account at gmail.com
Thu Sep 29 16:44:09 CEST 2005


IronPython 0.9.2 is not allowing module import from packages that were
previously imported. See below where I could not import from "Synthesis"
after importing it from "System.Speech" unless explicitly importing it from
"System.Speech.Synthesis".

Anthony

IronPython 0.9.2 on .NET 2.0.50215.44
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import sys
>>> sys.LoadAssemblyByName('Speech')
>>> from System.Speech import *
>>> dir()
['AudioFormat', 'Recognition', 'SpeechManager', 'Synthesis', '_',
'__builtins__'
, '__doc__', '__name__', 'sys']
>>> from Synthesis import *
Traceback (most recent call last):
at <shell>
ImportError: No module named Synthesis
>>> dir(Synthesis)
['BookmarkEventArgs', 'FilePrompt', 'InstalledVoice', 'PhonemeEventArgs',
'Promp
t', 'PromptBreak', 'PromptBuilder', 'PromptEmphasis', 'PromptEventArgs',
'Prompt
Rate', 'PromptStyle', 'PromptVolume', 'SayAs', 'SpeakCompletedEventArgs',
'Speak
ProgressEventArgs', 'SpeechSynthesizer', 'SynthesisMediaType',
'SynthesisTextFor
mat', 'SynthesizerEmphasis', 'SynthesizerState',
'SynthesizerStateChangedEventAr
gs', 'TtsEngine', 'VisemeEventArgs', 'VoiceAge', 'VoiceChangeEventArgs',
'VoiceG
ender', 'VoiceInfo']
>>> from Synthesis import *
Traceback (most recent call last):
at <shell>
ImportError: No module named Synthesis
>>> from System.Speech.Synthesis import *
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20050929/bee392c6/attachment.html>


More information about the Ironpython-users mailing list